Skip to content

R05 - iron-proxy

Purpose: What iron-proxy is, how it relates to Wraith Box’s egress gateway, which of its threats and defenses Wraith Box lacks, and what to do about it. Read at iron-proxy commit 60ed3566 (v0.54.0, 2026-10-21).

Requirements: SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential., SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable., 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., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter., NFR08-licensingNFR08-licensing: LicensingApache-2.0; dependencies under permissive licenses only., T01-allowed-channelsT01-allowed-channels: Data through allowed channelsData sent through allowed operations to allowed destinations, for example a push to an allowed repository that is public, or prompt content sent to the model provider., T10-unnamed-credentialsT10-unnamed-credentials: Guest credentials in unnamed placeswb-proxyd removes Authorization, Proxy-Authorization and Cookie on every inspected host.

iron-proxy (ironsh/iron-proxy, Apache-2.0, v0.1.0 on 2026-04-01, v0.54.0 on 2026-10-21) is an egress proxy that inspects TLS, in one Go binary with one YAML file. It is for CI jobs, containers and coding agents. Its own CI runs behind it, through the GitHub Action ironsh/iron-proxy-action. One author wrote most of it. The company iron.sh sells a control plane on top: in managed mode the proxy polls it for rules, secrets and transforms (internal/controlplane).

The binary has these parts:

  • A DNS server that answers every A query with the proxy’s own address. Names that match a passthrough glob resolve for real and bypass the proxy, and static records come first.
  • HTTP and HTTPS listeners. The HTTPS listener terminates TLS with leaf certificates from a CA whose key the operator supplies as a file. A global sni-only mode relays TLS by its SNI instead. An optional tunnel listener accepts CONNECT, SOCKS5 and absolute-form HTTP.
  • A transform pipeline, run in order on each request:
    • allowlist: domain globs and CIDRs, with optional method and path rules. Anything else gets a 403.
    • secrets: swaps a proxy token for a real secret, or injects one (see “Credentials” below).
    • header_allowlist, annotate and body_capture.
    • judge: an LLM that can only refuse a request its rules match.
    • grpc: calls an external TransformService (proto/transform/v1/transform.proto).
    • credential transforms: aws_auth re-signs SigV4, gcp_auth and gcp_id_token get Google tokens, oauth_token runs four OAuth 2 grants, and hmac_sign signs requests for exchange APIs.
  • An upstream deny list, checked against each address at connect time (internal/dnsguard).
  • MCP policy and an MCP gateway for MCP’s Streamable HTTP transport, a PostgreSQL proxy that pins a role per database, a response retry that an outside handler authorizes (its default header is Payment-Receipt), and a reload API.
  • Audit: a JSON line per request with each transform’s decision, and the same record as OpenTelemetry logs over OTLP.

iron-proxy doesn’t confine the workload. Getting its traffic to the proxy is the operator’s job: DNS alone, which the README calls “easy to bypass”, nftables rules that the workload’s container loads before it drops CAP_NET_ADMIN, or TPROXY. In the usual Docker setup the proxy and the workload share a kernel.

It has no written threat model. The README’s problem statement names the threats: a compromised dependency, a prompt injection or a malicious build step that steals secrets, phones home or opens a reverse shell. AGENTS.md lists the invariants a change must not weaken: default-deny, the upstream deny list, secret values never in logs, errors or responses, an audit record for every request, cleanup on error, and the MCP and PostgreSQL gates. It has no list of accepted risks.

