Skip to content

S07-10 - Anonymous Credentials

Purpose: How wb-proxyd answers hosts that want a token even for public reads, without forwarding the guest’s token.

Some hosts answer public reads only to a request with a token. wb-proxyd doesn’t forward the guest’s token for those, not even one the host issued in the same session. A host-side binding with a fixed public value injects one instead (S07-08-requests-and-credentialsS07-08-requests-and-credentials: Requests and CredentialsThe form of each request wb-proxyd sends upstream, and how it removes the guest's credentials and injects bound ones., “Credential replacement”).

The package registries profile has one: Authorization: Bearer QQ== on GET and HEAD of ghcr.io /v2/homebrew/core/. That is the value Homebrew itself sends.

  • On those paths, any method other than GET and HEAD is refused. It is logged with the rule anonymous-binding-read-only.
  • Without the binding, every bottle download fails with a 401, because brew never asks the token endpoint for a token.
  • ghcr.io/token is denied to the guest. No client needs it once the binding answers.

If ghcr.io stops accepting the fixed value, wb-proxyd fetches an anonymous token itself, by the documented flow (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?). It injects that token in place of the fixed value.

These fail or stay unknown in V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there.:

  • brew also reads ghcr.io/v2/homebrew/command-not-found/.
  • Bottles of third-party taps can be on ghcr.io, outside homebrew/core.
  • Claude Code sends a built-in DD-API-KEY header to Datadog’s log intake.

The first two are outside the profile and the anonymous binding, and fail in V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there.. Datadog’s host stays out of the model API profile. It is an unknown destination like any other.

A host-side binding injects Homebrew’s own public value on reads of ghcr.io /v2/homebrew/core/.

  • Rejected:
    • Forwarding guest tokens on reads only. It forwards an attacker’s token on every GET, and a placeholder without a binding then fails the request.
    • Forwarding only tokens that the host issued in this session. It doesn’t fix Homebrew.

Status: Draft