Commit Graph

57 Commits

Author SHA1 Message Date
Tom Clegg a6a1e27ac7 Remove useless test function. 2015-07-21 21:40:20 -04:00
Tom Clegg 2583ce55a5 Verify logs were generated. 2015-07-21 21:37:34 -04:00
Tom Clegg e09f9eebf1 Merge remote-tracking branch 'upstream/master' into 414-va-log-redirects
Conflicts:
	va/validation-authority_test.go
2015-07-21 21:32:50 -04:00
Jacob Hoffman-Andrews 99c339f850 Merge pull request #498 from tomclegg/490-mock-logs
Add mock for syslog.
2015-07-21 17:40:06 -07:00
Tom Clegg 2d0be62966 Use mock syslog in test suites (except core and log). Drop SwitchLog(). 2015-07-21 17:06:39 -04:00
Richard Barnes 55d5488b49 Merge branch 'master' into dnssec-cleanup 2015-07-21 17:14:41 +02:00
Tom Clegg 0e72f95660 Add mock for syslog. 2015-07-19 05:44:56 -04:00
Tom Clegg d94860b6cb Log redirects encountered during HTTP validation. Fixes #414 2015-07-16 22:26:11 -04:00
Jeff Hodges ef54dda46a add debug http server to services
Currently, the debug http server in every service contains just the
net/http/pprof handlers. This allows us to get CPU, blocking, and memory
profiling remotely.

Along the way, remove all the places we use http.DefaultServeMux (which
includes use of http.Handle and http.HandlerFunc) and use a NewServeMux
for each place.

