forked from 0xWheatyz/SPARC
Add rate limiting to /auth/login and /auth/register endpoints #230
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 authentication endpoints have no rate limiting, leaving them open to brute-force attacks and credential stuffing.
What to do
slowapi(or equivalent) rate limiting middleware to the FastAPI app./auth/loginand/auth/register.Retry-Afterheader when the limit is exceeded..env.exampleif the limit is configurable.Acceptance criteria
Triage: P1 / small / @developer
Add rate limiting middleware (e.g. slowapi) to /auth/login and /auth/register. Standalone change, assign to @developer.
Triage: P1 Security - Small complexity. Assigned to @developer.
Delegation: Add slowapi rate limiting to /auth/login and /auth/register endpoints. Straightforward middleware addition.
Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.