Skip to content

fix(network): block Docker host-gateway bypass and test Mode B outages - #205

Merged
wxcvm merged 7 commits into
mainfrom
test/mode-b-fail-closed-outage-20261123
Nov 23, 2026
Merged

wxcvm merged 7 commits into
mainfrom
test/mode-b-fail-closed-outage-20261123

Conversation

@wxcvm

@wxcvm wxcvm commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Root cause fixed

Docker's ordinary internal: true bridge prevents an external route but can still expose the host bridge gateway, including another proxy listening on the host. That is an unintended bypass of Mode B.

  • Configure runner-execution as a Docker Engine 28+ isolated-gateway bridge for IPv4 and IPv6; explicitly disable bridge IPv6.
  • Extend the Go Compose contract and Docker CI to require isolated driver opts and inspect the actual Linux host bridge for an assigned IPv4 address.
  • Emulate an internal HTTP gateway returning 502, then stop it; the executor must receive the 502 on the proxy path, fail after gateway loss, and fail direct IPv4/IPv6 even when proxy variables are removed.
  • Document Docker Engine prerequisite and remaining Docker Desktop, host DNS and MCP coverage limits.

No live user nodes or credentials used. Do not remove isolated gateway driver opts to support older Docker Engines; that would reopen a host proxy bypass. Fails closed if daemon can't create network.

Official Docker references: https://docs.docker.com/engine/release-notes/28/ and https://docs.docker.com/engine/network/port-publishing/

Related: #203; initial Mode B implementation #202 and three-hop profile #204.

@wxcvm wxcvm changed the title test(network): verify Mode B gateway failures do not restore direct egress fix(network): block Docker host-gateway bypass and test Mode B outages Nov 23, 2026
@wxcvm
wxcvm merged commit 252d2d6 into main Nov 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant