-
Notifications
You must be signed in to change notification settings - Fork 6
Add rate limiting per user #3
Copy link
Copy link
Open
Description
Summary
Implement per-user rate limiting to prevent abuse, even from allowed users.
Implementation Options
- In-memory - Simple Map with timestamps, resets on restart
- Redis-based - Persistent across restarts, uses existing Redis connection
Suggested Behavior
- Track request timestamps per Discord user ID
- Configurable via env:
RATE_LIMIT_REQUESTS=5,RATE_LIMIT_WINDOW_MS=60000 - Default: 5 requests per 60 seconds
- Respond with rate limit message when exceeded
Priority
Medium - implement after user/channel allowlist (#1)
Related
- Depends on Add user/channel allowlist for access control #1 (allowlist should be checked first, rate limiting second)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels