forked from 0xWheatyz/SPARC
Add rate limiting to /auth/login and /auth/register endpoints #803
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?
Background
/auth/loginand/auth/registerhave no rate limiting, making them vulnerable to brute-force password guessing and registration abuse.What to do
slowapifor FastAPI)/auth/login(e.g., 10 requests/minute) and/auth/register(e.g., 5 requests/minute)Retry-Afterheader when the limit is exceededAcceptance criteria
References
Roadmap item: P1 Error handling and resilience -- No rate limiting on auth endpoints
This issue has already been resolved and merged into main via PR #28 (feat(auth): add rate limiting to login and register endpoints). Closing as completed.