2
0
mirror of https://github.com/namecoin/ncdns synced 2024-11-16 00:13:01 +00:00
Commit Graph

292 Commits

Author SHA1 Message Date
Jeremy Rand
8b915a1aa4
Merge #130: Travis: Add Go 1.13.x, 1.14.x, 1.15.x
39a0d8d25e Travis: Disable darwin/386 for Go 1.15+ (Jeremy Rand)
a1f234a64f Travis: Add Go 1.13.x, 1.14.x, 1.15.x (Jeremy Rand)

Pull request description:

Top commit has no ACKs.

Tree-SHA512: d18576050a2e594d64a6549d572ea7e033877a945603b8de8c548e0e48558b3146f6789fd6b38a7f6bb6bcf766ad01316b89cd961fe5c662a2d47d049deae569
2020-11-22 19:20:40 +00:00
Jeremy Rand
39a0d8d25e
Travis: Disable darwin/386 for Go 1.15+
Target no longer supported by Golang devs.
2020-11-22 16:07:03 +00:00
Jeremy Rand
a1f234a64f
Travis: Add Go 1.13.x, 1.14.x, 1.15.x 2020-11-22 14:14:34 +00:00
Jeremy Rand
c947efb679
Merge #128: Use splicesign and standard x509
d28a01dcd5 Use pointer receiver on DehydratedCertificate methods (Jeremy Rand)
647f05f049 Update Travis IRC notifications (Jeremy Rand)
eef31fbdc4 Use splicesign and standard x509 (Jeremy Rand)

Pull request description:

  Thanks to Filippo Valsorda for the tip.

Top commit has no ACKs.

Tree-SHA512: ab62206c62315610efdbd09af3dbe01599561d692043af6cbec528bf64c1cd3c84e9285d88d87517f3e01a49224003cd7092517b95f20fdea32d4c802e9459f2
2020-11-22 14:09:47 +00:00
Jeremy Rand
d28a01dcd5
Use pointer receiver on DehydratedCertificate methods
Improves speed by avoiding copy operations.
2020-11-22 14:06:08 +00:00
Jeremy Rand
647f05f049
Update Travis IRC notifications 2020-11-22 14:06:06 +00:00
Jeremy Rand
eef31fbdc4
Use splicesign and standard x509
Thanks to Filippo Valsorda for the tip.
2020-11-22 14:05:33 +00:00
Jeremy Rand
6036c58ff9
Merge #129: Travis: Use old goxnet for Go 1.11.x and earlier
7e454f8b59 Travis: Use old goxnet for Go 1.11.x and earlier (Jeremy Rand)

Pull request description:

  Fixes a build fail for Darwin targets.

Top commit has no ACKs.

Tree-SHA512: e50e976add771092df3ad4d98c667a54dc6aaadb3003aeddc8d68f61a0c9b2b18e9a30f9d10e79d715b0a77561f3ff4dcb5238b16c50a1b8739a8502564d11ba
2020-11-22 13:54:59 +00:00
Jeremy Rand
7e454f8b59
Travis: Use old goxnet for Go 1.11.x and earlier
Fixes a build fail for Darwin targets
2020-11-22 12:55:01 +00:00
JeremyRand
ca0fe55528
Fix NXDOMAIN detection
It was broken during the switch to modern btcd.
2019-12-16 20:33:25 +00:00
JeremyRand
7c39b77cca
Merge #106: Fix infinite loop in ncdumpzone with Namecoin Core 0.18.0+
539bc89 ncdumpzone: Work around encoding errors (JeremyRand)

Pull request description:

  Fixes https://github.com/namecoin/ncdns/issues/105

  TODO:

  - [x] Merge https://github.com/namecoin/ncdns/pull/103 (this PR will then need a rebase)

ACKs for commit 539bc8:

Tree-SHA512: 5762687077ea2611cd7939dd49d337346b212a91442b32f7be5ac592e2580029bc0e63c4e6597b2685495de59a431fe422048fc3a1f0d52fb678e377eb947401
2019-10-28 02:01:59 +00:00
JeremyRand
539bc89012
ncdumpzone: Work around encoding errors
Namecoin Core 0.18.0+ now reports an empty Name with a non-empty NameError
when an encoding error was encountered.  This was causing an infinite loop
in ncdumpzone.

Fixes https://github.com/namecoin/ncdns/issues/105
2019-10-27 19:37:29 +00:00
JeremyRand
96d897a651
Merge #121: Pass stream isolation through to namecoind
86b9348 Pass stream isolation through to namecoind (JeremyRand)

Pull request description:

ACKs for commit 86b934:

