From 7e9b2a40ecb2de0bd2dd5c8cd389340a4f6e1818 Mon Sep 17 00:00:00 2001 From: Edward Oliveira Date: Mon, 11 May 2026 23:37:58 -0300 Subject: [PATCH] Rename RL_INDEX_API_BLOCKED_IPS key to use colon separator 'rl:index:api_blocked_ips' -> 'rl:index:api:blocked_ips' for consistent colon-delimited key naming convention. Co-Authored-By: Claude Sonnet 4.6 --- sapl/middleware/ratelimit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/middleware/ratelimit.py b/sapl/middleware/ratelimit.py index c4d59d28a..8806a7495 100644 --- a/sapl/middleware/ratelimit.py +++ b/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.