What does the gateway do with a connection that isn't TLS or HTTP?
Decided 2026-10-04: A. Reset by default, raw TCP as a pass-class entry. The decision and its reasons are in the I47I47 (closed): S07-egress-gateway: non-HTTP streams, SSH remotes and ECHS07-egress-gateway describes TLS and HTTP. comment that starts Decision (2026-10-04):. Source: I47I47 (closed): S07-egress-gateway: non-HTTP streams, SSH remotes and ECHS07-egress-gateway describes TLS and HTTP.. Affects S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., and through I41I41 (closed): S08-workspace-and-git: which git data reaches the guest, and host git as a parserS08-workspace-and-git says how bytes move, but not which data the guest may get or how much the host trusts its own git when it parses guest data: S08-workspace-and-gitS08-workspace-and-git: Workspace and Git Round TripHow code gets into the guest and how the agent's work gets back out, without sharing the host filesystem..
The problem
Section titled “The problem”Figure 1. wb-netd accepts TCP to a synthetic address on an allowed port and hands the stream to wb-proxyd. S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host. says what happens to TLS and HTTP. For SSH and every other protocol on an allowed port it says nothing (red paths), so the behavior would be whatever the code does.
Options
Section titled “Options”Impact
Section titled “Impact”Evidence
Section titled “Evidence”- verified
wb-netdaccepts TCP to a synthetic address on an allowed port and hands it towb-proxyd(S07-02-packet-pathS07-02-packet-path: Packet PathHow wb-netd carries the guest's frames: the packet transport, the stack, the link filter, its caps, addressing, the MTU and connections., “Connections”). The “Stream path” section covers only TLS (inspect or pass) and plain HTTP on port 80. - verified For TLS, the ClientHello SNI must equal the bound host or the stream is reset (S07-07-hosts-and-modesS07-07-hosts-and-modes: Hosts and ModesHow wb-proxyd binds a stream to its name, which upstream addresses it refuses, and the inspect, pass and audit modes., “Name binding”).
- verified DNS answers
Aqueries, gives an empty answer toAAAA,HTTPSandSVCBsince B17-network-pathB17-network-path: Does a macOS guest work on our userspace network stack, reaching only the proxy, and how fast?Yes, with conditions., and refuses every other type (S07-03-dnsS07-03-dns: DNSHow wb-netd answers the guest's DNS queries: synthetic addresses, the name form, negative answers and the wildcard budget.). No spec says why HTTPS and SVCB get an empty answer. - verified ECH keys are advertised in SVCB and HTTPS records. When the server rejects ECH, the client must check the certificate against the public name and then retry or abort with
ech_required(RFC 9849, IETF record). - verified Git rewrites URLs with
url.<base>.insteadOfandurl.<base>.pushInsteadOf(git help config, git on macOS 27). That makes the SSH-to-HTTPS rewrite a guest git setting. - verified I41I41 (closed): S08-workspace-and-git: which git data reaches the guest, and host git as a parserS08-workspace-and-git says how bytes move, but not which data the guest may get or how much the host trusts its own git when it parses guest data: already recommends rewriting SSH remotes to HTTPS for the guest, because the guest has no SSH keys.
- inferred A guest can supply ECH keys without DNS. The DNS refusal covers only clients that follow the standard path.
- inferred In a server-first protocol, the client doesn’t send a byte before the server greets. Protocol detection needs a timeout for that case.
- assumed That rewriting SSH remotes is enough for the tools users run in the guest, including
ghand Homebrew taps. X22-no-guest-credentialsX22-no-guest-credentials: Clients without guest credentialsWhich common clients (Homebrew against ghcr.io, git, gh, npm, pip, uv, SwiftPM, Go, cargo, Claude Code) break when wb-proxyd removes every guest-supplied Authorization header and cookie on inspected hosts?, which tests these clients, can cover it.
What this unblocks
Section titled “What this unblocks”- The protocol check in
wb-proxydfor V1-M3-network-floorV1-M3-network-floor: The network floorwb-netd and wb-proxyd in inspect mode with a static policy, the audit log, and the conformance cases for egress. and its conformance cases (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.). - The remote rewrite in I41I41 (closed): S08-workspace-and-git: which git data reaches the guest, and host git as a parserS08-workspace-and-git says how bytes move, but not which data the guest may get or how much the host trusts its own git when it parses guest data:, which this decision confirms for SSH.
- It doesn’t wait on a spike. The raw TCP entries follow the pass-mode rules decided in I40I40 (closed): S03-requirements, S07-egress-gateway: record learn mode and pass mode as SEC05-default-deny exceptionsSEC05-default-deny is "default-deny egress", and AGENTS.md says an S control is never weakened..
Details and glossary
The port says nothing about the protocol. A policy entry names a host and a port. A guest can send SSH to port 443 of an allowed host. So wb-proxyd has to check that the first bytes match the protocol policy expects, and reset the stream when they don’t.
Raw TCP entries. An entry names one host and one port. The user adds it, never repository configuration, as for pass hosts. The proxy can’t see the content, so each entry is a T01-allowed-channelsT01-allowed-channels: Data through allowed channelsData sent through allowed operations to allowed destinations, for example a push to an allowed repository that is public, or prompt content sent to the model provider. channel, listed in wb policy explain.
Glossary
- Stream: one TCP connection, as
wb-proxydreceives it fromwb-netd. - SNI: the host name a TLS client names in its first message.
- ECH (Encrypted ClientHello): a TLS extension that hides the real host name inside an encrypted part of the first message, and shows only a public name outside.
- HTTPS and SVCB records: DNS record types that tell a client how to connect, including ECH keys.
CONNECT: an HTTP method that asks a proxy to open a raw tunnel to another host.- Server-first protocol: a protocol where the server sends the first bytes and the client waits for them.
- Client certificate: a certificate and private key the client presents to prove who it is.