Skip to content

Can the proxy drop every credential the guest sends without breaking its tools?

Answered 2026-10-05: yes, with conditions. Decided 2026-10-06: A, remove every guest credential and inject from the host, with the three open decisions as recommended. The decision and its reasons are in the I33I33 (closed): X22-no-guest-credentials: Clients without guest credentialsX22-no-guest-credentials (added to S11-verification-and-spikes in #14) comment that starts Decision (2026-10-06):. Source: I33I33 (closed): X22-no-guest-credentials: Clients without guest credentialsX22-no-guest-credentials (added to S11-verification-and-spikes in #14), 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?. Changes 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., S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded., S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… and T00-indexT00-indexboundary 6 is the host terminal stream..

guest, untrustedbrewBearer QQ==gh, npm, gitplaceholder tokenattackerits own tokenhost: trustedwb-proxyd1. remove every guestcredential header2. inject the binding:user’s secret, or ananonymous public valueghcr.io bottlesanonymous bindingGitHub, registriesuser’s credential or noneattacker’s tokennever sent upstream

Figure 1. The guest’s tools send whatever credential they hold. wb-proxyd removes all of them and injects the binding’s value instead: the user’s credential from the secret store, or a fixed public value for a host like ghcr.io that wants a token even for public reads. An attacker’s own token never reaches upstream, so it can’t push to the attacker’s repository (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., 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.).

wb-proxyd removes every guest credential it knows the place of, on every request. The package registries profile includes an anonymous binding that sends Bearer QQ==, the value Homebrew itself sends, on reads of ghcr.io homebrew/core, and allows the bottle redirect host pkg-containers.githubusercontent.com for reads.

B. Forward guest credentials on reads only

Section titled “B. Forward guest credentials on reads only”

Remove credentials on POST, PUT and the other writes, and forward them on GET and HEAD.

Forward a bearer token only if wb-proxyd saw the host’s token endpoint issue it, in this session, to a request without credentials.

RequirementA. Remove, injectB. Reads onlyC. Issued onlyD. As it was
SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. real credentials are injected on the host and replace anything the guest sendskept, in named placesguest values on GETanonymous tokens passholds
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 own repositorieskeptwrites still removedholdskept
FR07-toolchain-manifestFR07-toolchain-manifest: Declared toolchainA project's toolchain is declared host-side (on macOS guests, a Brewfile) and reconciled automatically before a session starts. Homebrew installs the declared toolsworkspassesbottles fail401 on every bottle
Other clients git, git LFS, gh, npm, pip, uv, Go, cargo, SwiftPMall passgh failsall passall pass
SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter. every decision loggedremoval, refusalremoval loggedremoval loggedremoval logged
  1. Cookies on hosts without a built-in profile. No client measured sent a cookie. The npm registry sets Cloudflare cookies, and npm ignores them. A browser in the guest would send them, and wasn’t measured. Recommended: remove Cookie on every inspected host, like Authorization. The alternative is to remove cookies only where a profile or binding says so, which lets an attacker use its own web session on an approved site.
  2. Which anonymous value for ghcr.io. ghcr.io accepted Bearer QQ==, and also a random bearer value, for public reads. The proxy can instead fetch an anonymous token from ghcr.io/token itself, which is the documented flow. Both passed. Recommended: the fixed value, which is what Homebrew sends and doesn’t need a request or cache, with the token flow as the fallback if ghcr.io changes.
  3. What an approval grants on a host without a built-in profile. The specs were silent on this. If an approval granted every method, a guest could use its own token in a parameter no profile names to write to an approved host, such as a Forgejo instance approved for one dependency. Recommended: an approval grants GET, HEAD and OPTIONS. A write method, or a WebSocket upgrade, is a separate approval, which the risk check flags. The alternative, every method, is simpler for the user and leaves that write channel open. Now in S07-17-approvals-and-learningS07-17-approvals-and-learning: Approvals and LearningHow an unknown destination reaches the user as an approval request, what an approval grants, and how learn mode collects names., “What an approval grants”.
  • verified With every guest credential removed, brew fetch failed: ghcr.io answered 401 to each bottle manifest request. With the anonymous binding (either value), it passed (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?, “Clients under each rule”).
  • verified brew sends Authorization: Bearer QQ== by default (HOMEBREW_GITHUB_PACKAGES_AUTH in Library/Homebrew/brew.sh of Homebrew 7.0.7) and never asks the token endpoint for a token.
  • verified git, git LFS, npm, pip, uv, Go, cargo and SwiftPM passed under every rule, with and without a placeholder token configured.
  • verified gh with a placeholder token passed when it was removed and failed with 401 when it was forwarded on reads.
  • verified Anonymous credentials can’t write to ghcr.io: a blob upload with QQ== or with an issued anonymous token got 401, and the token endpoint refused push without credentials.
  • verified GitLab reads a token from ?private_token=, ?private%5Ftoken= and ?access_token=, and from private_token in a form or JSON body (401 for a fake value). Upper-case PRIVATE_TOKEN is ignored. Forgejo on codeberg.org reads ?token= and ?access_token=. GitHub refuses ?access_token= itself (400).
  • inferred Refusing those parameters stops an attacker’s token there. The spike proxy removed headers but never refused a parameter, so this follows from the probes and wasn’t run.
  • verified git LFS and Homebrew bottle downloads have signatures in the query string, so a rule that strips every token-like parameter would break them. wb-proxyd can’t tell who signed a URL, so the approval risk check flags shared object-storage hosts.
  • verified Each bottle download redirects to pkg-containers.githubusercontent.com, which the profile now allows for reads.
  • assumed That ghcr.io keeps accepting a fixed bearer value for public reads. Homebrew relies on it, and the token-flow fallback was measured.
  • assumed That browsers in the guest are rare enough to remove cookies everywhere, which wasn’t measured. Nor were pnpm, yarn, bun, RubyGems, Maven, Gradle or curl with .netrc.
Details and glossary

Why a fixed value isn’t a secret. QQ== is the base64 of the letter “A”. Homebrew ships it to every user, and ghcr.io treats it as anonymous. Putting it in a binding only means the value comes from the host instead of from the guest.

Why not trust tokens the host issued. A token that ghcr.io issues to a request without credentials can only read public images, so forwarding it would be safe. But Homebrew never asks for one. The rule would fix nothing that matters here, and it costs the proxy a parser and per-session state.

Why refuse parameters instead of removing them. A client has no reason to put a GitLab token in the address or the body when its placeholder goes in a header. Rewriting a body or an address changes what the server sees without the client knowing. A 403 that names the rule fails the request visibly, and the client’s error points at the cause. Both a refusal and a removal are logged.

Glossary