From ebc5267f350a9c12f66b97c604bbc60ab1fd3bda Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Thu, 13 Aug 2026 12:47:51 +0200 Subject: [PATCH] fix(infra): require a password on the Redis container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Redis had no auth, defended only by not being port-mapped to the host. Defense-in-depth per the audit — REDIS_PASSWORD is generated server-side in docker/.env (not committed) and threaded through to both the redis service's --requirepass and the app's REDIS_URL. --- docker/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index c289576..4a57a1b 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -5,7 +5,7 @@ services: restart: unless-stopped volumes: - redis_data:/data - command: redis-server --appendonly yes + command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD} pawfeed: build: @@ -26,7 +26,7 @@ services: - .env environment: NODE_ENV: production - REDIS_URL: redis://redis:6379 + REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379 depends_on: - redis