mirror of https://github.com/interlegis/sapl.git
Browse Source
- sapl/audiencia/views.py: relative import 'from ..utils import ratelimit_ip' missed in previous migration; updated to 'from sapl.middleware.ratelimit import ratelimit_ip'. - settings.py: POD_NAMESPACE now defaults to `host` (socket.gethostname() result already computed at line 29) so bare-metal, VM and docker-compose deployments get a meaningful, unique KEY_PREFIX without any extra config. K8s deployments override it via POD_NAMESPACE env var (Downward API / start.sh service-account detection). - ratelimit.py: _NAMESPACE = settings.POD_NAMESPACE — single source of truth; removes duplicate K8s SA-file reading that settings.py/start.sh already handle. Drops now-unused `import os`. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>rate-limiter-2026
3 changed files with 11 additions and 19 deletions
Loading…
Reference in new issue