Implement Per-User Rate Limiting #29
Labels
No labels
Epic
Feature Request
HOLD
audit
automerge
bug
dependencies
documentation
duplicate
good first issue
help wanted
invalid
question
release
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NiXTheDev/regexYbot#29
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 per-user rate limiting to prevent abuse and ensure fair usage of the bot.
Problem
Currently, users can send unlimited commands which could:
Solution
Implement a rate limiting system that tracks commands per user.
Implementation Details
Configuration
New environment variables:
User Experience
When rate limit exceeded:
Testing
While this is good practice, I am a bit skeptical, we already have regex time execution cap at 1min by default, and the pool self-rate-limits by having a cap on maximum workers
however, if spam does come in, the sed performance will be slowed for everyone, so, I am not against this, with normal usage this would never be an issue, plus having a safeguard is always handy