2
0
mirror of https://github.com/namecoin/ncdns synced 2024-10-31 09:20:31 +00:00
Commit Graph

194 Commits

Author SHA1 Message Date
JeremyRand
cbc0c1198a
ncdumpzone: Use easyconfig instead of kingpin. 2018-06-23 06:01:42 +00:00
JeremyRand
19534f1dcf
Merge #68: Temporarily disable netbsd/arm builds.
5af8e11 Temporarily disable netbsd/arm builds. (JeremyRand)

Pull request description:

  Due to https://github.com/miekg/dns/issues/655 ; this should fix Travis fails.  This will be reverted when that issue is fixed.

Tree-SHA512: fc0a6e81afe9747bd61c8ed622d42dfe44af7e772c78ee415853d538e4fb6d72cfce89274b691dd178b9b4a859ab3b7da3911f9a3b2427061f3306760ed5e0e4
2018-03-29 18:52:57 +00:00
JeremyRand
5af8e11e53
Temporarily disable netbsd/arm builds.
Due to https://github.com/miekg/dns/issues/655 .  Will be reverted when that issue is fixed.
2018-03-28 19:12:43 +00:00
JeremyRand
6c7e9659ec
Merge #64: certdehydrate: Add tests for known valid and invalid signatures.
cb55a50 certdehydrate: Add tests for known valid and invalid signatures. (JeremyRand)

Pull request description:

Tree-SHA512: d64fc786c6d5206bf7e814e9b5a3cae3cf680f840449d02acf3f0cfa9e0286b9637ae6162b18a1645d0b406493d307daba63cd4320b64ddad4a384edc8131cb0
2018-03-28 15:06:13 +00:00
JeremyRand
3f68d1d616
Merge #61: ncdumpzone: Add Firefox mode.
2e50c75 ncdumpzone: Add Firefox mode. (JeremyRand)

Pull request description:

  This mode outputs a cert_override.txt file (based on TLSA records) that Firefox will accept.  This can be used to facilitate positive overrides in Firefox.  A future PR will automate the procedure of syncing with Firefox.

  Note that it won't create the correct hostname or fingerprint until #60 is merged.

Tree-SHA512: bcd060ae8239883ec5f38f73ed195ed22ce4e673738770b031678bbbab73ca8046713b0127728dec89caf7db1ddc873f9837f2b684a465aeb5cdba79537d52f6
2018-03-28 15:02:30 +00:00
JeremyRand
6b49e3a9e2
Merge #60: Fix rehydrated TLSA records served over DNS
dba4ce7 Fix erroneous duplication of domain name in TLSA records served over DNS. (JeremyRand)
cb6bcea Fix erroneous trailing period in x509 certificates served over DNS. (JeremyRand)

Pull request description:

  Fixes #59, as well as a different bug that broke the same functionality as #59.

Tree-SHA512: 54b2aba1368bf0c19735e773453141be40cd8fb7403b69932c21a60ed5d8b6cce255b61a756fb1745a338901bbc5d86e26387d1375216e6a88b691d3ae25e4d3
2018-03-28 14:59:11 +00:00
JeremyRand
3829e2b22b
Merge #52: certdehydrate: Add some additional error checking
5cbd433 certdehydrate: Add some additional error checking. (JeremyRand)

Pull request description:

  Based on recommendations from "gas" static analysis.  ~~Depends on #50.~~

Tree-SHA512: 8c7980abaaace3c28be6186ea0c5d7ed52ba6557d8e7df52a93a228408db1b2b1eb61d370e988db723e3f07dd3e6cd70a3d45a5c55959813fef0f8d7e967551a
2018-03-28 14:40:56 +00:00
JeremyRand
82330bf5ae
Merge #50: Fix misspellings.
ec2c717 Travis: Make misspell critical for gometalinter. (JeremyRand)
8fd57aa Server: fixed misspellings. (JeremyRand)
cf95d18 Backend: fixed misspellings. (JeremyRand)

Pull request description:

  Based on recommendations from "misspell" static analysis. Depends on #48 .

