Commit Graph

141 Commits

Author SHA1 Message Date
Jeff Hodges 92f1689310 make DNS ProblemDetails more clear
Fixes #1259
2015-12-28 13:09:33 -08:00
Jeff Hodges e36895c9c5 bring RTT metrics inside DNSResolver
This moves the RTT metrics calculation inside of the DNSResolver. This
cleans up code in the RA and VA and makes some adding retries to the
DNSResolver less ugly to do.

Note: this will put `Rate` and `RTT` after the name of DNS query
type (`A`, `MX`, etc.). I think that's fine and desirable. We aren't
using this data in alerts or many dashboards, yet, so a flag day is
okay.

Fixes #1124
2015-12-16 17:41:42 -08:00
Jacob Hoffman-Andrews dc9eb37534 Refactor validation return types
Instead of returning a modified challenge, the validate methods now return a
slice of ValidationRecords and a ProblemDetails. These can then be assigned to
the relevant part of the challenge, and the challenge's status updated, in a
single place. This should help avoid errors where local modifications are made
to a challenge and then not returned.
2015-12-14 22:26:32 -08:00
Jeff Hodges b31165444f move dns code to dns pkg and rename to bdns
Moves the DNS code from core to dns and renames the dns package to bdns
to be clearer.

Fixes #1260 and will be good to have while we add retries and such.
2015-12-14 11:21:43 -08:00
Jeff Hodges c9010744b4 delete old challenge code
Specifically, delete the simpleHttp and dvsni.

Hooray!

Fixes #894
2015-12-10 15:41:40 -08:00
Roland Shoemaker f7d2b00a1d Actually mutate challenge object 2015-12-07 11:24:33 -08:00
Jeff Hodges 2114f5d5cc move ProblemDetails into its own package
Part of #1161
2015-11-24 23:14:38 -08:00
Patrick Figel 4c3d2f6541 Add missing User-Agent header for redirects 2015-11-24 10:41:39 +01:00
Jacob Hoffman-Andrews 0970beedd9 Merge branch 'master' into go-jose-update 2015-11-19 07:46:15 -08:00
Niklas Keller a5028b3ba5 Modity test for payloads with trailing whitespace 2015-11-19 06:44:09 +01:00
Richard Barnes 0835ee8db3 Update VA and WFE to use revised nonce mechanisms in go-jose 2015-11-17 13:50:17 -08:00
Jacob Hoffman-Andrews f2b86769d2 Merge branch 'master' into no-500-dns 2015-11-11 18:20:48 -08:00
Jeff Hodges fe69a965e5 set an Accept header on VA HTTP requests
This fixes some mysterious breakages that Let's Encrypt users that also
used mod_security on their domains had.

There's some back and forth about whether the mod_security rule is wise,
but that's captured in a mod_security ticket linked from this PR's
ticket.

This patch is a one-line fix with no probable downside. We're not likely
to want to do many more things to satisfy misunderstandings around HTTP
but this seems fine to help our people out.

Fixes #1019.
2015-11-11 13:43:02 -08:00
Jacob Hoffman-Andrews e24314a0fb Move problemDetailsFromDNSError into new package. 2015-11-11 12:56:30 -08:00
Jacob Hoffman-Andrews 3ccc79e49d Don't serve 500's on DNS timeout.
Fixes https://github.com/letsencrypt/boulder/issues/1047
2015-11-10 19:10:01 -08:00
Jeff Hodges 13cab5c257 add Google Safe Browsing API calls
This allows us to call the Google Safe Browsing calls through the VA.

If the RA config's boolean UseIsSafeDomain is true, the RA will make the RPC
call to the VA during its NewAuthorization.

If the VA config's GoogleSafeBrowsingConfig struct is not nil, the VA
will check the Google Safe Browsing API in
VA.IsSafeDomain. If the GoogleSafeBrowsingConfig struct is nil, it will
always return true.

In order to actually make requests, the VA's GoogleSafeBrowsingConfig
will need to have a directory on disk it can store the local GSB hashes
it will check first and a working Google API key for the GSB API.

