Proxy, network, and limits
Configure credential isolation, egress rules, security presets, and session budgets.
proxy section
Credential-proxy mode requires macOS 27+ and the iso-proxy companion.
proxy.anthropic and proxy.openai declare host-side
credential-injecting upstreams for Claude Code and Codex. When an upstream is
configured, isolate runs a iso-proxy process on the host for the lifetime of
each remote-mode VM: the guest is pointed at the proxy (a base-URL override) and
holds only a per-instance capability token, while the real credential stays on
the host and is injected onto outbound requests the guest never sees. Absent
config means no proxy — credentials are forwarded into the guest exactly as
before, unless proxy.mode is "required" (below).
Every golden image installs the Secret Service packages this mode needs
(dbus-user-session, gnome-keyring, libsecret-tools) regardless of the
auth setting, because the image is built once and reused across configs —
gating them would let a later "auth": "chatgpt" edit meet an image that cannot
serve it.
proxy.openai is API-key based and cannot be combined with
codex.auth "chatgpt". Use one Codex remote auth path per VM: the proxy
for an OpenAI API key, or ChatGPT auth for account/workspace access.
Proxy mode applies only in remote model mode
(iso model set remote <vm>); local mode takes precedence.
Each provider is an optional default, and a VM can override its own credential
per provider with iso proxy setup --vm <name> (stored in
the instance’s proxy.json, not in the config file).
proxy.mode
| Value | Behavior |
|---|---|
"auto" |
A provider with an upstream (config default or per-VM override) runs through its proxy, and none of its credential variables reaches the guest. A provider without one uses direct credential forwarding, with a warning at up/start. |
"required" (default) |
No provider credential variable (ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN, OPENAI_API_KEY) reaches the guest by any path. Values isolate would forward automatically (host environment, api_key) are withheld; declaring one in env_forward, guest_env or --env is an error. The host ~/.codex/auth.json is not staged into the guest either. A remote-mode VM with agents must have at least one provider proxy, or up/start fails. |
"off" |
No proxy starts; configured upstreams and per-VM overrides are ignored, and credentials are forwarded as without a proxy. A {vault:} provider secret from --env/--env-file is an error rather than being forwarded. |
proxy.<provider>.credential and github.pat tokens also accept
vault:<name>, read from iso secrets when the value
is needed. Fields whose value is placed in the guest (claude.api_key,
codex.api_key, MCP headers) refuse vault:, so a stored provider credential
never lands in the guest.
Both objects take the same fields:
| Field | Type | Default | Description |
|---|---|---|---|
credential |
string | required | A cmd: reference that prints the real credential (an API key or a Claude setup-token), resolved at proxy start. Literal values are rejected; the error names the field without printing it. The resolved value is never written to disk and never forwarded into the guest. |
auth |
api_key | bearer |
api_key (anthropic), bearer (openai) |
How the proxy injects the credential upstream. api_key sends x-api-key: <credential> (the Anthropic API-key form); bearer sends Authorization: Bearer <credential>, used for a Claude setup-token. OpenAI keys are always Bearer: proxy.openai accepts only bearer. |
{
"proxy": {
"anthropic": {
"credential": "cmd:security find-generic-password -s iso-anthropic -a anthropic -w",
"auth": "api_key"
},
"openai": {
"credential": "cmd:op read op://Private/OpenAI/credential",
"auth": "bearer"
}
}
}
iso proxy setup writes these entries for you: it takes a pasted credential,
stores it in the macOS Keychain and fills in the cmd: reference. There is no
other built-in store and no fallback; if the Keychain is unavailable, setup
fails. Any other cmd: reference (1Password, Vault, a file you manage) is
yours to write; isolate runs it but never creates or deletes what it points at. See the
credential proxy guide and
iso proxy for the workflow.
egress
With network.transport: "brokered" there is no vmnet network at
all and only "none" and "filtered" are valid; the paragraphs below describe
the vmnet transport.
"none" creates each new instance’s sandbox in vmnet host mode with NAT
(IPv4 and IPv6), the vmnet DNS proxy, router advertisements and DHCP all
disabled, so the guest has no route beyond the Mac and no resolver. Host→guest
SSH still works, and so does everything isolate tunnels over it: the credential
proxy, local-model tunnels and --forward-port. It does not isolate the
guest from services on the Mac itself: like "open", a guest can connect to
anything listening on the host’s addresses (see the
trust model).
"filtered" uses the same host-only network as "none" and starts
iso-egress beside the iso binary. It requires iso-sandbox protocol 5.
A host lease renews the companion once a second only while the runtime’s
live bootId still matches the boot that started it, the owner lock is
held, and the session deadline has not passed. A leftover live.json does
not keep the grant. Lease records are bounded regular files, read without
following symlinks. Owner PIDs must be positive signed 32-bit integers;
malformed identities, deadlines, and lock-probe errors stop renewal. Only an
absent or null deadline means unlimited TTL. The companion exits if that
renewal stops. A missing companion or boot id fails the boot; there is no NAT fallback. An unapproved
CONNECT is denied before a target is chosen. An approved name is relayed byte for byte, without the proxy header, in a
socket fixture. A slow request head is abandoned after five seconds, DNS after five,
a connect after ten, and an idle tunnel after 300, all on a monotonic
clock. A mixed or host-local answer is not dialed; a fully public answer’s
addresses are dialed in answer order until one connects, so an IPv6 answer on
a Mac without an IPv6 route falls through to the IPv4 one. Each boot also points
the guest’s Docker daemon at the companion (a systemd drop-in) and gives
containers and builds on Docker’s default bridge a guest-internal bridge to it
on 172.17.0.1 (in the guest user’s ~/.docker/config.json); these carry the
same per-boot capability as session proxy variables and change nothing about
what is approved. A CONNECT without the capability, or with a different one,
gets a 407 Basic challenge, so clients that send proxy credentials only
when challenged (.NET, including the GitHub Actions runner) retry with them;
every other refusal is a 403. git is also set (/etc/gitconfig) to send
its proxy credentials up front.
Accepted sockets stop at
128 and tunnels at 64. The 16 DNS slots belong to resolver work, not waiting
clients: a timed-out libc lookup keeps its slot until it returns. New lookups
are refused while all slots remain occupied. A relay direction stops
reading at 256 KiB, and all tunnels share a 32 MiB queue. EOF drains queued
bytes before forwarding a half-close; the opposite direction remains usable.
Hard I/O errors terminate the relay, while interrupted operations are retried.
Idle time measures read or write progress. These behaviors have local socket
fixture coverage, not full filtered-VM qualification. The production
Seatbelt profile (seatbelt-egress.sb) denies file writes and child
execution, limits reads to system paths and the companion binary (home
directories and iso state are unreadable), allows outbound connections only to
non-loopback ports 443 and 53, denies every loopback IP destination on any
port, and allows only the /private/var/run/mDNSResponder UNIX socket. Before
it reads stdin, the companion probes that writes, exec, a random port, loopback
ports 443 and 53 and a read of the user’s home are denied and that port 443 to
a TEST-NET address is not; it refuses to start otherwise. Existing session
handoff checks require protocol 5, compare the runtime’s boot identity and
owner PID with bounded live state, and compare the frozen policy hash with the atomic host record
egress-boot-policy.json. Network policy records must have canonical hosts
and a matching computed hash. Older filtered sessions with only
egress-boot-id must be stopped and restarted; that file is not adopted as a
policy binding. Running-instance resolution additionally requires fresh signed
responses from the companion directly and through guest loopback at the recorded
port. The companion signs its boot ID and independently computed allowlist hash;
no upstream connection is made. The per-boot Ed25519 private key exists only in
process memory and goes to companion startup on stdin. Only the public key is
persisted in egress-readiness-public-key, owner-private and removed on stop;
copying that file into a workspace cannot authorize a forged reply. Existing
sessions without a public key must stop/restart with matching host and companion
binaries. Process-name checks
remain prerequisites, not substitutes for live proof. Startup verifies this proof
before agent preparation and again after preparation before a post-start hook.
After preparation, running-instance resolution and post-start hooks also require
signed direct and guest-loopback responses from every effective remote provider
broker. Local-model mode and proxy.mode: "off" require no broker. Skipping agent
bootstrap does not waive configured broker requirements. Broker private keys are
transient startup input; only proxy-<provider>-readiness-public-key persists,
owner-private and removed on stop. Filtered boots require matching version-2
iso-proxy startup support; nonfiltered boots keep version 1. Older filtered
sessions must stop/restart to establish these identities. Filtered shell, exec,
Claude, Codex and iso run workload sessions retain the verified boot, policy,
owner/target and public signing identities in memory. They recheck the composite
proof after environment preparation and immediately before spawning workload SSH;
a healthy replacement boot or broker is not silently adopted by a prepared
session. Reopen the session after an identity change. Bootstrap preparation stays
transport-only so brokers can start before they are required, while retaining
its original egress/boot/policy/owner identity. Live administrative SSH and
workspace-transfer targets carry process-local checks of the original composite
identity; SSH/SCP, tar/rsync, hooks, editor launch and managed alias publication
check before using those targets. Readiness refusals abort hooks and agent
updates instead of becoming ordinary guest-command warnings or unknown versions.
Each local-model reverse tunnel started during the current boot joins the
composite proof. The managed alias and port forwards are set up only after the
composite proof, and iso up proves a running instance before reusing it.
Workloads launched by iso are re-proved while they run and end when the proof
fails; sessions opened outside iso (the managed alias, editor Remote-SSH)
are not supervised. A failed proof makes iso status and iso list report the
instance unhealthy. See trust model for the exact checks.
A local real-VM check passed approved public HTTPS, unapproved CONNECT denial,
and direct Internet TCP denial (evidence).
This does not qualify lifecycle revocation or the full filtered boundary.
Network forwarding remains blind CONNECT for the recorded allowlist on port
443 only. The existing listener also accepts the fixed local readiness challenge,
which cannot select an upstream destination. It is not credential protection:
proxy.mode still decides whether raw provider keys are forwarded.
egress_filter.allowed_hosts is valid only with "filtered"; an empty list
approves nothing. Entries are exact hostnames, or *.<suffix> for names one
or more whole labels below a suffix of at least three labels (never the
suffix itself): *.actions.githubusercontent.com admits
run-actions-1-azure-eastus.actions.githubusercontent.com but not
actions.githubusercontent.com or evilactions.githubusercontent.com, and
*.com, *.github.io or *.githubusercontent.com are refused. Use a
wildcard only for a service that assigns hosts under a domain it alone
operates, such as GitHub Actions’ per-job shards (trust
model). Agent definition hints are not added to that list.
An existing instance cannot change its creation-time mode through
--egress.
The allowlist is frozen for each running boot. After iso stop, iso start
may use a new validated allowlist without recreating the VM. The new policy
is recorded only after boot isolation and pinned-host-key checks succeed;
running guest handoffs reject a different configured allowlist. Stop a crashed
instance explicitly before changing its allowlist, since its owner may still
be scheduled to respawn.
The mode is fixed when an instance is created; up/start of an instance
created under another mode is refused rather than silently widened or
narrowed. Recreate the instance (iso destroy, then iso up) to change it.
No raw provider credential enters a "none" guest, whatever proxy.mode
says: provider variables are withheld (declaring one is an error) and the host
~/.codex/auth.json is not staged; a remote-model VM therefore needs a
provider proxy, or up/start fails. Package installs and other downloads
inside a "none" guest fail; bake them
into the image (iso setup --profile …) instead. Combine with
"proxy": {"mode": "required"} for a guest whose only way out is the
credential proxy.
network
{ "network": { "transport": "brokered" }, "egress": "filtered" }
transport is "brokered" (the default) or "vmnet" (one dedicated vmnet
network device, shared or host-only by egress, exactly as described above).
vmnet is an explicit compatibility choice: macOS guests and open egress need
it, and a brokered setting never falls back to it. On vmnet, "none" and
"filtered" do not isolate the guest from host or LAN services the way
brokered does. Unknown network members are rejected.
A brokered instance’s VM is created with no network device. The
runtime reads the live VZVirtualMachine after creating it and before the
guest’s own init runs, and refuses to boot one with any network device; iso’s
isolation gate requires the same reading (0 network devices, one Virtio
socket device, no interface or address) before handing the guest out. iso’s
SSH — shell, exec, workspace transfer, staged pulls, agents, port forwards,
editor tunnels, the credential proxy’s and filtered egress’s reverse tunnels
and local-model tunnels — runs unchanged over a pinned-host-key SSH
connection whose ProxyCommand is the runtime’s fixed stream connector
(iso-sandbox connect). The connector carries one byte stream to the
guest’s SSH adapter on vsock port 2222 (iso-ssh-vsock.socket, installed by
iso setup), never to a caller-chosen host, port, file or socket.
egressmust be"none"or"filtered";"open"(configured or from--egress) is refused, because a brokered VM has no route that could mean unrestricted networking."none"gives the guest no general egress;"filtered"keeps the approved-host CONNECT companion, reached only through its reverse tunnel. Provider brokers (proxy) and loopback local models remain separately configured and are listed in the boot’s policy.- Each boot is started with the digest of its resolved network policy:
transport, the egress profile and allowlist, the providers with an
effective credential broker, the local-model services iso tunnels in, the
runtime’s channel policy, and
fallback: forbidden. The runtime refuses a stream that does not present that digest and the current boot id, so an SSH alias or descriptor from an earlier boot or policy reaches nothing. A configuration that now resolves to a different policy — a new allowlist host, provider override or local model — is refused at the next handoff withPOLICY_CHANGE_REQUIRES_RESTART; stop and start the instance to apply it. - A local model must be served on the host’s loopback (
127.0.0.1orlocalhost), which iso tunnels in; any other endpoint is refused withBROKERED_UNSUPPORTED, since the guest cannot reach it directly. - Linux guests only. The image must carry the guest adapter: images built by
this version of
iso setupdo (guest_adapters: ["vsock-ssh-v1"]in the image manifest); older images are refused before any VM is created — rebuild withiso setup --rebuild. The runtime must advertise thebrokered-transportfeature. - The transport is fixed when an instance is created. An existing instance is
never converted, and a configuration naming the other transport refuses it
(
POLICY_CHANGE_REQUIRES_RESTART) rather than starting it differently. To move a project to the brokered transport, create a new instance and transfer its workspace withiso push/iso pull. A downgradedisothat predates the transport refuses a brokered instance’s records instead of reading them as vmnet. - Inside the guest, loopback services and containers from images already in
the guest can run, but nothing leaves the VM except through iso’s tunnels:
package installs, image pulls and Git over SSH fail unless they go through
an approved filtered-egress path the tool is configured to use. Bake what the
workload needs into the image (
iso setup --profile …). iso status NAMEnames the transport, the boot’s policy digest, its egress profile, provider brokers and local services;iso status --output jsonadds anetworkobject for brokered instances (machine interface).
The vmnet transport keeps its documented behavior, including guest reach to services on the Mac (see the trust model for what the brokered transport does and does not promise).
Security presets
{ "security": { "preset": "provider-only" } }
| Preset | egress |
proxy.mode |
workspace.pull.mode |
|---|---|---|---|
provider-only (same as no preset) |
none |
required |
stage |
networked (needs network.transport "vmnet") |
open |
auto |
direct |
offline |
none |
off |
stage |
A preset only supplies defaults: any of those fields written explicitly wins.
iso up --dry-run --json (and start) prints the result under security.
offline is meant for local models or fully pre-provisioned images; leave
github unset (off) with it.
limits
{ "limits": { "session_ttl": "8h" } }
session_ttl (seconds, or a number with an s/m/h suffix, from 1 minute
to 720 hours; 8h when omitted) ends each boot of an instance that long
after up/start began it. "unlimited" turns the limit off for an ordinary
local instance only (enrolled hosts and iso-ci stay finite); null is
rejected. The sandbox’s owner process halts the VM at the deadline using the
host’s clock (the guest clock plays no part, and host sleep counts), a
relaunch after a crash refuses to boot past it, and isolate refuses to hand out
an instance whose deadline has passed (APPLE_SESSION_EXPIRED). iso start
begins a new session. Unknown limits members are rejected.
Host-side logs are already bounded without a setting: the guest console log restarts after 8 MiB, and the owner log holds only the runtime’s own lines.