Tree-SHA512: 0ba3d5d79cb6b8a6763ee83ee9533c049baafcfdd1b23cc630d5d0d8bec8fe2e26f6a3b402ee28f08f5a7860ebedcf9642f2c51ea7ef625bf956fa2f60e3509e
2018-03-28 14:36:53 +00:00
JeremyRand
76a9fa595c
Merge #67: Travis: Disable "test" and "aligncheck" static analyzers in both critical and non-critical steps
4a73f53 Travis: Copy the "aligncheck" and "test" disablement from critical to non-critical section. (JeremyRand)
b999eef Travis: Disable "test" static analyzer. (JeremyRand)

Pull request description:

  Should fix one of the Travis failures.

Tree-SHA512: 726d1459cf1c09e71a28753eaa846414ffdc06580541c2456581d2b9b70709cf0738c9b6a6bbb2f050273d94cc42ea59f0c3d1574f569849a1ce1ab425aa0752
2018-03-28 14:30:23 +00:00
JeremyRand
5cbd43393a
certdehydrate: Add some additional error checking. 2018-03-24 02:32:20 +00:00
JeremyRand
2e50c75232
ncdumpzone: Add Firefox mode.
This mode outputs a cert_override.txt file (based on TLSA records) that Firefox will accept.
2018-03-24 02:25:40 +00:00
JeremyRand
4a73f53d2c
Travis: Copy the "aligncheck" and "test" disablement from critical to non-critical section. 2018-03-13 00:32:38 +00:00
JeremyRand
b999eef876
Travis: Disable "test" static analyzer. 2018-03-13 00:30:55 +00:00
JeremyRand
cb55a50bef
certdehydrate: Add tests for known valid and invalid signatures. 2018-03-12 22:33:06 +00:00
JeremyRand
ec2c717305
Travis: Make misspell critical for gometalinter. 2018-03-12 22:10:47 +00:00
JeremyRand
8fd57aaff3
Server: fixed misspellings.
Based on recommendations from "misspell" static analysis.
2018-03-12 22:10:46 +00:00
JeremyRand
cf95d18fe2
Backend: fixed misspellings.
Based on recommendations from "misspell" static analysis.
2018-03-12 22:10:46 +00:00
JeremyRand
3792dd3e95
Merge #48: Web server: minor refactor of initTemplates
ee5a290 Travis: Make gosimple critical for gometalinter. (JeremyRand)
18a502d Web server: minor refactor of initTemplates. (JeremyRand)

Pull request description:

  Based on recommendations from "gosimple" static analysis.  ~Depends on https://github.com/namecoin/ncdns/pull/46 .~

Tree-SHA512: c0aaebac6d91b1c958223f4e4e49626bb1ed896409cc8fa7eef13abde0d44f89565e9460c254f842785f2bd1d590457123e2a7b670dc5faa82fe3a66c76d7d4e
2018-03-12 22:07:18 +00:00
JeremyRand
49b181854b
Merge #17: NSS TLS certificate injection
375ff45 certinject: NSS: Add an internal test. (JeremyRand)
ead7a20 certinject: NSS: Improve error handling. (JeremyRand)
145d1e3 certinject: Fix various issues found by static analysis. (JeremyRand)
2c8b5fe certinject: NSS improvements, now works on arbitrary NSS cert store directories. (JeremyRand)
e5c7c09 certinject: add support for the shared NSS trust store on GNU/Linux systems. (JeremyRand)

Pull request description:

  Extend #16 to support the user's shared NSS trust store on GNU/Linux systems.

  Please review but do not merge yet.

  TODO before merging:

  - [x] Get #16 merged.
  - [x] Figure out what to do in the case where ncdns isn't run by the same user as the owner of the NSS database.  Presumably it makes sense to run ncdns under its own user.  Should we require a config option that lists the users whose NSS databases are written to?

  Other issue to discuss:

  Writing to the NSS database with `certutil` is really slow, I'm seeing ~700ms latency added by this.  Is there a faster way to do it?  If we try to handle multiple NSS databases (one per user), this could easily cause DNS timeouts.  Using the system NSS database should be possible, but it would be unsafe for users who haven't installed the HPKP pin into Chromium.

