Repository navigation
Don't serve 500's on DNS timeout. - #1121
Conversation
There was a problem hiding this comment.
We have a similar method in the VA, problemDetailsFromDNSError. It might be nice to consolidate these into a single function under core/dns.go since this adds nice test-ability.
There was a problem hiding this comment.
Please no more additions to core. It has too many jobs. I would be okay with a dns package.
There was a problem hiding this comment.
Okay. Are you suggesting to move the existing dns stuff into a new package along with it? Or put just a ProblemDetailsFromDNSError in a new DNS package, and then move over the rest of the DNS stuff later?
|
Yeah this is generally great, the VA is a much better place for the CAA checks to be called from for sure. |
|
Ready for re-review. |
|
Tests were failing because I forgot to |
Also, remove case for temporary errors, which we don't need to handle specially.
|
Ready for re-review. I removed temporary as a special case because I think it's not useful to break out (and I think we don't expect to see DNS reporting temporary errors). |
|
LGTM. |
|
LGTM |
Don't serve 500's on DNS timeout.
Fixes #1047
Fixes #700
Moves CAA checking into VA, after basic challenge validation. This should speed up new-authz, and may allow us to get rid of the CheckVAA RPC in a subsequent PR. It also reduces the total number of places that can fail due to DNS.
Also, since this was touching the validateEmail code, I changed it to use A instead of MX, and fix #700.