Skip to content

LG-11190 Don't reset the SSN rate limit on successful submission#9371

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-dont-reset-ssn-rate-limit
Oct 13, 2023
Merged

LG-11190 Don't reset the SSN rate limit on successful submission#9371
jmhooper merged 1 commit intomainfrom
jmhooper-dont-reset-ssn-rate-limit

Conversation

@jmhooper
Copy link
Contributor

Prior to this commit we reset the ss rate limiter on success. This was done to prevent users from being rate limited after successfully completing a step. The logic that caused that issue was addressed in #9343.

This commit starts counting successful attempts to towards the rate limit. This protects our users from fraud and makes it easier for us to make this step re-entrant to support the back button.

Prior to this commit we reset the ss rate limiter on success. This was done to prevent users from being rate limited after successfully completing a step. The logic that caused that issue was addressed in #9343.

This commit starts counting successful attempts to towards the rate limit. This protects our users from fraud and makes it easier for us to make this step re-entrant to support the back button.

changelog: Improvements, Rate Limiting, The proof ssn rate limiter was modified to no longer reset on successful proofing attempts that include an ssn
@jmhooper
Copy link
Contributor Author

Here is where you can find the existing tests that ensure the SSN rate limiter is working: https://github.com/18F/identity-idp/blob/jmhooper-dont-reset-ssn-rate-limit/spec/features/idv/doc_auth/verify_info_step_spec.rb#L199-L241

Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM

@jmhooper jmhooper merged commit 123cfd9 into main Oct 13, 2023
@jmhooper jmhooper deleted the jmhooper-dont-reset-ssn-rate-limit branch October 13, 2023 01:30
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.

2 participants