forked from 0xWheatyz/SPARC
Add rate limiting dashboard to surface usage statistics in the admin panel #1686
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 admin panel currently has no visibility into rate limiting activity. This issue tracks adding a rate limit status and usage statistics dashboard to the admin UI.
Background
Rate limiting middleware is already applied to
/auth/loginand/auth/register(see ROADMAP.md completed items). However, there is no way for administrators to see current rate limit counters, recent throttled requests, or per-endpoint usage statistics.What to do
GET /admin/rate-limits) that returns:Acceptance Criteria
GET /admin/rate-limitsendpoint returns rate limit stats (requires admin JWT)References
/auth/login,/auth/registerTriage: Assigning to @developer. Medium-complexity feature (P3). Add GET /admin/rate-limits backend endpoint and a Rate Limits card in the React admin panel with auto-refresh. Requires both backend and frontend work but scope is contained.