Commit Graph

316 Commits (f8e40887fb21c64294cfa177189f0df4f1740d9c)
 

Author SHA1 Message Date
Jeremy Rand f8e40887fb
Merge #140: Remove generate_nmc_cert
8fade28964 Cirrus: Mark forcetypeassert,govet,nilerr,wastedassign linters as non-mandatory (Jeremy Rand)
bd4a53b2ec Mark nolintlint linter as mandatory (Jeremy Rand)
ae538623c3 Mark gofmt linter as mandatory (Jeremy Rand)
e56fdfedb5 Remove generate_nmc_cert (Jeremy Rand)

Pull request description:

  It has been moved to its own repo.

Top commit has no ACKs.

Tree-SHA512: 3c9571bc571f7c0ffecfe26feb59cf2c1daece1106a37263ead8578efb471286e3d8030b6479bcea12ffdf2c2fcffa0f5a3266cad96903efa9368b86c3382aa4
3 years ago
Jeremy Rand 8fade28964
Cirrus: Mark forcetypeassert,govet,nilerr,wastedassign linters as non-mandatory 3 years ago
Jeremy Rand bd4a53b2ec
Mark nolintlint linter as mandatory 3 years ago
Jeremy Rand ae538623c3
Mark gofmt linter as mandatory 3 years ago
Jeremy Rand e56fdfedb5
Remove generate_nmc_cert
It has been moved to its own repo.
3 years ago
Jeremy Rand 554079a95d
Merge #139: Re-enable ASLR/PIE on Windows
bf4c60384a Revert "Disable ASLR/PIE on Windows" (Jeremy Rand)

Pull request description:

  This reverts https://github.com/namecoin/ncdns/pull/137 .

  The bug that necessitated disabling ASLR/PIE was fixed in https://github.com/hlandau/service/releases/tag/v2.0.17 ; thus we can enable it again in ncdns.

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

Top commit has no ACKs.

Tree-SHA512: 14e086a06782b258f742dc6f3a2293454022ec4cd29225d430e3511fa0598d5251f6d1e1b3e9919bcb41e4308680bb2b886f7dc750323f3c290eb4ab90ac9151
3 years ago
Jeremy Rand bf4c60384a
Revert "Disable ASLR/PIE on Windows"
This reverts commit 7dd7a76d3a.

The bug that necessitated disabling ASLR/PIE was fixed in hlandau/service
v2.0.17; thus we can enable it again in ncdns.
3 years ago
Jeremy Rand 6482dc9eb0
Merge #137: Disable ASLR/PIE on Windows
7dd7a76d3a Disable ASLR/PIE on Windows (Jeremy Rand)

Pull request description:

  Refs https://github.com/hlandau/service/issues/14

Top commit has no ACKs.

Tree-SHA512: 6794db9358ceec05870763412e7685b2c7b3261f40ead6ed2d7f35e0b3e391d1f96d329f2d83a79be507052fb1380a8abace6a508a8d7c0fc20f757164acba3a
3 years ago
Jeremy Rand 7dd7a76d3a
Disable ASLR/PIE on Windows
Refs https://github.com/hlandau/service/issues/14
3 years ago
Jeremy Rand 910eaaf3eb
Merge #136: Support building with Go modules
49319f6a7a Cirrus: Mark cyclop,revive linters as non-mandatory (Jeremy Rand)
981e87e4e0 Cirrus: Run with both modules enabled and disabled (Jeremy Rand)
ae92da7a1b README: document building with Go modules (Jeremy Rand)

Pull request description:

Top commit has no ACKs.

Tree-SHA512: 14e086a06782b258f742dc6f3a2293454022ec4cd29225d430e3511fa0598d5251f6d1e1b3e9919bcb41e4308680bb2b886f7dc750323f3c290eb4ab90ac9151
3 years ago
Jeremy Rand 49319f6a7a
Cirrus: Mark cyclop,revive linters as non-mandatory 3 years ago
Jeremy Rand 981e87e4e0
Cirrus: Run with both modules enabled and disabled 3 years ago
Jeremy Rand ae92da7a1b
README: document building with Go modules 3 years ago
Jeremy Rand e4be195b7a
Merge #134: Support AIA and compressed pubkeys
7287e92825 Fix nlreturn warning (Jeremy Rand)
c0694b002d Fix name field of cached TLSA records (Jeremy Rand)
5336820800 Add "aia" MetaDomain (Jeremy Rand)
88affcd3fe TLS: Add compressed pubkey support (Jeremy Rand)

Pull request description:

  Refs namecoin/safetlsa#3

Top commit has no ACKs.

