forked from 0xWheatyz/SPARC
Add rate limiting middleware to auth endpoints to prevent brute-force attacks #1073
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 reference: P1 / Error handling and resilience
/auth/loginand/auth/registerhave no rate limiting, making them vulnerable to brute-force credential stuffing and registration spam.What to do
slowapior a custom Redis-backed counter)./auth/login(e.g., 10 requests/minute per IP) and/auth/register(e.g., 5 requests/minute per IP).Retry-Afterheader when the limit is exceeded.READMEor inline comments.Acceptance criteria
Retry-Afterheader.Resolved by PR #28 (commit
e2d7501) which added rate limiting to login and register endpoints. Closing as complete.