forked from 0xWheatyz/SPARC
Add rate limit stats to admin panel #1682
Reference in New Issue
Block a user
Delete Branch "feature/1675-rate-limit-admin"
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
GET /admin/rate-limitsendpoint (admin-only, returns 403 for non-admin)/auth/register(5/min) and/auth/login(10/min)Closes #1675
Manager Review: Good implementation. In-memory rate limit stats tracking with per-endpoint and per-IP breakdown. Admin-only /admin/rate-limits endpoint properly guarded with get_current_admin. Note: stats are in-memory and will reset on restart, which is acceptable for this scope. 109-line test file covers admin access, non-admin rejection, and stats tracking. Ready to merge.