Skip to content

Rate-limit authentication routes - #240

Merged
coder13 merged 1 commit into
devfrom
agent/auth-rate-limit
Jul 14, 2026
Merged

coder13 merged 1 commit into
devfrom
agent/auth-rate-limit

Conversation

@coder13

@coder13 coder13 commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • apply the established request rate limit to the authentication router
  • protect login-code exchange and logout routes outside the existing API limiter
  • add a real router regression test for the standard 429 response

Why

The authentication router was not mounted below the existing API-wide limiter. Repeated authentication requests were therefore not throttled by the application policy.

User impact

Normal sign-in and logout continue to work within the existing 300 requests per 15-minute IP window. Excessive requests receive the established rate_limited response. No email-related behavior is added or changed.

Validation

  • focused authentication router test
  • server lint
  • full workspace tests: 210 server, 97 client, 22 scramble tests
  • git diff check

Closes #239.

Apply the existing API rate-limit policy to auth endpoints so repeated login and logout requests receive the standard throttling response.
@coder13
coder13 marked this pull request as ready for review July 14, 2026 03:44
@coder13
coder13 merged commit b823e88 into dev Jul 14, 2026
9 checks passed
@coder13
coder13 deleted the agent/auth-rate-limit branch July 14, 2026 03:46
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.

1 participant