-
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: Unable to get rate limit periods in a reliable way #19304
Labels
Milestone
Comments
CL https://golang.org/cl/37463 mentions this issue. |
CL https://golang.org/cl/38436 mentions this issue. |
c-expert-zigbee
pushed a commit
to c-expert-zigbee/crypto_go
that referenced
this issue
Mar 28, 2022
This change exposes a function to extract rate limit duration from a client error using Retry-After response header. Author: David Calavera <david.calavera@gmail.com>. Fixes golang/go#19304. Change-Id: Iec9cfab398b84c6f216b95d3265ffad1ce2f29a7 Reviewed-on: https://go-review.googlesource.com/37463 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> 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
This change exposes a function to extract rate limit duration from a client error using Retry-After response header. Author: David Calavera <david.calavera@gmail.com>. Fixes golang/go#19304. Change-Id: Iec9cfab398b84c6f216b95d3265ffad1ce2f29a7 Reviewed-on: https://go-review.googlesource.com/37463 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> 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
This change exposes a function to extract rate limit duration from a client error using Retry-After response header. Author: David Calavera <david.calavera@gmail.com>. Fixes golang/go#19304. Change-Id: Iec9cfab398b84c6f216b95d3265ffad1ce2f29a7 Reviewed-on: https://go-review.googlesource.com/37463 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> 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
This change exposes a function to extract rate limit duration from a client error using Retry-After response header. Author: David Calavera <david.calavera@gmail.com>. Fixes golang/go#19304. Change-Id: Iec9cfab398b84c6f216b95d3265ffad1ce2f29a7 Reviewed-on: https://go-review.googlesource.com/37463 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> 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
This change exposes a function to extract rate limit duration from a client error using Retry-After response header. Author: David Calavera <david.calavera@gmail.com>. Fixes golang/go#19304. Change-Id: Iec9cfab398b84c6f216b95d3265ffad1ce2f29a7 Reviewed-on: https://go-review.googlesource.com/37463 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> 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.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Go 1.8.0
What operating system and processor architecture are you using (
go env
)?What did you do?
I'm using crypto/acme to create certificates from Let's Encrypt. The ACME spec provides a way to get rate limit information from providers in a reliable way:
https://tools.ietf.org/html/draft-ietf-acme-acme-05#section-6.4.1
However, crypto/acme doesn't provider any straightforward way to get those limits, leaving to everyone that uses it to implement the same logic over and over again to get those values:
An example of what people need to do every time they use crypto/acme:
What did you expect to see?
I think these kind of checks are frequent enough that the library should provide a more straightforward way to get the limit time or duration, something like this:
What did you see instead?
I created a small helper in my project to handle this. But that's something that every developer using crypto/acme will have to implement. I think it'd make sense to provide that logic by default with the library.
I also created a change request: https://go-review.googlesource.com/#/c/37463/
The text was updated successfully, but these errors were encountered: