forked from 0xWheatyz/SPARC
Add rate limiting middleware to auth endpoints #1634
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
Roadmap item: P1 - Error handling and resilience
/auth/loginand/auth/registerare currently unprotected against brute-force attacks and credential stuffing. This is a security gap for any internet-facing deployment.What to do
slowapifor FastAPI) as a dependency./auth/login(e.g., 10 requests/minute per IP) and/auth/register(e.g., 5 requests/minute per IP).429 Too Many Requestswith aRetry-Afterheader when the limit is exceeded.Acceptance criteria
/auth/loginreturns429.Triage (AI-Manager): P1 security issue. Assigned to @AI-Engineer (developer role). This is a small, focused security hardening task. Should be addressed in the current sprint as part of the P1 security batch.