-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Remove legacy rate limits code #7671
Milestone
Comments
18 tasks
beautifulentropy
added a commit
that referenced
this issue
Nov 19, 2024
2 tasks
jprenken
added a commit
that referenced
this issue
Jan 10, 2025
…move code using certificatesPerName & newOrdersRL tables (#7858) Remove code using `certificatesPerName` & `newOrdersRL` tables. Deprecate `DisableLegacyLimitWrites` & `UseKvLimitsForNewOrder` flags. Remove legacy `ratelimit` package. Delete these RA test cases: - `TestAuthzFailedRateLimitingNewOrder` (rl: `FailedAuthorizationsPerDomainPerAccount`) - `TestCheckCertificatesPerNameLimit` (rl: `CertificatesPerDomain`) - `TestCheckExactCertificateLimit` (rl: `CertificatesPerFQDNSet`) - `TestExactPublicSuffixCertLimit` (rl: `CertificatesPerDomain`) Rate limits in NewOrder are now enforced by the WFE, starting here: https://github.com/letsencrypt/boulder/blob/5a9b4c4b18fd0aa670bc6332bdd59701ff7d6186/wfe2/wfe.go#L781 We collect a batch of transactions to check limits, check them all at once, go through and find which one(s) failed, and serve the failure with the Retry-After that's furthest in the future. All this code doesn't really need to be tested again; what needs to be tested is that we're returning the correct failure. That code is `NewOrderLimitTransactions`, and the `ratelimits` package's tests cover this. The public suffix handling behavior is tested by `TestFQDNsToETLDsPlusOne`: https://github.com/letsencrypt/boulder/blob/5a9b4c4b18fd0aa670bc6332bdd59701ff7d6186/ratelimits/utilities_test.go#L9 Some other RA rate limit tests were deleted earlier, in #7869. Part of #7671.
jprenken
added a commit
that referenced
this issue
Jan 11, 2025
beautifulentropy
pushed a commit
that referenced
this issue
Jan 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
InitialIP
incore.Registration
. Default this field to "0.0.0.0" in the WFE and the SA (ratelimit: Remove legacy registrations per IP implementation #7760)InitialIP
fromcore.Registration
if wfe.limiter == nil && wfe.txnBuilder == nil
incheckNewAccountLimits
andcheckNewOrderLimits
WFE methods.if ra.limiter == nil && ra.txnBuilder == nil
incountFailedValidations()
andcountCertificateIssued()
RA methods.limitsExempt
fromNewOrderRequest
proto.isRenewal
fromNewOrderRequest
proto.The text was updated successfully, but these errors were encountered: