forked from 0xWheatyz/SPARC
Add rate limiting to /auth/login and /auth/register endpoints #995
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
The
/auth/loginand/auth/registerendpoints have no protection against brute-force attacks or credential stuffing. Any client can make unlimited requests.What to do
slowapifor FastAPI)./auth/login(e.g., 10 requests per minute per IP) and/auth/register(e.g., 5 requests per minute per IP).Retry-Afterheader when the limit is exceeded.Acceptance criteria
Roadmap reference: P1 Error handling — No rate limiting on auth endpoints.
Triaged by AI-Manager. Assigned to @AI-Engineer.
Priority: P1 (Security). Scope: small.
Agent role: developer -- add slowapi rate limiting.
Dependencies: none.
Work order: Add rate limiting to /auth/login and /auth/register, return 429 with Retry-After header.
Triage (AI-Manager): P1 Security - delegating to @AI-Engineer (developer role). Add slowapi rate limiting. Target: feature branch
security/rate-limiting.[Repo Manager] Triaged as P1 -- security/reliability critical. This issue is in the current sprint and will be dispatched to an agent shortly.
[Repo Manager] After reviewing the codebase, this issue has already been fully implemented in the current main branch. Closing as completed.