Spawnbox
Prepare the API URL, API key, and template that let Sandcovery run sandboxes on your own Spawnbox server.
Sandcovery runs sandboxes on a Spawnbox server you install on your own Linux host. Spawnbox is free, open-source software with no hosted service, and your own server's provider bills its compute. Spawnbox is in early development, so check its release notes before you upgrade the server.
- API URL: the https address of your Spawnbox API, such as
https://spawnbox.example.com. The API listens only on127.0.0.1:8080by default, so serve it over TLS with the server's--tls-certand--tls-keyflags or behind a TLS proxy that Sandcovery can reach. - API key: a key that Spawnbox shows once when you create it with
POST /v1/keys, with thesandboxes:readandsandboxes:writescopes. Create a tenant key for a tenant that holds only Sandcovery's sandboxes, so you can revoke it without touching your other keys. - Template: the name of the template each sandbox starts from, such as
sandcovery. Create it withPOST /v1/templatesand wait for its build to beready. Sandcovery lists the templates that have a build once you enter the key.
The template's resources set each sandbox's size, so Spawnbox runs only the size that matches the template's vcpus and memory_mib, such as 2x4 for 2 vCPUs and 4096 MiB, and Sandcovery routes a create of any other size to your next provider. The template also sets each sandbox's image and disk, so Sandcovery sends only creates that ask for none of those. Sandcovery deletes a sandbox at its TTL, at most 86,400 seconds, which is the default of the server's --max-timeout-s flag, and files at relative paths land under /workspace.
A port preview needs the server's --preview-url flag set to an https address with a wildcard certificate, since Sandcovery refuses a link that would send its token over plain http. Spawnbox replaces a port's token each time the port is published, so a new preview of the same port ends the earlier link, and it protects a port your template published as public or private with that token. An allowlist matches host names on ports 80 and 443, holds at most 256 host names or *. patterns, and never holds an IP address, a CIDR block, or a name whose last label is a number, and the server's own egress policy and your tenant's apply on top of it. Sandcovery routes a create with any other allowlist to your next provider.