redact-proxy pre-release
Docs menu

Overview

redact-proxy runs an AI coding agent in a Docker container whose only network path leads through a proxy container. Sensitive values become markers or working stand-ins before the agent or the model sees them. The proxy keeps the real values in an encrypted store and puts them back only at the network edge, on a request to a host you allowlisted. In paranoid mode, only toward the host a value is bound to or one you approved.

Who it is for#

Developers and operators who want to let an agent work unattended, on long runs, against real infrastructure (APIs, Kubernetes, package registries, git) without the agent or the model provider ever holding the real secrets.

The goals, in order: nothing the proxy knows leaks; the agent works directly with the real data; friction stays low; the proxy is invisible to the programs the agent runs. Where a program checks a value's format, as with certificates and keys, it gets a stand-in that passes the check.

What happens in a session#

  1. redactproxy launch reads your policy, scrubs the workspace's secret files into an overlay, builds the agent image with the proxy's CA on top, starts the proxy and agent containers, points the agent's routes at the proxy and runs the self-test. A failed self-test stops the sandbox.
  2. You attach with the command the launcher prints: docker compose -p <project> -f <state>/compose.json exec agent claude.
  3. Claude Code talks to the proxy's LLM endpoint at 192.0.2.1:8080. Every request and every response is redacted, and the proxy adds the real Claude credential. The agent holds a dummy.
  4. Programs the agent runs (curl, npm, pip, kubectl) reach the gateway. It allows only destinations on your allowlist, inspects HTTP and TLS, puts markers back by rule and redacts what comes back. Other TCP to an allowlisted host is tunneled uninspected.
  5. When the workspace is a git repository, git there goes to the proxy's git endpoint, which runs real git on your repository and redacts the output.

Words used in these docs#

TermMeaning
Agent container, sandboxWhere the agent and its programs run. No capabilities, the base image's user (non-root in the default image), one network that leads to the proxy.
ProxyThe container that holds the real values, the firewall, the DNS sinkhole, the gateway, the LLM endpoint and the git endpoint.
MarkerA typed placeholder for a value: __redacted_<type>_<32 hex>__. Same value, same marker. See value types.
Stand-inA working replacement for a certificate or key: the proxy's CA, or a dummy key pair signed by it.
Put-backReplacing a marker with the real value at the network edge, on a request leaving the proxy.
PolicyThe JSON file that names allowed destinations and the put-back mode. See policy file.
StoreThe marker-to-value map, encrypted with AES-256-GCM, at ~/.redactproxy/<project>/store.bin.
Bound valueA value tied to one host, in the auth position: a provider key to its provider (a GitHub token to github.com), or a token to the host that issued it. Paranoid mode puts back only bound values.
Public-surface hostA service where a request body can become public (github.com, slack.com, pastebin.com and others). Only the auth position is put back there; a request with a marker elsewhere is refused.

Where to go next#