Fixes #457
2015-07-14 01:28:18 -07:00
Roland Shoemaker d403a4224b Remove another timeout catcher 2015-07-08 22:24:50 +01:00
Roland Shoemaker e50ad76edd Change tests to indicate testing SERVFAIL not DNSSEC 2015-07-08 22:18:38 +01:00
Roland Shoemaker 0cea5dffd0 Remove dangling timeout workarounds 2015-07-08 22:11:56 +01:00
Roland Shoemaker 720fc2450d Remove timeout catching in preparation for #438 2015-07-08 20:57:58 +01:00
Roland Shoemaker 34bd2a2915 Review fixes 2015-07-08 20:56:59 +01:00
Roland Shoemaker cb1ddfaf78 Add parseDNSError method and use it to provide better problem detail, also add test workaround for timeouts until #401 is fixed 2015-07-08 20:52:40 +01:00
Roland Shoemaker 2d339651d7 Remove LookupDNSSEC and LookupHosts methods, and their usage, log SERVFAIL from resolver and query type it came from, ignore SERVFAIL from LookupCAA 2015-07-08 20:47:46 +01:00
Roland Shoemaker 294a313974 Cleanup rebase/merge artifact 2015-07-07 22:35:39 +01:00
Roland Shoemaker 624581518d Consistent domain usage, DNSResolver comment, and empty CAA test 2015-07-07 22:31:44 +01:00
Roland Shoemaker 5b092db5c7 Actually add mock file, and remove unused commented tests 2015-07-07 22:31:44 +01:00
Roland Shoemaker f6248ef279 Flesh out DNS mock methods, and move them to their own sub-module instead of under test/ to avoid import loop, Add Loopback DNS resolver for core/dns_test.go 2015-07-07 22:31:44 +01:00
J.C. Jones e4055e4646 WIP 2015-07-07 22:31:43 +01:00
Jakub Warmuz c48f6dfecf
Address review comments. 2015-06-30 06:13:38 +00:00
Jakub Warmuz cebd1eee49
Update tests for TLS simpleHttp. 2015-06-28 09:04:09 +00:00
Brad Warren 93ff18b365 Finished addinig validation errors 2015-06-18 14:10:24 -07:00
Brad Warren f19cad3a04 Additional cleanup of error handling 2015-06-18 10:08:59 -07:00
Brad Warren 6fac234036 Updated error messages and internal error handling 2015-06-17 10:56:46 -07:00
J.C. Jones 41f5788c77 Correct most `go lint` warnings. (274 -> 5) 2015-06-16 22:18:28 -05:00
J.C. Jones b24f6b23fe Moved to `miekg/dns` for the VA.
- Created some helper methods to run DNSSEC and reduce code reuse
- Support multiple DNS servers, but not in the Config file (yet)
- Fix typo; r=@rolandshoemaker
2015-06-16 19:37:15 -05:00
J.C. Jones fcaa6b9530 Issue #11: Add tests 2015-06-16 09:03:03 -05:00
J.C. Jones cc97492a54 Issue #11: Basic DNS Challenge support 2015-06-16 09:03:03 -05:00
Brad Warren 3ca3d9b283 Finished adding basic errors 2015-06-15 19:30:11 -07:00
Roland Shoemaker f4ee29d1d3 Change all references from SimpleHTTPS -> SimpleHTTP 2015-06-12 11:22:04 -07:00
Roland Shoemaker ef3adda09b Switch TLS to pointer 2015-06-11 22:08:38 -07:00
Roland Shoemaker c301125e93 Add TLS field to core.Challenge per spec 2015-06-11 17:12:50 -07:00
Roland Shoemaker 6c0127d1b0 Add some comments, clean up RFC 6844 query order 2015-06-10 17:27:08 -07:00
Roland Shoemaker 7029124c75 Add checking for DNSSEC failure at the resolver 2015-06-10 15:50:17 -07:00
Roland Shoemaker 0265b6f5d0 Merge upstream/master and fix conflicts 2015-06-10 12:43:11 -07:00
Roland Shoemaker 050887bff6 Ignore closed connection errors from httpsServer.Serve 2015-06-08 13:29:29 -07:00
Roland Shoemaker 3e43e05553 Don't write to dead simpleSrv/dvsniSrv connections 2015-06-08 12:54:38 -07:00
Roland Shoemaker 30d2c0d1c7 Don't try to write to connection after it has been closed 2015-06-08 11:40:21 -07:00
Roland Shoemaker 78cbc1a091 Decrease block time so connection doesn't time out 2015-06-08 11:06:16 -07:00
Roland Shoemaker 94bbd22f00 Add explicit timeout tests 2015-06-06 09:55:43 -07:00
Roland Shoemaker 2366a4a1a3 Add VA blocker check 2015-05-29 11:26:06 +01:00
Roland Shoemaker 81c7466e97 add rpc-wrapper and interface code 2015-05-28 09:58:16 +01:00
Roland Shoemaker 0ef15b0b81 cleanup & tests 2015-05-28 09:25:04 +01:00
J.C. Jones bc3acca096 Resolved Issue #230
- Move setting the core.Registration.Key field from RA.NewRegistration to
  WFE.NewRegistration to avoid a chicken-and-egg problem.
- Note: I kept the RPC wrapper object even though it now only has one field.
  Seems like it's a good practice to use wrapper objects, even though we don't
  everywhere.
2015-05-26 14:44:15 -07:00
Roland Shoemaker e1eeebce52 Only run validations against updated challenges (instead of everything) 2015-05-26 17:08:49 +01:00
J.C. Jones cecd097f68 Improve unit testing to resolve Issue #217
- Support multiple HTTPserver instances in `validation-authority_test.go`
- Improve coverage of ValidateDvsni and ValidateHttps
- Cover UpdateValidations
2015-05-21 13:59:30 -07:00
J.C. Jones 1c9837ddf8 Audit all Challenges (success/failure) in VA for Issue #204
- Don't ignore entropy underruns in challenges.go
- Correct identity crisis in Policy Authority; hopefully it will remember.
- Add a method `AuditObject` in audit-logger and convert RA/VA to use it
- Fix json typo in registration-authority that caused empty audit logs
- Fix vet issue in WFE where RegID was being printed as a 32-bit int instead of 64-bit
- Unfix the issue in WFE where RegID isn't right, per PR #215
2015-05-21 13:58:40 -07:00
J.C. Jones 42302541bd Run `go fmt` for PR #186 2015-05-18 18:44:38 -07:00