Tree-SHA512: ae1468d446344f2681b55ed0bae20c1d7c98e687b024c75fb304ef433ac2faf75ef0d2e933401010fe5d963a9b6ea7c0bcbb83730fe047c6c5aafd411eeabe13
2019-10-27 19:34:14 +00:00
JeremyRand
86b9348f50
Pass stream isolation through to namecoind 2019-10-27 18:21:14 +00:00
JeremyRand
4a1381cd41
Merge #103: Switch to rpcclient based on current upstream Conformal
2b1eed8 Switch to new rpcclient based on latest upstream Conformal (JeremyRand)

Pull request description:

  Namecoin's fork of Conformal's RPC client library is ancient and unmaintained; switching to upstream eliminates a major source of potential bugs (and known bugs, e.g. the ConsensusJ and Electrum compatibility bugs that we had to patch).

  Fixes https://github.com/namecoin/ncdns/issues/9

  TODO:

  - [ ] Wait for Conformal to merge https://github.com/btcsuite/btcd/pull/1457
  - [ ] Wait for Conformal to merge https://github.com/btcsuite/btcd/pull/1460
  - [x] Push `name_show` support for `ncjson` and `ncrpcclient`
  - [x] Implement cookie authentication
  - [x] Test cookie authentication

ACKs for commit 2b1eed:

Tree-SHA512: 157780613661af240d83a78d66386c66fcfeed0700088d263a20389c45b200db1b651ea985f345de2ac2f250bdafcc4cd5901579e9f5a97ddc13e77e7a7bcf39
2019-10-27 16:14:41 +00:00
JeremyRand
2b1eed8f53
Switch to new rpcclient based on latest upstream Conformal
We will switch to upstream once they merge our patches.
2019-10-27 13:39:43 +00:00
JeremyRand
1e2eea58c7
Merge #97: Add stream isolation (except for namecoind)
06d6efb backend: Stream-isolate LRU cache (JeremyRand)
ed8fa68 Add plumbing for stream isolation (JeremyRand)

