🕯️ fix: Decay Violation Scores With a Configurable TTL (#15153)

This commit is contained in:
Danny Avila 2026-08-24 08:36:21 -04:00 committed by GitHub
parent c52ba4efdb
commit b6e3cf46d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 116 additions and 3 deletions

View file

@ -677,6 +677,9 @@ BAN_VIOLATIONS=true
BAN_DURATION=1000 * 60 * 60 * 2
BAN_INTERVAL=20
# Violation scores expire after this long (in ms) without new violations; 0 = never expire
VIOLATION_SCORE_TTL=1000 * 60 * 60
LOGIN_VIOLATION_SCORE=1
REGISTRATION_VIOLATION_SCORE=1
CONCURRENT_VIOLATION_SCORE=1