SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Credential brokering

Credential brokering is a technique for keeping real credentials outside a sandbox, so that code running inside it never holds them. A proxy or broker sits on the outbound path, checks requests, and attaches the credential itself to approved ones 12.

Docker's sandbox documentation describes a host-side proxy that intercepts outbound requests and checks whether each matches a service the agent or kit declares. It then looks up the credential on the host and overwrites the authentication header before forwarding. The sandbox sees only a sentinel value such as proxy-managed. Custom secrets use generated placeholders, which the proxy replaces only in HTTP request headers, not in bodies 1.

OpenAI's agent security guidance recommends keeping third-party credentials outside the execution environment. In its hosted sandbox, code sees a placeholder and a network proxy substitutes the real secret for approved hosts. Self-hosted environments must supply their own trusted proxy. The page notes that putting a stored secret into the environment still exposes it to agent-generated code, and it advises regular rotation and prompt revocation 2. Docker notes that its OAuth passthrough option sends the real token into the sandbox and reduces isolation 1.

Source · Credentials (Docker Sandboxes) (opens in a new tab) · Docker

References

  1. Credentials (Docker Sandboxes) (opens in a new tab) · Docker ↩ ↩ ↩
  2. Agents API environments: security (opens in a new tab) · OpenAI ↩ ↩

Research articles

See what connects to it on the map of ideas →

See also