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..
The problem
Section titled “The problem”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.).
Options
Section titled “Options”Impact
Section titled “Impact”Open decisions
Section titled “Open decisions”- 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
Cookieon every inspected host, likeAuthorization. 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. - Which anonymous value for
ghcr.io.ghcr.ioacceptedBearer QQ==, and also a random bearer value, for public reads. The proxy can instead fetch an anonymous token fromghcr.io/tokenitself, 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 ifghcr.iochanges. - 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”.
Evidence
Section titled “Evidence”- verified With every guest credential removed,
brew fetchfailed:ghcr.ioanswered 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
brewsendsAuthorization: Bearer QQ==by default (HOMEBREW_GITHUB_PACKAGES_AUTHinLibrary/Homebrew/brew.shof 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
ghwith 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 withQQ==or with an issued anonymous token got 401, and the token endpoint refusedpushwithout credentials. - verified GitLab reads a token from
?private_token=,?private%5Ftoken=and?access_token=, and fromprivate_tokenin a form or JSON body (401 for a fake value). Upper-casePRIVATE_TOKENis ignored. Forgejo oncodeberg.orgreads?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-proxydcan’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.iokeeps 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.
What this unblocks
Section titled “What this unblocks”- Credential replacement in
wb-proxyd(SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential.), to the rewritten 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. bullet. - Homebrew in macOS guests (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.).
- Part of the exit criterion of V1-M1-spikes-closedV1-M1-spikes-closed: Spikes answered and spec gaps closedX01-model-credential to X09-keychain-unsigned and X17-image-build to X28-git-alloc-limit written up in docs/spikes/, the spec issues of the first implementation plan decided, and specs updated..
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
- Bearer token: a credential sent as
Authorization: Bearer <value>. Whoever holds it is let in. - Binding: host-side configuration that tells
wb-proxydwhich credential to inject for which host and paths (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.). - Placeholder: a fake value in the guest where a tool expects a credential.
wb-proxydreplaces it. - Token flow: how a container registry hands out access. A request without a token gets 401 with an address to ask, the client asks there, and sends the token it got.
- Presigned URL: a download address with a signature in it, issued by the server, which works for a short time without other credentials.