Tree-SHA512: d35fcb44e6c09d6654140de8cf378b0b7523ac19d63d007064db14d5c84cd2178cad95d348baa3234843d215fb563185b98ced33c3e876876d8d42a01ba4e6a7
2018-03-12 21:58:16 +00:00
JeremyRand
acad83801f
Merge #63: Change default Namecoin RPC host from localhost to 127.0.0.1.
1f98613 Change default Namecoin RPC host from localhost to 127.0.0.1. (JeremyRand)

Pull request description:

  This should be a harmless change, and for some unknown reason it fixed an "unexpected end of JSON input" RPC error on my Windows 10 x86_32 VM.

Tree-SHA512: 9ceb14423dcacf7448922bb76d2da7e8fc1f2ccb002b01c6a81b576e441143b756feef48428f54c279cacda70ab98234c8b47c60aef02bf37b03eae30f69ba89
2018-03-12 21:25:36 +00:00
JeremyRand
375ff45a4d
certinject: NSS: Add an internal test. 2018-03-12 21:07:21 +00:00
JeremyRand
ead7a2078a
certinject: NSS: Improve error handling. 2018-03-12 21:06:59 +00:00
JeremyRand
145d1e32cd
certinject: Fix various issues found by static analysis. 2018-03-12 21:03:56 +00:00
JeremyRand
1f98613cff
Change default Namecoin RPC host from localhost to 127.0.0.1.
This should be a harmless change, and for some unknown reason it fixed an "unexpected end of JSON input" RPC error on my Windows 10 x86_32 VM.
2018-03-11 09:08:11 +00:00
JeremyRand
2c8b5fe5ee
certinject: NSS improvements, now works on arbitrary NSS cert store directories. 2018-02-14 06:15:47 +00:00
JeremyRand
dba4ce7008
Fix erroneous duplication of domain name in TLSA records served over DNS. 2018-02-11 19:56:14 +00:00
JeremyRand
cb6bceae5c
Fix erroneous trailing period in x509 certificates served over DNS. 2018-02-11 19:54:09 +00:00
JeremyRand
e5c7c09968
certinject: add support for the shared NSS trust store on GNU/Linux systems. 2018-02-10 06:07:39 +00:00
JeremyRand
ee5a29079f
Travis: Make gosimple critical for gometalinter. 2017-11-08 15:42:20 +00:00
JeremyRand
18a502d8aa
Web server: minor refactor of initTemplates.
Based on recommendations from "gosimple" static analysis.
2017-11-08 15:42:19 +00:00
JeremyRand
09a88dc989
Merge #47: Travis: Add comment on why aligncheck is disabled in gometalinter.
6f93f43 Travis: Add comment on why aligncheck is disabled in gometalinter. (JeremyRand)

Pull request description:

Tree-SHA512: 9c27062cb05a1d06b9049b7c8eed67c2758ffa4c9b96ecd7c34e929f3c6c5248d94b04e8a18d14a6028ede5679b969fca7a5962d5f7bf48df8437479b482765f
2017-11-08 15:39:59 +00:00
JeremyRand
236a432808
Merge #46: Apply "gofmt -s"
cf7518d Travis: Make gotype critical for gometalinter. (JeremyRand)
d058005 Travis: Make gofmt critical for gometalinter. (JeremyRand)
b6cf88d gofmt -s util/util_test.go (JeremyRand)
0da5cd2 gofmt -s util/util.go (JeremyRand)
6e3101e gofmt -s tlsrestrictchromium/tlsrestrict_chromium_tool/main.go (JeremyRand)
e3cd522 gofmt -s tlsrestrictchromium/chromium_test.go (JeremyRand)
2f0e866 gofmt -s tlsrestrictchromium/chromium.go (JeremyRand)
5152222 gofmt -s tlshook/tlshook.go (JeremyRand)
26b4c4c gofmt -s ncdomain/convert.go (JeremyRand)
1fb4007 gofmt -s generate_nmc_cert/main.go (JeremyRand)
53adb64 gofmt -s certinject/file.go (JeremyRand)
f70f23a gofmt -s certinject/cryptoapi_windows.go (JeremyRand)
6557714 gofmt -s certinject/certinject_windows.go (JeremyRand)
b1ab832 gofmt -s certinject_misc.go (JeremyRand)
8ec3281 gofmt -s certdehydrate/certdehydrate_test.go (JeremyRand)
62f0e6a gofmt -s certdehydrate/certdehydrate.go (JeremyRand)
e8feeb3 gofmt -s backend/backend.go (JeremyRand)

