-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/crypto/acme: End polling on 400-series errors #24145
Labels
Milestone
Comments
Whoops, sorry. Thanks for the report. /cc @x1ddos |
FYI, the ACMEv2 implementation does not have this bug, as it currently errors on all HTTP errors. @jsha Should clients retry on 5XX errors? |
Yep, 5XXs should be retried, with the usual backoff. |
Change https://golang.org/cl/97695 mentions this issue: |
c-expert-zigbee
pushed a commit
to c-expert-zigbee/crypto_go
that referenced
this issue
Mar 28, 2022
"At Let's Encrypt, we are seeing clients in the wild that continue polling their challenges long after those challenges have expired and started serving 404." The 4xx response code errors are client errors and should not be retried. Fixes golang/go#24145 Change-Id: I012c584fc4defd3a0d64a653860c35705c5c6653 Reviewed-on: https://go-review.googlesource.com/97695 Run-TryBot: Alex Vaghin <ddos@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
c-expert-zigbee
pushed a commit
to c-expert-zigbee/crypto_go
that referenced
this issue
Mar 29, 2022
"At Let's Encrypt, we are seeing clients in the wild that continue polling their challenges long after those challenges have expired and started serving 404." The 4xx response code errors are client errors and should not be retried. Fixes golang/go#24145 Change-Id: I012c584fc4defd3a0d64a653860c35705c5c6653 Reviewed-on: https://go-review.googlesource.com/97695 Run-TryBot: Alex Vaghin <ddos@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
LewiGoddard
pushed a commit
to LewiGoddard/crypto
that referenced
this issue
Feb 16, 2023
"At Let's Encrypt, we are seeing clients in the wild that continue polling their challenges long after those challenges have expired and started serving 404." The 4xx response code errors are client errors and should not be retried. Fixes golang/go#24145 Change-Id: I012c584fc4defd3a0d64a653860c35705c5c6653 Reviewed-on: https://go-review.googlesource.com/97695 Run-TryBot: Alex Vaghin <ddos@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
BiiChris
pushed a commit
to BiiChris/crypto
that referenced
this issue
Sep 15, 2023
"At Let's Encrypt, we are seeing clients in the wild that continue polling their challenges long after those challenges have expired and started serving 404." The 4xx response code errors are client errors and should not be retried. Fixes golang/go#24145 Change-Id: I012c584fc4defd3a0d64a653860c35705c5c6653 Reviewed-on: https://go-review.googlesource.com/97695 Run-TryBot: Alex Vaghin <ddos@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
desdeel2d0m
added a commit
to desdeel2d0m/crypto
that referenced
this issue
Jul 1, 2024
"At Let's Encrypt, we are seeing clients in the wild that continue polling their challenges long after those challenges have expired and started serving 404." The 4xx response code errors are client errors and should not be retried. Fixes golang/go#24145 Change-Id: I012c584fc4defd3a0d64a653860c35705c5c6653 Reviewed-on: https://go-review.googlesource.com/97695 Run-TryBot: Alex Vaghin <ddos@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
In x/crypto/acme's WaitForAuthorization, polling continues until the response code is either StatusOK or StatusAccepted. However, 400-series errors, like 404 and 403, should generally not be considered retryable, and should result in an immediate error return.
At Let's Encrypt, we are seeing clients in the wild that continue polling their challenges long after those challenges have expired and started serving 404.
The text was updated successfully, but these errors were encountered: