# goairix Sandbox

Point Sandcovery at your own goairix Sandbox server so it runs sandboxes on the Docker or Kubernetes host you already run.

goairix Sandbox is free software that you run yourself, so there is no goairix account. Start the [goairix Sandbox server](https://github.com/goairix/sandbox) on a Docker or Kubernetes host with `security.api_key` set to a strong key, and put a reverse proxy with TLS in front of port 8080, since the server speaks plain HTTP and Sandcovery sends your key only to an https URL. Then give Sandcovery that URL as the server URL and the key as the API key. The server refuses to start with no key.

Sandcovery creates each sandbox as a persistent sandbox with outbound traffic on and the CPU and memory of its size, 1 to 8 vCPUs and up to 16 GiB, which the server ends when its time to live ends. The server applies the CPU limit on the Kubernetes backend only, and the Docker backend limits memory but not CPU. A create that asks for deny_all or an allowlist, a GPU, an image, a disk size, an idle timeout, a region, a snapshot, a port, or an environment fails as `unsupported`, as do pause, resume, and snapshots. A command runs under the timeout Sandcovery asks for, and the server refuses a timeout over its `max_exec_timeout_seconds`, 600 by default. A file you write must live under `/workspace` or `/tmp`, the only paths the server's file calls take, and may hold at most 64 MiB less the request's own framing, the server's request limit. A sandbox gets the server's own `/tmp` quota, 50 MiB by default, and a limit of 100 processes, which Sandcovery does not change. Sandcovery wrote this adapter from goairix's public source and has not run it against a server.