iron-proxy Wraith Box V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there.
What it is An egress proxy A VM per trust level, with an egress gateway on the host
Confinement None of its own. The operator routes traffic to it The VM, and wb-netd as its only network (SEC01-separate-kernelSEC01-separate-kernel: Separate kernelThe agent runs in a hardware-virtualized guest with its own kernel, never sharing a kernel with the host or with another environment of the user (for example a WSL distribution)., SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.)
Name to destination Every name answers with the proxy’s address. Host or SNI picks the upstream A synthetic address per allowed name, and the stream is bound to that name (S07-07-hosts-and-modesS07-07-hosts-and-modes: Hosts and ModesHow wb-proxyd binds a stream to its name, which upstream addresses it refuses, and the inspect, pass and audit modes.)
DNS Every name. passthrough names resolve for real Allowed names only, with a wildcard budget (S07-03-dnsS07-03-dns: DNSHow wb-netd answers the guest's DNS queries: synthetic addresses, the name form, negative answers and the wildcard budget.)
TLS Inspect every host, or relay every host by SNI Inspect by default. pass per named host, with a reason and ECH checks (S07-16-tls-and-tunnelsS07-16-tls-and-tunnels: TLS and TunnelsWhat wb-proxyd does with client certificates, encrypted ClientHello and tunnels, and which refusals no mode or approval relaxes.)
Refused upstream addresses Instance metadata addresses and loopback, by default Private, link-local, CGNAT, unique local, embedded IPv4, and the host’s own networks (S07-07-hosts-and-modesS07-07-hosts-and-modes: Hosts and ModesHow wb-proxyd binds a stream to its name, which upstream addresses it refuses, and the inspect, pass and audit modes.)
Policy One YAML file per proxy OpenShell’s schema, per VM, built-in profiles, and the prover’s boundary check (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.)
Guest’s own credentials Forwarded, unless a header_allowlist drops them Removed on every inspected host (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 injection Replaces a token wherever it is told to look, or sets a header or query parameter Sets the binding’s header. A placeholder anywhere else is refused (S07-09-placeholder-bindingS07-09-placeholder-binding: Placeholder BindingWhere a credential placeholder may go in a request, how wb-proxyd scans for it, and what it refuses.)
Secret sources Environment, file, AWS, Vault, 1Password The platform’s secret store (S09-05-credentialsS09-05-credentials: CredentialsHow credentials are stored and bound to requests, and how the model credential reaches the model API without entering the guest.)
CA key A file A Secure Enclave key per CA (S09-06-ca-keysS09-06-ca-keys: CA KeysHow the key of each TLS inspection certificate authority is made, stored and restored, and when a CA is valid.)
Content checks An LLM judge, MCP tool rules, external gRPC transforms The dependency gate, through OpenShell’s middleware API (S07-12-dependency-gateS07-12-dependency-gate: Dependency GateHow wb-proxyd keeps young and vulnerable package versions from the guest on the gated registries.)
Audit JSON and OTLP, request bodies when asked OCSF 1.8.0 JSONL, never bodies or credential values (S09-11-auditS09-11-audit: AuditWhat the audit log records, the budgets that bound it, and what happens when the log can't be written.)
Users Operators of CI and container fleets One developer on their own machine

Overlap. iron-proxy does the job of wb-proxyd, and the DNS half of wb-netd. Since it has nothing for the VM, the git round trip, approvals or the dependency gate, it doesn’t compete with wb claude. A user who puts it in front of a container that runs Claude Code gets egress control and credential replacement, but shares a kernel with the agent and relies on the container’s firewall to keep traffic on the proxy. iron-proxy is a component. It competes with wb-proxyd as a choice between building and reusing. That choice is open now, because wb-proxyd is still a stub that V1-M3-network-floorV1-M3-network-floor: The network floorwb-netd and wb-proxyd in inspect mode with a static policy, the audit log, and the conformance cases for egress. builds.

Could wb-proxyd be iron-proxy? Not without rewriting most of it.

Besides a few packages and tests that could be copied, what is left to reuse is the parts that Go’s standard library already gives wb-proxyd: TLS termination, the leaf cache and the upstream transport.

Shared ideas. iron-proxy’s TransformService and OpenShell’s supervisor middleware, which the dependency gate implements in process (S07-12-dependency-gateS07-12-dependency-gate: Dependency GateHow wb-proxyd keeps young and vulnerable package versions from the guest on the gated registries.), both let outside code allow, refuse or rewrite a request. Each project speaks only its own proto.

Where the two meet today. Nowhere at run time. No spec gives wb-proxyd an upstream proxy, so it can’t send its traffic through an iron-proxy. That is just as well: a second inspecting proxy would be a second holder of credentials. Wraith Box’s own CI could run behind ironsh/iron-proxy-action, as iron-proxy’s CI does. That is a question about this repository’s supply chain, not the product, and the action would need an allowlist entry (docs/github-settings.md).

The difference that matters most is how each one puts a credential into a request.

iron-proxy’s secrets transform works in one of these modes:

  • inject sets one header or query parameter to the secret on requests that match the entry’s rules.
  • replace looks for the proxy token in the headers it names (all headers when the list is empty), and optionally in the query, the path and the body. It swaps every occurrence for the secret with a substring replace (internal/transform/secrets/secrets.go).

With replace, the workload decides where in the request the secret goes. On a bound host that echoes or stores what it receives, the workload can read the secret back. iron-proxy’s own demo does that on purpose: it sends the token to httpbin.org/headers, which echoes the request’s headers, and tells the reader to “look for the real key in the response” (examples/docker-compose/client.sh). A token placed in an issue body with match_body on a code host, or in a conversation with match_body on a model API, would do the same. The README’s claim that “a compromised workload can exfiltrate a token that’s worthless outside the proxy” holds for inject, not for replace.

Wraith Box closes this by design. The real credential goes only in the header its binding injects, and a placeholder anywhere else gets a 403 with placeholder-outside-binding, or model-placeholder-in-body in a conversation (S07-09-placeholder-bindingS07-09-placeholder-binding: Placeholder BindingWhere a credential placeholder may go in a request, how wb-proxyd scans for it, and what it refuses.). It also removes the guest’s own Authorization, Proxy-Authorization and Cookie on every inspected host, and Set-Cookie from the responses of a bound host (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.). iron-proxy forwards the workload’s own credentials. Its require flag only refuses a request that lacks the proxy token, and a header_allowlist drops only the headers it doesn’t name. It doesn’t touch response cookies.

iron-proxy goes further than Wraith Box’s specs on credential kinds.

  • aws_auth takes a request the workload signed with placeholder AWS keys, removes that signature, and signs again with the real keys. allowed_regions and allowed_services limit what it signs.
  • gcp_auth and oauth_token answer the token endpoint, and for Google the metadata server, themselves. So an SDK in the workload completes its usual token exchange with a placeholder, and the proxy injects the real token on the API requests.

S09-05-credentialsS09-05-credentials: CredentialsHow credentials are stored and bound to requests, and how the model credential reaches the model API without entering the guest. plans SigV4 signing and OAuth 2 bindings, but says neither how a guest SDK gets through its token exchange nor how a SigV4 binding is scoped.

Threats iron-proxy covers that Wraith Box doesn’t

Section titled “Threats iron-proxy covers that Wraith Box doesn’t”

iron-proxy’s other defenses are already in Wraith Box, in a stricter form:

The PostgreSQL proxy has no counterpart. A database the guest reaches by a raw TCP entry (S07-15-non-http-streamsS07-15-non-http-streams: Non-HTTP StreamsHow wb-proxyd checks the protocol of each stream, and what it does with SSH, other protocols and raw TCP.) needs a password in the guest, against SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential.. Wraith Box lacks that feature, and it isn’t on any version’s list.

R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. placed a detection layer in wb-proxyd, where the guest can’t turn it off. iron-proxy shows what such a layer looks like in a shipping proxy:

  • the judge transform, which only refuses, fails closed by default, and, when placed before secrets as its README recommends, sends the model provider placeholders rather than credentials;
  • MCP decisions, with the tool and the reason, in each audit record;
  • body_capture, which writes request bodies, such as prompts, to the audit log;
  • OTLP export to a log store.

Its Respond is a config reload. It has no way to stop one workload or revoke one grant.

A judge in wb-proxyd would send request content from the host to a model provider. That is new egress from the host, it costs money per request, and it sends data that S09-11-auditS09-11-audit: AuditWhat the audit log records, the budgets that bound it, and what happens when the log can't be written. never records. Bodies in the audit log would break that rule too. The open question of R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. stands: which layer detects what, and what a finding makes Wraith Box or the user do.

Candidates for that re-review, roughly in order of value:

Not to adopt: replace substitution in place, passthrough names that skip the proxy, a global SNI relay, warn mode across the whole allowlist, OAuth requests forwarded without a token when the token request fails (iron-proxy’s default), request bodies in the audit log, a CA key in a file, and an LLM judge as a control.

Status: Read 2026-10-23, re-review after V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there. (no issue yet)