Browse Source

Revert "Rename RL_INDEX_API_BLOCKED_IPS key to use colon separator"

This reverts commit 7e9b2a40.
rate-limiter-2026
Edward Ribeiro 2 weeks ago
parent
commit
cf5606e7d7
  1. 2
      sapl/middleware/ratelimit.py

2
sapl/middleware/ratelimit.py

@ -78,7 +78,7 @@ RL_INDEX_BLOCKED_USERS = 'rl:index:blocked_users'
# API-specific rate limit keys — scope limited to /api/, never written by non-/api/ paths.
RL_API_IP_REQUESTS = 'rl:api:ns:{ns}:ip:{ip}:reqs'
RL_API_IP_BLOCKED = 'rl:api:ns:{ns}:ip:{ip}:blocked'
RL_INDEX_API_BLOCKED_IPS = 'rl:index:api:blocked_ips'
RL_INDEX_API_BLOCKED_IPS = 'rl:index:api_blocked_ips'
# ---------------------------------------------------------------------------
# API quota keys — per-consumer, per-day/week, tenant-scoped.

Loading…
Cancel
Save