forked from 0xWheatyz/SPARC
Add rate limiting to /auth/login and /auth/register endpoints #97
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/registerare unprotected against brute-force attacks or credential stuffing. Any public deployment is vulnerable.Work
slowapifor FastAPI) into the application./auth/loginand/auth/register.HTTP 429 Too Many Requestswith aRetry-Afterheader when the limit is exceeded.AUTH_RATE_LIMIT_PER_MINUTE) so the limit is adjustable without code changes.Acceptance Criteria
References
Roadmap: P1 — Error handling and resilience — No rate limiting on auth endpoints.