You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docker-compose publishes Postgres and a passwordless Redis on 0.0.0.0 — peering/DB reachable from the LAN by default #421
docker-compose.yml (the documented full-stack smoke/dev stack) publishes both stateful services to the host on all interfaces, and Redis runs with no authentication:
# docker-compose.yml (main @ 506bf5c)postgres:
image: postgres:17ports:
- '5433:5432'# published on 0.0.0.0:5433...redis:
image: redis:7-alpineports:
- '6380:6379'# published on 0.0.0.0:6380 — no --requirepass, no ACL, command: absenthealthcheck:
test: ['CMD', 'redis-cli', 'ping']
Redis is not a passive cache in this topology — the server comment above it explains it "carries executor peering (cross-replica turn cancel via request-reply)", i.e. live orchestration traffic. With the default compose port publishing:
Anyone on the same network (coffee shop, conference, shared office LAN) can connect to redis://<host>:6380 unauthenticated.
From there they can read/clobber peering traffic (XADD/streams used by the event-subscription registry), flush keys (FLUSHALL) to disrupt running turns, or use the instance as a staging point for the usual exposed-Redis abuse.
Postgres is also reachable if POSTGRES_PASSWORD in .env is weak/default; even without that, exposing a database port beyond loopback is rarely intended.
HOST= defaults exist for the server ("defaults to localhost", per .env.example), which makes the unconditional 0.0.0.0 binding of its backing stores inconsistent with the project's own posture ("Standalone is for local use only... keep it on localhost").
and/or a password on Redis (command: ['redis-server', '--requirepass', '${REDIS_PASSWORD}'] + matching REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6379), consistent with the AGENTS.md rule that compose files must keep their intentional differences explicit.
Note the same pattern exists in docker-compose.dev.yml; per repo rules any change must be applied to both files in sync.
Activity
fix(docker): bind compose Postgres and Redis to loopback (truefoundry…