Compose NATS publishes 4222/8222 on every interface #1496

Closed
opened 2026-10-27 13:40:38 +00:00 by sam · 0 comments
Owner

docker-compose.yml's optional external NATS service maps 4222 and 8222 without a bind address, so Docker exposes the broker and its monitoring port to the network and bypasses host firewalls. Agent containers reach it over the Docker bridge, so loopback alone breaks them. Done when the broker is reachable only from the host and the bridge, or requires auth.

Close reason

Client port 4222 stays reachable from the bridge but the broker refuses to start without NATS_TOKEN; 8222 binds to loopback


Imported from beads archie-core-ov11 · GitHub #1502 · type bug · priority P2 · created 2026-10-05 · closed 2026-10-13

docker-compose.yml's optional external NATS service maps 4222 and 8222 without a bind address, so Docker exposes the broker and its monitoring port to the network and bypasses host firewalls. Agent containers reach it over the Docker bridge, so loopback alone breaks them. Done when the broker is reachable only from the host and the bridge, or requires auth. ### Close reason Client port 4222 stays reachable from the bridge but the broker refuses to start without NATS_TOKEN; 8222 binds to loopback --- _Imported from beads `archie-core-ov11` · GitHub #1502 · type bug · priority P2 · created 2026-10-05 · closed 2026-10-13_
sam added the mediumbug labels 2026-10-27 13:40:38 +00:00
sam self-assigned this 2026-10-27 13:40:38 +00:00
sam closed this issue 2026-10-27 13:40:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1496