Fixes #1058
2015-11-06 16:37:34 -08:00
Jacob Hoffman-Andrews 65777155be Remove CNAME/DNAME logic
Fixes https://github.com/letsencrypt/boulder/issues/1048
2015-11-02 15:34:00 -08:00
Tom Clegg 682fab962c 80/443 are the default http/https ports when writing URLs and following redirects, regardless of va.http[s]Port 2015-10-13 06:46:22 -07:00
Tom Clegg e881f1a697 Do not add redundant port number to URL and Host header 2015-10-08 00:55:49 -07:00
Richard Barnes b01e99ea04 Merge branch 'master' into golint 2015-10-07 10:42:36 -04:00
Richard Barnes 498deeb518 Fix golint in ./mocks 2015-10-04 20:37:06 -04:00
Richard Barnes 9414b1a37e Address @jmhodges comments and make tests pass 2015-10-03 14:47:17 -04:00
Richard Barnes 9e56883dda Change to KeyAuthorization in ra and va 2015-10-03 14:01:24 -04:00
Richard Barnes 8ccf7cf04b Move UnsafeSetChallenge to VA test 2015-10-02 13:45:18 -04:00
Richard Barnes 367973122e Change 'TO DELETE' comments to something more useful 2015-10-01 18:48:15 -07:00
Richard Barnes 72bbc8fd1f Move UnsafeSetToken to /test/ 2015-10-01 18:27:17 -07:00
Roland Shoemaker 2d0dee4ce1 Daemonize the OCSP updater tool so we are constantly updating OCSP responses.
also moves the first OCSP responses generation from the CA to the OCSP updater. This patch lays the
ground work for moving CT submission and adding CT backfill to the OCSP updater.
2015-10-01 16:36:51 -07:00
Richard Barnes 0c78a5f8ab Fix unit test failure 2015-09-29 09:43:42 -04:00
Richard Barnes 0f4ebae6e0 Address @bifurcation comments 2015-09-29 09:33:44 -04:00
Richard Barnes ea50be6c50 Change 00 to 01, and drop the underscore 2015-09-29 08:57:43 -04:00
Roland Shoemaker 5567d4ae73 Split out cases better and add tests for each 2015-09-28 14:07:41 -07:00
Richard Barnes ef8f57863d Re-add old challenge types to VA 2015-09-28 16:05:44 -04:00
Richard Barnes f579863e0e Purge SimpleHTTP and DVSNI from VA 2015-09-28 14:34:03 -04:00
Richard Barnes 1a9fd9b455 Update to latest ACME spec 2015-09-28 10:10:06 -04:00
Roland Shoemaker 4a32d2c633 Check Content-Type header during SimpleHTTP validation 2015-09-27 18:07:49 -07:00
Richard Barnes 54c924b436 Merge branch 'master' into sig-reuse 2015-09-27 18:29:14 -04:00
Roland Shoemaker 48bbd558a6 Fix imports 2015-09-17 18:20:47 -07:00
Roland Shoemaker 91750d925f Review fixes 2015-09-15 12:02:34 -07:00
Richard Barnes 325190e573 Val -> AuthzKeys in VA 2015-09-10 21:29:04 -04:00
Roland Shoemaker 871a77c4b8 Merge master 2015-09-10 13:00:52 -07:00
Roland Shoemaker e5e947ee09 Better construction 2015-09-03 21:00:51 -07:00
Roland Shoemaker af8299d607 Merge master 2015-09-03 11:36:08 -07:00
Roland Shoemaker 37517052c7 Add checks for addresses in the loopback block and a bool to allow them for testing 2015-09-02 15:25:21 -07:00
Roland Bracewell Shoemaker fe00decc92 Merge pull request #697 from letsencrypt/revoke-split
Split RA revoke method
2015-09-01 14:08:33 -07:00
Roland Shoemaker d11d1ed774 Rename admin-revoker RA call 2015-08-30 22:33:36 -07:00
Roland Shoemaker e798362748 Merge branch 'master' into metrics-cleanup 2015-08-28 16:49:46 -07:00
Jacob Hoffman-Andrews 5afb1187bf Merge pull request #664 from letsencrypt/sig-misuse
Mitigate signature misuse vulnerability
2015-08-28 16:18:56 -07:00
Roland Shoemaker 88c2f95179 Cleanup authority creation 2015-08-28 15:03:02 -07:00
Roland Shoemaker f945bb0efb Merge master 2015-08-28 14:41:37 -07:00
Roland Shoemaker 82ea4aba31 Rest of RPC layer and splitting 2015-08-28 00:00:03 -07:00