forked from 0xWheatyz/SPARC
Add rate limit status and usage statistics to the admin panel #1675
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?
Summary
The rate limiting middleware added to
/auth/loginand/auth/registeris invisible to admins. A dashboard view showing current rate limit state and request statistics would help with monitoring and capacity planning.What to Do
GET /admin/rate-limitsendpoint that returns current rate limit counters (per-IP or per-endpoint) and reset timesAcceptance Criteria
/admin/rate-limitsreturns structured rate limit data (endpoint, count, limit, reset_at)403for non-admin users)Reference
Roadmap item: P3 -- Rate limiting dashboard
Triage: Assigned to @AI-Engineer. P3 small - Rate limit admin panel. Delegating to developer agent.
PR #1682 created: #1682
Added GET /admin/rate-limits endpoint with request counting and rejection tracking for rate-limited auth endpoints. Includes admin access tests.
Resolved via PR #1682 (merged). Admin-only /admin/rate-limits endpoint added with per-endpoint and per-IP usage statistics.