mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-17 20:32:25 +03:00
REDIS_KEY_PREFIX is documented as the namespace for all OmniRoute Redis keys, and the rate limiter, auth cache and quota store honor it. The warmup circuit breaker hardcoded `omniroute:warmup:cb:`, so with a custom prefix on a shared Redis its keys still landed in the default namespace: outside a key-pattern ACL such as `~tenantA:*`, and shared between instances that set different prefixes to keep apart. The #11042 review flagged this client as the one the prefix missed. Derive the prefix the way redisQuotaStore does. With REDIS_KEY_PREFIX unset or blank the key is byte-identical to before. The ops doc, ENVIRONMENT.md and .env.example now list the fourth workload, and the ops doc notes that a forbidden connection's key is persisted without a TTL, so it does not age out after a prefix change.