Skip to content

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..

guest, untrustedcurl, npm, ghgit over sshpsql, custom toolshost: trustedwb-netd, wb-proxydname bound by addressprotocol from first bytesTLS or HTTPinspect or pass: specifiedSSH to the git hostno rule, keys only on the hostother TCP protocolsno rule

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.

Like A, without raw TCP entries. A remote database or a protocol other than TLS and HTTP is unreachable from the guest.

Like A, but wb-proxyd speaks SSH on both sides with a key held on the host. It applies the git hosting rules to SSH as well. SSH remotes keep working unchanged.

wb-proxyd code decides, and the spec drifts from it.

RequirementA. Reset + raw TCPB. TLS and HTTPC. SSH endpointD. As is
SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable. only allowlisted hostnames are reachablekeptholdsunchangedundefined
SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM. writes only to the project’s repositoriesover HTTPSover HTTPStwo protocolsundefined
SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. no secrets in the guestkeptholdshost key onlyclient keys?
NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it. each refusal names its ruleaudited resetaudited resetaudited resetno rule
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. data through allowed channelsplus raw TCP entriesunchangedplus raw TCP entriesunknown
FR08-no-proxy-configFR08-no-proxy-config: No per-tool proxy settingsAllowlisted network destinations work for every tool without per-tool proxy configuration. tools work without proxy settingsSSH via rewriteno databasesSSH as isunknown
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-proxyd receives it from wb-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.