Pull request description:

  This PR adds the plumbing for stream isolation (from madns to namecoin, without passing the stream ID to namecoind), and stream-isolates the LRU cache.  A follow-up PR will pass the stream ID to namecoind; that's currently blocked on https://github.com/namecoin/ncdns/pull/103 .

  Prerequisites:

  - [x] Merge https://github.com/hlandau/madns/pull/4
  - [x] Merge https://github.com/hlandau/madns/pull/5
  - [x] Tag a madns release (with major version 2).
  - [x] Replace `madns.v1` dependency with `madns.v2`.
  - [x] Tag a madns release (with https://github.com/hlandau/madns/pull/5 included).

ACKs for commit 06d6ef:

Tree-SHA512: ee385454aef3b802899659db74bbeb28ec6555216f4a4ccfc6047c08f32272080b7f76f851e4b291204ab41525bbfae30e7cdc663b49595d7d5105744810c763
2019-10-19 03:59:56 +00:00
JeremyRand
06d6efba8c
backend: Stream-isolate LRU cache
Fixes https://github.com/namecoin/ncdns/issues/112
2019-10-18 10:10:36 +00:00
JeremyRand
ed8fa682eb
Add plumbing for stream isolation
The stream ID is not yet passed to namecoind.
2019-10-18 09:26:26 +00:00
JeremyRand
54d7d303be
Merge #116: Travis: Fix goxsys error on Go 1.11 and earlier
344672c Travis: Fix goxsys error on Go 1.11 and earlier (JeremyRand)

Pull request description:

ACKs for commit 344672:

Tree-SHA512: 5c2331cd0a092d3aacfe343ac408adc6229b665e9530c285b404a230bfbe17747b72654113ed2b429c1bc7ba5f4ef204c2595a626431d453dbfbff16c8452c8b
2019-10-09 17:32:15 +00:00
JeremyRand
344672cdae
Travis: Fix goxsys error on Go 1.11 and earlier 2019-10-09 10:09:55 +00:00
JeremyRand
6f8baae316
Merge #115: Add no_namecoin_tls build tag
0e63698 Add no_namecoin_tls build tag (JeremyRand)

Pull request description:

  This PR allows building ncdns without TLSA record support.  Doing so decreases the binary size and attack surface significantly.

ACKs for commit 0e6369:

Tree-SHA512: 84ab2a36ab2931e40d6511997ba7f06a0b66d9773dba8002f3044abd21da5729a6d9239042be74a86a23c18678b83edc80e8d105045ca787af88c495a0856d8d
2019-10-04 05:13:21 +00:00
JeremyRand
0e6369824f
Add no_namecoin_tls build tag 2019-10-04 03:58:12 +00:00
JeremyRand
d2db4756d6
Merge #111: Travis: Notify IRC when build fails
fd96cf0 Travis: Notify IRC when build fails (JeremyRand)

Pull request description:

ACKs for commit fd96cf:

Tree-SHA512: 53adf86342086a453f02883411b60995b7b7403baf7e443bad405a1d80f1eedbb84fa67566b50ec27d5f3150bf26b06ab139388b0f7d1cf03478a3a41698712d
2019-09-29 22:08:10 +00:00
JeremyRand
fd96cf09de
Travis: Notify IRC when build fails 2019-09-29 20:25:07 +00:00
JeremyRand
3f037e8724
Merge #110: Fix build instructions for external x509
9d294da Add missing `git checkout` to build instructions (JeremyRand)
86206ee Fix build instructions for external x509 (JeremyRand)

Pull request description:

  Fixes https://github.com/namecoin/ncdns/issues/109

ACKs for commit 9d294d:

Tree-SHA512: 45f71e9d82a4be7e939236a6b14a7aef53c6f1518e681a6b488728142f92a20915e0d26528b2649349d67ba419914434dc5d5834fb21eed5201c4875748ddc7c
2019-09-29 19:51:15 +00:00
JeremyRand
9d294dacf1
Add missing git checkout to build instructions 2019-09-17 00:04:28 +00:00
JeremyRand
86206ee584
Fix build instructions for external x509
Fixes https://github.com/namecoin/ncdns/issues/109
2019-09-15 04:58:19 +00:00
JeremyRand
006f537e01
Merge #104: generate_nmc_cert: Use external x509 package in parent.go
360369c generate_nmc_cert: Use external x509 package in parent.go (JeremyRand)

Pull request description:

  `parent.go` was accidentally not updated when `x509` moved to an external repo; this is breaking the Travis build.  This PR fixes that.

ACKs for commit 360369:

Tree-SHA512: d90deee1bfd9d8bdab7e33d48897508781c0d0b97b823e36a8142d80472dee2cf8d10bcfdcd92b4b6719d8db44d37bf0cd98ffdc41a11cd412db736b3e4a4d6d
2019-08-02 05:14:18 +00:00
JeremyRand
d9c24e2e0e
Merge #93: ncdumpzone: Add mode for a URL list.
39fbbc0 ncdumpzone: Add mode for a URL list. (JeremyRand)

Pull request description:

  This PR is intended to facilitate YaCy crawl jobs.

ACKs for commit 39fbbc:

Tree-SHA512: 070cfd9ad1ee4bc59286ec2c0c120379f30b4cfd761bd3eecd5e2a028b70091171b6dd054acb3c9205800d454187c88fed9e1be9c6591e087d808dd49e2ecda4
2019-08-02 04:39:54 +00:00
JeremyRand
360369c55e
generate_nmc_cert: Use external x509 package in parent.go 2019-07-30 12:36:27 +00:00
JeremyRand
d569a8667c
Merge #102: Travis: use more Go versions with x509-signature-splice
7e25dea Travis: use more Go versions with x509-signature-splice (JeremyRand)

Pull request description:

  TODO:

  - [x] Merge #101 first.

ACKs for commit 7e25de:

Tree-SHA512: 5c9057f16268a0db4e2dba02a1f5a5e248ea7bea86827a6e4cfd11523f56bb01a67b2013adebbcda674b253c81715c0031068d27d6c2d07b655d930bc18cf36f
2019-07-30 12:27:15 +00:00
JeremyRand
7e25deafa8
Travis: use more Go versions with x509-signature-splice
In theory we could use older Go versions as well, but current miekg/dns
doesn't support them anymore.
2019-07-30 12:03:08 +00:00
JeremyRand
13500dbc55
Merge #101: Move x509 subpackage to its own repo
7db5b5a Move x509 subpackage to its own repo (JeremyRand)

Pull request description:

  This avoids tying the ncdns repo to a specific Go version; we can maintain separate branches of the x509-signature-splice repo per Go version with much less hassle.

ACKs for commit 7db5b5:

Tree-SHA512: e6d784c6b344d46955d0ca275174772b6da6bf86bfa84e03a5a59faa9f0a88805d32ecfe29d83970c61246904e1025859dd4cff031ec8052b8f544867c55bf21
2019-07-30 12:01:05 +00:00
JeremyRand
beefb9f9bc
Merge #89: generate_nmc_cert: Support name-constrained CA's
d5bac49 Support name-constrained CA's (JeremyRand)

Pull request description:

  This enables compatibility of generated certs with mozilla::pkix TLS clients such as Firefox (which don't allow end-entity trust anchors), and also decreases the size of the data stored in the blockchain.  Support for actually using the generated certs is out of scope for this PR; the relevant code for ncp11 is already written, and the relevant code for certinject shouldn't be difficult to write later.

ACKs for commit d5bac4:

Tree-SHA512: 100a3f24bc350fccd5421482ea95637dbf492b2fcca0a4c1359217603852f130a2806c2ee245ef7d4ed0a0da2d53fb8563997b228f9e567636d5aab37c8db285
2019-07-30 11:53:22 +00:00
JeremyRand
d5bac49746
Support name-constrained CA's 2019-07-23 04:20:05 +00:00
JeremyRand
7db5b5a2d2
Move x509 subpackage to its own repo
This avoids tying the ncdns repo to a specific Go version; we can maintain
separate branches of the x509-signature-splice repo per Go version with
much less hassle.
2019-07-23 03:24:46 +00:00
JeremyRand
d5168ce530
Merge #99: Rebase x509 onto Go 1.12
e5918ac Travis: Drop support for Go 1.11.x and lower (JeremyRand)
bb16218 Travis: Set Go 1.12.5 as release version (JeremyRand)
f687a9b Add Go 1.11.x, 1.12.5, and 1.12.x to Travis (JeremyRand)
759c009 Rebase x509 onto Go 1.12 (JeremyRand)
9c1ba94 Rebase x509 onto Go 1.11 (JeremyRand)

Pull request description:

  Tor is now using Go 1.12.5 for their rbm builds; this PR restores compatibility with Go 1.12.x.  The x509 generate script has also been refactored a bit.

ACKs for commit e5918a:

Tree-SHA512: f9d9b346c49be124caad896360ca64e26d6b77b5a584f24994adc95ef35eab89aa02fcac5c3ce3d3ee130b8b5feed3362af1338f8077089f21ca678223152823
2019-07-23 03:06:52 +00:00
JeremyRand
e5918ac80f
Travis: Drop support for Go 1.11.x and lower
Our x509 package is no longer compatible with them.
2019-06-29 07:02:55 +00:00
JeremyRand
bb16218f52
Travis: Set Go 1.12.5 as release version
This is the version Tor is currently using with rbm.
2019-06-29 07:02:54 +00:00
JeremyRand
f687a9bbcf
Add Go 1.11.x, 1.12.5, and 1.12.x to Travis
1.12.5 is currently used by Tor's rbm scripts.
2019-06-29 07:02:54 +00:00
JeremyRand
759c009e74
Rebase x509 onto Go 1.12 2019-06-29 07:02:48 +00:00
JeremyRand
9c1ba94379
Rebase x509 onto Go 1.11 2019-06-29 03:52:53 +00:00
JeremyRand
4ea036742b
Merge #94: Make Namecoin RPC timeout configurable
9a4ee1e Make Namecoin RPC timeout configurable (JeremyRand)

Pull request description:

  The 1500ms timeout regularly gets hit when using Electrum-NMC over Tor, so being able to configure it seems like a good idea.

Tree-SHA512: 77915c56df2e98800108af3a130d20a1bbb04af2fe7cfb4291eff7f9c5611ed011f17ade9f3929988ec54989109bc8e2efa5e75948f515ff97b7c2a6951db155
2019-04-10 07:30:11 +00:00
JeremyRand
75ac493c43
Merge #95: Disable q and dns-prop279 in Travis
d74be4d Disable q and dns-prop279 in Travis (JeremyRand)

Pull request description:

  Both of them are broken due to upstream issues.  The upstream breakage should be possible to workaround in rbm when we get around to it, but that's probably not going to happen before the next ncdns release.

Tree-SHA512: a6f0bf2cc947d41b2f13200263b1971674d727f967a07c6ee70bd07f9e0f5cda5e0ecc428e7ac903251e74f33e52f5f628f40ebef45956342b75fac65210edd7
2019-04-10 07:28:01 +00:00
JeremyRand
d74be4d0c4
Disable q and dns-prop279 in Travis
Both of them are broken due to upstream issues.
2019-03-25 23:37:58 +00:00
JeremyRand
9a4ee1e04a
Make Namecoin RPC timeout configurable 2019-03-25 23:30:31 +00:00
JeremyRand
39fbbc0ec5
ncdumpzone: Add mode for a URL list.
This can be used as input for a YaCy crawl job.
2019-02-27 22:20:09 +00:00
JeremyRand
3b7ffcbc45
Merge #85: Support tlsrestrictnsssync
524d09d Travis: mark gosec static analyzer as non-critical (JeremyRand)
9bcdd25 (WIP) Support tlsrestrictnsssync. (JeremyRand)

Pull request description:

  This PR adds the ability to automatically re-apply name constraints whenever an NSS application such as Firefox is updated.  Depends on https://github.com/namecoin/tlsrestrictnss/pull/14 .

Tree-SHA512: 9d7055ef493236b8bf1dd75487984bb80827c64e602a0745da522974462c5a7bb389dd4d7c06dec06bce9b3814e8337afc30f703e9efb63d5699d8ec86d04b06
2018-10-27 03:11:22 +00:00
JeremyRand
524d09d3a2
Travis: mark gosec static analyzer as non-critical 2018-09-24 01:31:27 +00:00