Skip to content

Don't serve 500's on DNS timeout. - #1121

Merged
jmhodges merged 7 commits into
masterfrom
no-500-dns
Nov 12, 2015
Merged

jmhodges merged 7 commits into
masterfrom
no-500-dns

Conversation

@jsha

@jsha jsha commented Nov 11, 2015

Copy link
Copy Markdown
Contributor

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.

@jsha jsha added the r? label Nov 11, 2015
@jsha jsha added this to the Sprint 2015-11-03 milestone Nov 11, 2015

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please no more additions to core. It has too many jobs. I would be okay with a dns package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@rolandshoemaker

Copy link
Copy Markdown
Contributor

Yeah this is generally great, the VA is a much better place for the CAA checks to be called from for sure.

@jsha

jsha commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

Ready for re-review.

@jsha

jsha commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

Tests were failing because I forgot to git add the new file. Fixed now, ready for re-review.

Comment thread dns/problem.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

Comment thread dns/problem.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test? (Sorry)

jsha added 2 commits November 11, 2015 18:05
Also, remove case for temporary errors, which we don't need to handle specially.
@jsha

jsha commented Nov 12, 2015

Copy link
Copy Markdown
Contributor Author

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).

@rolandshoemaker

Copy link
Copy Markdown
Contributor

LGTM.

@jmhodges

Copy link
Copy Markdown
Contributor

LGTM

jmhodges added a commit that referenced this pull request Nov 12, 2015
Don't serve 500's on DNS timeout.
@jmhodges
jmhodges merged commit af83b73 into master Nov 12, 2015
@jmhodges
jmhodges deleted the no-500-dns branch November 12, 2015 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DNS timeouts should not generate 500s MX records are not a necessary condition for SMTP delivery

3 participants