Foundational Compute

Security and isolation

Each sandbox is a separate virtual machine. This page tells what it can reach and where to put secrets.

Isolation

FromHow the sandbox is kept apart
Other sandboxesOwn Linux kernel, memory, disk and network interface. The firewall drops traffic between sandboxes.
The computer that runs itThe firewall drops traffic to that computer. A sandbox has no access to a Host's files.
The local networkNo access to private, loopback, link-local or cloud metadata addresses. 169.254.169.254 answers only with the sandbox's own data.
Other customersYour API key works only for your workspace. Commands and files also need a per-sandbox token, which the SDK sends for you.

No isolation is perfect. For credentials and private data, use trusted placement.

Where sandboxes run

Sandboxes run on machines that we own and on Host computers. A Host is a person who lends an idle Mac and controls it (Become a Host). Do not put credentials or private data in a sandbox that can run on a Host computer.

Trusted placement

A trusted sandbox runs only on a machine that we own.

$ fdtn create base -d --trusted
  • SDK or API: send the metadata fdtn_own_fleet_only with the value "1" on create.
  • If no machine that we own has space, the create waits or fails. It never moves to a Host computer.
  • The claude template always uses trusted placement.
  • Our administrators can read the memory of any sandbox, trusted ones too.

Network rules

A sandbox has full outbound internet access, except:

RuleDetail
Blocked portsMail ports 25, 465, 587. Use an email API over HTTPS.
Blocked addresses10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 0.0.0.0/8, 224.0.0.0/4; IPv6 fc00::/7, fe80::/10, ff00::/8, ::1.
Other blocksMining pools and Tor exit nodes
Exit addressChanges with the machine that runs the sandbox. Do not allow-list one fixed address.
TrafficIncluded in the price, with fair-use limits
AbuseCrypto mining and port scans suspend the workspace.

Inbound: ports are private by default and need the sandbox's traffic token. You can make ports public only at create. See Ports and URLs.

Keys and secrets

  • Keep your API key in ~/.fdtn/key or FDTN_API_KEY. Copy it into a sandbox only if code there must start other sandboxes (API keys).
  • Any process in a sandbox can read every secret in it. Give a sandbox only the secrets its job needs, and only with trusted placement.
  • Use provider keys with a low limit and a short expiry. Revoke them after the job.
  • For an Anthropic key, save it as a secret: the sandbox gets a placeholder, and the real key stays sealed with AWS KMS on our gateway.

Webhook messages are signed with HMAC-SHA256 and go only to public HTTPS addresses (Webhooks).

Next