Repository navigation
feat: improve ACME server errors management - #3360
Merged
Merged
Conversation
dmke
approved these changes
Nov 10, 2026
Member
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I removed the check on HTTP status code: lego with only check the type of the detail problem type.
Also, theoretically, several error types could have a
Retry-Afterheader value. (ex: https://github.com/letsencrypt/boulder/blob/047ca0bd6bd389efbc878f6304fcaa9e65bcb6b5/wfe2/wfe.go#L664-L666).So, I added the field
RetryAfterto theProblemDetailserror type.But to avoid breaking changes the type
RateLimitedErrorwill keep aRetryAfterfield.The
RetryAfterfields of theProblemDetailsandRateLimitedErrorwill always have the same value.As I don't know the response content when a 503 is used for rate limits error (as I explained inside the issue), I replaced the previous raw errors based on string with a
ProblemDetails.Theoretically, it should never happen because the ACME servers should follow the RFC8555, but I prefer to be safe and avoid unexpected behavior.
Fixes #3356