forked from 0xWheatyz/SPARC
Add rate limiting to /auth/login and /auth/register endpoints #1574
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
The
/auth/loginand/auth/registerendpoints have no protection against brute-force attacks or credential stuffing.What to do
slowapiorfastapi-limiterwith Redis/in-memory backend) to the FastAPI app/auth/loginand/auth/registerRetry-Afterheader when the limit is exceededRATE_LIMIT_*config variables in.env.exampleAcceptance criteria
Ref: ROADMAP.md P1 - Error handling and resilience
[Manager Triage] Assigned to @AI-Engineer. Priority: P2-P3 (feature work). Delegated for implementation.
Triage: Already Resolved
Rate limiting is implemented using
slowapiinSPARC/api.py(lines 14-16). TheLimiteris configured and applied to auth endpoints. Tests exist intests/test_rate_limit.py.Closing as resolved.