Tree-SHA512: 77984e8674814b8ac586d98f83725b9901a942218e7c4d34cfe6d390f6e0994c943978132a36d4f1812245ce8700275570235ccdec434f186607d8de72bffab5
3 years ago
Jeremy Rand 7287e92825
Fix nlreturn warning 3 years ago
Jeremy Rand c0694b002d
Fix name field of cached TLSA records 3 years ago
Jeremy Rand 5336820800
Add "aia" MetaDomain
Currently hardcoded to point to "this" MetaDomain

Refs https://github.com/namecoin/safetlsa/issues/3
3 years ago
Jeremy Rand 88affcd3fe
TLS: Add compressed pubkey support 3 years ago
Jeremy Rand 1fced9acba
Merge #133: Cirrus: Upload artifacts directly from Cross-Compile Task
fdad4b478c Cirrus: Upload artifacts directly from Cross-Compile Task (Jeremy Rand)

Pull request description:

Top commit has no ACKs.

Tree-SHA512: 807e8a484a80eaa0c9fc4c1b0c0e5a2e3da8f180a26861d943c0845eff5dfc7f6c94e02f23613c7c4135a78f2fa71219649fc18d362edc7ab65a5e01b5af722b
3 years ago
Jeremy Rand fdad4b478c
Cirrus: Upload artifacts directly from Cross-Compile Task 3 years ago
Jeremy Rand 2131591bd9
Merge #132: Add Cirrus CI
b7c3f68dac Add Cirrus CI (Jeremy Rand)

Pull request description:

Top commit has no ACKs.

Tree-SHA512: 7bd9359d9ada704e6c578a8b3e0625bbeaacf57de60f41065d28227eb8965297755bff82da0ca304dd93f110e205e1160c866c194e6b91a3e92198dcd36a948c
3 years ago
Jeremy Rand b7c3f68dac
Add Cirrus CI 3 years ago
Jeremy Rand 2fa54cd3b5
Merge #131: certdehydrate: Fix unit test for Golang issue 40458
ba3a981852 certdehydrate: Fix unit test for Golang issue 40458 (Jeremy Rand)

Pull request description:

  `CreateCertificate` now checks the resulting signature as of Go 1.16+.  This was confusing our unit test for invalid dehydrated certs, which was expecting to need to verify the cert after the cert was created.

Top commit has no ACKs.

Tree-SHA512: 120daa2f4bb0849e452431d9ef30da39a10e52312311be038e115db056e7531aa8dacc651cd6f96e7e91b469525ca93f21d18c5f72b9705118a86b9df5592b20
4 years ago
Jeremy Rand ba3a981852
certdehydrate: Fix unit test for Golang issue 40458
CreateCertificate now checks the resulting signature as of Go 1.16+.
This was confusing our unit test for invalid dehydrated certs, which was
expecting to need to verify the cert after the cert was created.
4 years ago
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
4 years ago
Jeremy Rand 39a0d8d25e
Travis: Disable darwin/386 for Go 1.15+
Target no longer supported by Golang devs.
4 years ago
Jeremy Rand a1f234a64f
Travis: Add Go 1.13.x, 1.14.x, 1.15.x 4 years ago
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
4 years ago
Jeremy Rand d28a01dcd5
Use pointer receiver on DehydratedCertificate methods
Improves speed by avoiding copy operations.
4 years ago
Jeremy Rand 647f05f049
Update Travis IRC notifications 4 years ago
Jeremy Rand eef31fbdc4
Use splicesign and standard x509
Thanks to Filippo Valsorda for the tip.
4 years ago
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
4 years ago
Jeremy Rand 7e454f8b59
Travis: Use old goxnet for Go 1.11.x and earlier
Fixes a build fail for Darwin targets
4 years ago
JeremyRand ca0fe55528
Fix NXDOMAIN detection
It was broken during the switch to modern btcd.
5 years ago
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
5 years ago
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
5 years ago
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
5 years ago
JeremyRand 86b9348f50
Pass stream isolation through to namecoind 5 years ago
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
5 years ago
JeremyRand 2b1eed8f53
Switch to new rpcclient based on latest upstream Conformal
We will switch to upstream once they merge our patches.
5 years ago
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
5 years ago
JeremyRand 06d6efba8c
backend: Stream-isolate LRU cache
Fixes https://github.com/namecoin/ncdns/issues/112
5 years ago
JeremyRand ed8fa682eb
Add plumbing for stream isolation
The stream ID is not yet passed to namecoind.
5 years ago
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
5 years ago
JeremyRand 344672cdae
Travis: Fix goxsys error on Go 1.11 and earlier 5 years ago
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
5 years ago
JeremyRand 0e6369824f
Add no_namecoin_tls build tag 5 years ago
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
5 years ago
JeremyRand fd96cf09de
Travis: Notify IRC when build fails 5 years ago
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
5 years ago