Skip to content

Conversation

@beautifulentropy
Copy link
Member

@beautifulentropy beautifulentropy commented Aug 20, 2025

Prevent callers from blasting our Zendesk with junk requests and (eventually) our database with automatically approved overrides.

Closes #8359

@beautifulentropy beautifulentropy changed the base branch from main to sfe-form-building August 20, 2025 16:51
@beautifulentropy beautifulentropy marked this pull request as ready for review August 20, 2025 16:53
@beautifulentropy beautifulentropy requested a review from a team as a code owner August 20, 2025 16:53
@beautifulentropy beautifulentropy requested review from jsha and removed request for a team August 20, 2025 16:53
@github-actions
Copy link
Contributor

@beautifulentropy, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

@beautifulentropy beautifulentropy changed the title sfe: Add per IP rate limits to the overrides request forms sfe: Add per IP rate limits to the overrides request form submissions Aug 20, 2025
@beautifulentropy beautifulentropy removed the request for review from jsha August 20, 2025 16:57
@beautifulentropy
Copy link
Member Author

@beautifulentropy, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

Skipping these tickets until we're ready to launch the new Web UI, then we'll bundle all of the changes into a single request.

jprenken
jprenken previously approved these changes Aug 20, 2025
Base automatically changed from sfe-form-building to main August 27, 2025 14:52
@beautifulentropy beautifulentropy dismissed jprenken’s stale review August 27, 2025 14:52

The base branch was changed.

@beautifulentropy beautifulentropy force-pushed the sfe-override-request-form-rate-limit branch from 6ab6fa7 to 013cc6d Compare August 27, 2025 15:23
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you talked with SRE about how they'll want to load defaults into the SFE? My naive guess would be that they'd rather put this default in the extant defaults file, rather than managing another new file. But I certainly don't know for sure.

// TODO(#8359): Check per-IP rate limits for this endpoint.
var refundLimits func()
var submissionSuccess bool
if sfe.limiter != nil && sfe.txnBuilder != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

The addition of all this new (nested) code has made me realize how fragile this handler function is. It, like many of our WFE methods, has eight bajillion pairs of http.Something followed by an immediate return, and if any of those returns are missing the behavior will quickly go off the rails.

Not necessarily a thing to be fixed now, but a thing to be aware of for sure. This pattern is already bad in the WFE. Let's avoid perpetuating it in the SFE if we can.

@beautifulentropy beautifulentropy merged commit 3dc9886 into main Aug 29, 2025
14 checks passed
@beautifulentropy beautifulentropy deleted the sfe-override-request-form-rate-limit branch August 29, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sfe: Add per IP rate limits to the overrides request forms

4 participants