Rate-limit report ingestion per host
Reports arriving sooner than report_min_interval_seconds (default 30) after the host's previous one are refused with 429 and a Retry-After header. The check shares the insert's transaction so concurrent requests can't bypass it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8cb7ef5e8b
commit
a6a43b142f
6 files changed
+71
-3
No files matched your search
@@ -13,6 +13,11 @@ stale_after_hours = 3.0
|
||||
apt_stale_after_hours = 48.0
|
||||
|
||||
report_retention_days = 30
|
||||
|
||||
# Refuse (HTTP 429) a report that arrives sooner than this after the host's
|
||||
# previous one. Agents report hourly; this only stops a stuck or abusive client
|
||||
# from flooding the history. 0 disables.
|
||||
report_min_interval_seconds = 30
|
||||
session_hours = 12
|
||||
|
||||
# Session cookie gets the Secure flag. Leave on unless you're testing over
|
||||
|
||||
Reference in new issue
Block a user