Pull request description:

  Based on recommendations from static analysis.

Tree-SHA512: 432d23656e552e93298eab2b3c32cf505aa503639a6cfc9498363b8208b697169392e36247ed029b8d54ddbe4fdfcc2cd36f2497ea22245de3703c95d4edf3b4
2017-11-08 15:37:03 +00:00
JeremyRand
ada23392c6
Merge #45: Build system: Build q and dns-prop279
3a75a2f Travis: build q and dns-prop279. (JeremyRand)
042dab6 Travis: Slight refactor. (JeremyRand)

Pull request description:

  Temporary kludge for getting `q` and `dns-prop279` binaries included in the releases until we replace the build system with RBM.

Tree-SHA512: 581619de3f466d52c4cc2a7e9fc6fca329992ff78040e1b939ac589013768b83e1205ea49543297cf4e895e965a81b489cfa64f69bd3ce4652018d5435ac6745
2017-11-08 15:33:21 +00:00
JeremyRand
6f93f43bb3
Travis: Add comment on why aligncheck is disabled in gometalinter. 2017-11-04 19:55:47 +00:00
JeremyRand
cf7518de6b
Travis: Make gotype critical for gometalinter. 2017-11-04 08:16:28 +00:00
JeremyRand
d058005c26
Travis: Make gofmt critical for gometalinter. 2017-11-04 08:12:38 +00:00
JeremyRand
b6cf88d290
gofmt -s util/util_test.go 2017-11-04 08:01:56 +00:00
JeremyRand
0da5cd28ab
gofmt -s util/util.go 2017-11-04 08:01:40 +00:00
JeremyRand
6e3101ea76
gofmt -s tlsrestrictchromium/tlsrestrict_chromium_tool/main.go 2017-11-04 08:01:21 +00:00
JeremyRand
e3cd52290a
gofmt -s tlsrestrictchromium/chromium_test.go 2017-11-04 08:00:50 +00:00
JeremyRand
2f0e866870
gofmt -s tlsrestrictchromium/chromium.go 2017-11-04 08:00:31 +00:00
JeremyRand
5152222000
gofmt -s tlshook/tlshook.go 2017-11-04 08:00:09 +00:00
JeremyRand
26b4c4c637
gofmt -s ncdomain/convert.go 2017-11-04 07:59:45 +00:00
JeremyRand
1fb4007fa7
gofmt -s generate_nmc_cert/main.go 2017-11-04 07:59:13 +00:00
JeremyRand
53adb64d85
gofmt -s certinject/file.go 2017-11-04 07:58:54 +00:00
JeremyRand
f70f23aff0
gofmt -s certinject/cryptoapi_windows.go 2017-11-04 07:58:31 +00:00
JeremyRand
65577146fc
gofmt -s certinject/certinject_windows.go 2017-11-04 07:57:58 +00:00
JeremyRand
b1ab832754
gofmt -s certinject_misc.go 2017-11-04 07:57:38 +00:00
JeremyRand
8ec3281780
gofmt -s certdehydrate/certdehydrate_test.go 2017-11-04 07:57:17 +00:00
JeremyRand
62f0e6aa90
gofmt -s certdehydrate/certdehydrate.go 2017-11-04 07:56:56 +00:00