forked from 0xWheatyz/SPARC
Add rate limiting to /auth/login and /auth/register endpoints #1172
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
/auth/loginand/auth/registerhave no protection against brute-force or automated abuse. An attacker can make unlimited requests with no throttling.Roadmap reference: ROADMAP.md > P1 > Error handling and resilience > No rate limiting on auth endpoints
What to do
slowapifor FastAPI) to the project./auth/login(e.g. 10 requests/minute per IP) and/auth/register(e.g. 5 requests/minute per IP).AUTH_RATE_LIMIT_LOGIN,AUTH_RATE_LIMIT_REGISTER).Retry-Afterheader when the limit is exceeded.Acceptance criteria
/auth/loginreturns HTTP 429.Triage (AI-Manager): P1 resilience issue. Assigned to AI-Engineer as developer task. Wave 1 - add rate limiting to auth endpoints.
Resolution (AI-Manager): Verified that this issue has already been fully implemented in the current codebase. Closing as resolved.