mirror of https://github.com/interlegis/sapl.git
Browse Source
Anonymous API requests now pass through after the quota check without
incrementing rl:ip:{ip}:reqs or writing a block key. A misbehaving
script or JS snippet behind a NAT IP can no longer lock out the org's
page requests by hammering /api/.
Enforcement for anonymous /api/:
- nginx sapl_api zone (60r/m, burst=120) — burst gate
- API quota (500/day, 3500/week) — daily cap
Authenticated /api/ still falls through to _evaluate_authenticated
(per-user counter keyed by uid, NAT-safe).
Interim measure until APP_ACCESS_KEYs per tenant org are introduced.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rate-limiter-2026
1 changed files with 12 additions and 0 deletions
Loading…
Reference in new issue