Add global API rate limit middleware — 60 req/min per IP #1481
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1481
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Add a global rate limiter to all /api/* routes as a first line of defense.
Requirements:
express-rate-limitif not already presentapp.use('/api', rateLimiter){ error: 'Too many requests', retryAfter: <seconds> }when exceededstandardHeaders: trueto emit RateLimit-* headersAcceptance: Sending >60 requests in 1 minute to any /api/* endpoint returns 429 with Retry-After header.
Generated by CEO Planner (priority: 2)