Hybrid: self-hosted runners
Run onshore.sh miniVMs on your own Linux machines while we run the control plane. This page is
for the administrator who sets up a Hybrid pool and for the developers who use it. <domain>
stands for your deployment’s domain (for example the value of E2B_DOMAIN without hybrid.).
onshore.sh is operated and sold by Minitap, Inc.
What Hybrid is
Section titled “What Hybrid is”- Your hosts. A Hybrid pool is a group of runners on your own x86_64 Linux machines with KVM. The runner starts and stops Firecracker miniVMs there. Your miniVMs’ memory, disks and files stay on your hosts.
- Our control plane. It places miniVMs, tracks their state and keeps the API you already use
with the E2B SDK or
ons. - Outbound only. A runner dials out on TCP 443 to the control plane and to our EU relay. Nothing listens on your network: no inbound port to open.
- The order gateway. Hybrid API calls go to a separate service, the order gateway. It holds the
API keys of your organization (
msbh_…) and signs each order a runner executes, after checking that the order matches a request your organization made, except kills, local pauses and prepares, which it signs from its own records without a request: a compromised control plane can still kill or pause your miniVMs. The control plane never sees those keys and cannot sign an order.
What goes through the EU relay, and what we can see
Section titled “What goes through the EU relay, and what we can see”When your code talks to a miniVM (commands, files, ports through ons forward), the connection is
TLS from your client to the runner, end to end:
- Your client opens TLS to the miniVM’s name under
hybrid.<domain>. - The relay reads only the TLS ClientHello, takes the server name (SNI), and forwards the still-encrypted bytes into the tunnel of the runner that owns that name. That tunnel is mutual TLS, authenticated as that runner.
- The runner terminates the TLS with a short-lived certificate (24 h) chained to your pool’s root CA. Its private key never leaves your host, and the pool root key stays on your administrator’s machine.
| We can see | We cannot see |
|---|---|
| Which runner and pool a connection goes to, byte counts, duration | The content of any connection (the relay never terminates TLS) |
| Your client’s address truncated to a /24 (IPv6 /48) in relay logs | The full miniVM name in relay logs, or any payload byte |
| miniVM metadata the control plane needs: id, template, size, state, timeout | Your runner’s private keys, your pool root key, your msbh_ keys |
Your clients trust your pool root through the trust bundle (below); a relay or another runner cannot present a certificate your clients accept for your miniVMs.
Requirements
Section titled “Requirements”Host
- x86_64 Linux (Intel or AMD) with systemd and
/dev/kvm. Bare metal is recommended. A virtual machine with nested virtualization works but is slower, and its isolation also rests on that hypervisor: the runner warns, and refuses it withstrict = true. - systemd 254 or later (the unit uses
DelegateSubgroup=), and cgroup v2. nft,ip,tc,sysctlandconntrackinstalled (conntrackis its own package on Debian and Ubuntu:apt install conntrack)./var/lib/minisandboxon XFS with reflink, on a disk of its own:mkfs.xfs -m reflink=1 /dev/<disk>. A loop file needslosetup --direct-io=on. The runner clones every miniVM’s disk from its template by reflink;doctor’sdata-dirline fails on ext4, or on XFS made without it. At least the larger of 10 % and 20 GiB of it must stay free.- No swap and KSM off.
- No container or VM networking on the host (
docker*,br-*,cni*,virbr*,podman*, …) and IPv4/IPv6 forwarding off. The host is meant for miniVMs only: the installer drops every other forwarded packet. Pass--forward-dropto install anyway and accept that. - The miniVM network (
minivm_networkin runner.toml,10.200.0.0/16by default) must not overlap any network the host routes to: its LAN, a VPN, a cloud VPC’s subnets, a container bridge.doctor’sminivm-networkline fails on an overlap; setminivm_networkto another private /16 before the first start.
Memory sizing. The runner keeps a quarter of the host’s RAM for the host by default, at least
10 708 MiB (10.25 GiB plus the egress replay floor of 199 slots, more with a larger
egress_replay_budget_mib) and at most 12 GiB, and gives miniVMs the rest. It admits a new miniVM
while, of the rest, at least the new miniVM’s memory plus [admission] memory_floor_mib (4 GiB)
are free, the total memory of its miniVMs stays within 1.5 × the host RAM, and at least 15 % of RAM
is available. A cold prepare (the first use of a template version on this runner) boots a snapshot
miniVM of the template’s memory, which needs the same: the template’s memory plus the floor.
So a template of M GiB needs a host of at least about 10.5 GiB + 4 GiB + M GiB, and each further
live miniVM adds its memory. A host under about 42 GiB of MemTotal runs at the minimum reserve,
which leaves the host’s own services and the kernel about 2.8 GiB once the runner, its proxy and
its helpers have theirs: if the host runs anything else, set [admission] host_reserve_mib in
runner.toml to the minimum plus what those services need.
| Host RAM | Left to miniVMs | Largest single miniVM | dev-base (2 GiB) |
dev-agents (4 GiB) |
|---|---|---|---|---|
| 16 GB | ≈ 5.1 GiB | ≈ 1.1 GiB | no | no |
| 32 GB | ≈ 20.9 GiB | ≈ 16.9 GiB | yes | yes |
| 64 GB | ≈ 50.8 GiB | ≈ 46.8 GiB | yes | yes |
On a 16 GB host no public template fits: doctor’s admission line fails and names what each
needs, and it warns when the smaller fits but not the larger. It only warns, instead of failing,
in two cases: when no pattern of the policy’s templates matches every id ("*"), since such a
host may run only templates you chose; and when the memory available now leaves no room for the
smallest public template that fits (other processes on the host use it). Whatever the policy,
it fails when the memory left to miniVMs is at or below the floor: no miniVM, yours included, can start. That
line shows the capacity the runner uses (MemTotal minus the reserve) and the floor. Use 32 GB or more. Lowering
memory_floor_mib lets a larger miniVM in, at the cost of the host’s margin under memory pressure.
host_reserve_mib set in runner.toml is kept as written.
Network. Outbound TCP 443 only:
api.<domain>(enrolment, identity, certificate renewal),connect.hybrid.<domain>(the control session and the relay tunnels),- the public templates storage host your runner is given at enrolment,
- once Minitap, Inc. publishes a production release index, its host (the
--index-urland[update] sourcebelow), which the hourly update timer reads; there is none yet, - at install time:
tuf-repo-cdn.sigstore.dev(signature checks; the release files themselves come from the directory you are given, below).
These names are placeholders: the production Hybrid infrastructure (relay, order gateway, Hybrid DNS names) is set up when your organization is enabled, and you then get the actual hosts.
HTTPS_PROXY and NO_PROXY are used for the runner’s HTTP requests: enrolment, updates, the
doctor checks and public template downloads. The control session and the relay tunnel do not use
them and dial out directly: they need direct outbound TCP 443 to connect.hybrid.<domain>. A TLS-inspecting proxy in front of the API is refused.
Clock. Signed orders expire within 60 s, so keep the host’s clock synchronised. With systemd-timesyncd the installer makes the runner wait for a sync at boot.
Administrator machine. ons, logged in to your deployment, on macOS or Linux. The pool root
key goes to the system keychain (macOS Keychain or Linux Secret Service), or to a file you choose.
Getting access
Section titled “Getting access”Hybrid is available on request: write to support@onshore.sh. Once your organization is enabled,
Minitap, Inc. sets up its Hybrid infrastructure and gives you the order gateway URL, the runner
installer (install-runner.sh) with its SHA-256, a directory of the runner release files, and
the SHA-256 fingerprints of the order keys the order gateway publishes.
Self-update in production is off until a production release index is published. Until then, a runner updates only when you run the installer again with the newer release directory Minitap, Inc. hands over (Updates).
Set up a pool
Section titled “Set up a pool”ons login # to your deploymentexport ONS_GATEWAY_URL=https://<gateway> # the order gateway URL you were givenons pool init lab # creates pool "lab" and its root CAons pool init:
- creates the pool and its root CA. The root key stays on this machine (keychain, or
--key-store file:<path>on storage your secret store controls). - the first time, registers your organization’s first gateway key and saves it in
~/.config/onshore/gateway.toml(mode 0600). It asks first;--yesskips the question. From then on your organization is Hybrid: its own template builds are refused and its miniVMs start from public templates. Only support can undo it, and only while you have no Hybrid pool. - through the order gateway, records the order keys it publishes for the pool and prints their
fingerprints:
order keys sha256 <fingerprint> (trusted on first use: compare them with the ones onshore.sh publishes). Compare them with the fingerprints Minitap, Inc. gave you before you make a token: ons trusts the keys it sees the first time, and from then onons pool tokenrefuses keys that differ from the recorded ones. - writes the trust bundle (
ca-bundle.pem) and the pool roots alone (pool-roots.pem) in~/.config/onshore/. - mints an API key for the pool’s clients and prints the lines to set. The key is shown once
and is not saved anywhere by
ons: store it in your secret manager.
export E2B_API_URL=https://<gateway> # printed only when the gateway has its own hostexport E2B_DOMAIN=hybrid.<domain>export E2B_API_KEY=msbh_… # shown onceexport NODE_EXTRA_CA_CERTS=/home/<you>/.config/onshore/pool-roots.pem# Python: these two REPLACE the system store, so they point at the system CAs plus the pool roots; run ons trust export --out again after OS updatesexport SSL_CERT_FILE=/home/<you>/.config/onshore/ca-bundle.pemexport REQUESTS_CA_BUNDLE=/home/<you>/.config/onshore/ca-bundle.pemmsbh_ keys have no scopes: any key of your organization can create keys, revoke any key but
the last active one, and erase your organization’s records at the order gateway (its order log
and gateway keys, on a request naming your organization id: {"confirm": "<organization id>"}).
Hand one out as you would the organization itself.
Install a runner
Section titled “Install a runner”-
On the administrator machine, make a one-time enrolment token:
Terminal window ons pool token lab > token # valid one hour, single use, one per runnerThrough the order gateway, this is a version 3 token: it carries the pool’s order keys, and ons says so with their fingerprints. The host needs runner 0.1.0-beta.4 or later to read it (the installer takes the newest release by default, and stops when an older
--versioncannot read the token).The token is a secret. Copy it to the host as a file owned by root (or by the
sudocaller) with mode0600or0400, never through a chat, a ticket or a command line. -
Copy
install-runner.shand the release files directory Minitap, Inc. gave you to the host. Check the script’s SHA-256 against the value Minitap, Inc. gave you (sha256sum install-runner.sh), then, as root:Terminal window sudo sh ./install-runner.sh --mirror /var/lib/minisandbox-mirror --token-file ./tokenWithout
--token-filethe installer asks for the token on the terminal, without echo.--tokenon the command line is refused: it would end up in shell history andps.The
--mirrordirectory holds the runner archive (minisandbox-runner-<version>-x86_64-unknown-linux-musl.tar.gz), its.sigstore.jsonbundle,cosign-linux-amd64and a copy of the runner index (index.json). Without--index-url, the installer makes that directory the runner’s update source: it must lie outside temporary directories (/tmp,/var/tmp,/dev/shm,/run/user), and it and every directory up to/must be root-owned and not group- or other-writable. The runner then sees only that static copy, so it does not update itself until you put a newer release there or run the installer again. Once a production release index is published, add--index-url <index URL>: the installer then only copies the release files from--mirror DIR(anywhere on the host, readable by root) and the runner updates itself from that index. The installer has no production release index of its own: without--index-urlor--mirrorthe runner does not update itself, and the installer says so.The installer writes
/etc/minisandbox/policy.toml(below) with[update] sourcefrom--index-urlor--mirror; at enrolment the runner adds[orders]with the token’s order keys,allow_unsigned = ["list"]and your organization id. Nothing else to write by hand.
A token without order keys
Section titled “A token without order keys”The installer refuses a token that carries no order keys (made by msb 0.1.0-alpha.16 or older, or not through the order gateway), because the runner would then take unsigned commands from the control plane. Make a new token with a current ons, or:
-
--order-keys FILE, with--token-file: a file of the order gateway’s public keys (PEM, 1 to 8 of them). The installer adds[orders]of those keys for the token’s pool, withallow_unsigned = ["list"]. Check each key’s fingerprint against the one Minitap, Inc. gives you. -
--accept-unsigned-orders: writesunsigned_orders = "accept", and the runner takes unsigned commands from the control plane;doctorwarns at every start. The two flags exclude each other, and a token that carries order keys refuses both. -
or write the policy yourself before installing; the installer keeps a policy that exists. This is the installer’s default policy plus
[orders]and[update]:strict = falseaccept_cpu_risk = []templates = ["*"]max_minivms = 50max_vcpus_per_minivm = 8max_memory_mib_per_minivm = 16384max_vcpus = 64max_memory_mib = 131072allow_internal_cidrs = [][orders]pool = "pool-…" # this runner's pool id (ons pool ls)public_keys = ["""-----BEGIN PUBLIC KEY-----…-----END PUBLIC KEY-----"""] # the order key(s) Minitap, Inc. gives youallow_unsigned = ["list"] # every command signed but the read-only list (default)[update]source = "<index URL>" # once a production release index is published; until then leave [update] outTerminal window sudo install -d -m 0755 /etc/minisandboxsudo install -m 0644 policy.toml /etc/minisandbox/policy.tomlallow_unsigned = ["list"]is the default: the control plane’s periodic reconcile sends an unsigned list (so it works while the order gateway is down), and a list only reports the miniVMs this runner already hosts to the control plane that placed them: their ids, states, template versions, sizes, created and timeout times, the metadata map given at create, egress credentials state, egress list generation and module routes, all of which that control plane already holds. Without"list"the runner refuses every reconcile (unsigned order: this runner's local policy requires signed ordersin its journal every 5 minutes) and the control plane never adopts nor fixes up its miniVMs. A runner enrolled by 0.1.0-beta.6 or older may haveallow_unsigned = []: change it toallow_unsigned = ["list"]in/etc/minisandbox/policy.toml, thensudo systemctl restart minisandbox-runner.allow_unsigned = ["list", "kill"]is an opt-in that also lets the control plane kill this runner’s miniVMs without a signed order. Keep[orders]on a line of its own: at enrolment the runner addsorganization = "<your organization id>"under it, which pins it to your organization (enrolment is refused if[orders] organizationalready names another one, or ifpublic_keysholds none of a token’s order keys). The installer adds no[update] sourceto a policy it did not write (it only prints a note), so write it yourself.--strictand--accept-cpu-riskdo not change this file either: setstrictandaccept_cpu_riskin it (doctornames the CPU risks a host reports).
Useful options: --strict (refuse any CPU risk and nested virtualization), --accept-cpu-risk
(see CPU side channels), --version X,
--mirror DIR (install from a local copy of the release files), --index-url URL (where the
runner looks for updates), --order-keys FILE and --accept-unsigned-orders (above),
--forward-drop. --strict and --accept-cpu-risk take effect only when the installer writes
policy.toml (new, or not edited since it wrote it), not with a policy you wrote.
What the installer verifies
Section titled “What the installer verifies”- It downloads the runner release and its Sigstore bundle and verifies them with a pinned cosign:
the release must be signed by the onshore.sh release workflow
(
https://github.com/minitap-ai/minisandbox/.github/workflows/release-runner.yml@refs/heads/main, issuerhttps://token.actions.githubusercontent.com), the attestation’s subject must be that archive with its SHA-256, and the binary must report that version. - It refuses a version older than the one installed.
- It runs
minisandbox-runner doctor, which checks the host and names each gap. - The script itself is not attested: only the runner archive is. Check its SHA-256 against the value Minitap, Inc. gives you before running it.
What the installer changes on the host
Section titled “What the installer changes on the host”| What | Where |
|---|---|
Binaries: runner, minisandbox-uffd, Firecracker, jailer |
/usr/local/bin |
| Runner configuration (0600) and local policy (0644), only if absent | /etc/minisandbox/runner.toml, /etc/minisandbox/policy.toml |
| Runner state, keys and the enrolment token until enrolment succeeds | /var/lib/minisandbox/ |
| Services | minisandbox-runner.service, minisandbox-runner-update.service and .timer |
| Firewall: drops every forwarded packet except to and from miniVMs | /etc/nftables.d/minisandbox-host.nft (table inet msb_host), included from /etc/nftables.conf; a drop-in keeps nftables.service from flushing it on stop |
| Only root may reboot the host or manage systemd units over D-Bus (whole host) | /etc/polkit-1/rules.d/10-minisandbox.rules |
Kernel modules vhost_vsock and nf_conntrack loaded at boot (kvm is loaded at install only) |
/etc/modules-load.d/minisandbox.conf |
| IPv4 forwarding on (the runner sets it at start; the previous value is recorded) | net.ipv4.ip_forward |
A customised /etc/nftables.conf is kept: the installer prints the include line to add. No user
account is created.
The installer then enrols the runner (the token is deleted once enrolment succeeds; a failed enrolment keeps it for the next run) and starts it. Check it with:
sudo minisandbox-runner status # on the hostons pool runners lab # on the administrator machineOrder signing
Section titled “Order signing”With [orders] in its policy, the runner runs only orders the order gateway signed for it, and
refuses the rest, including any order for another organization than the one it enrolled in. From
runner 0.1.0-beta.4, a runner without [orders] does not start (doctor fails orders) unless
its policy says unsigned_orders = "accept", with which it also accepts unsigned commands from
the control plane and checks no organization.
sudo minisandbox-runner doctor shows it on its orders line:
ok orders signed orders only (list unsigned), order keys sha256 <fingerprint>warn orders /etc/minisandbox/policy.toml says unsigned_orders = "accept": this runner runs unsigned commands from the control plane · …warn orders signed orders only, order keys sha256 <fingerprint> · the control plane's reconcile sends an unsigned list, so this runner refuses it … · add "list" to [orders] allow_unsigned in /etc/minisandbox/policy.toml, then restart the runnerCompare the fingerprints with the ones ons pool init printed. fail on an enrolled runner means
its policy has no [orders]: it does not start. sudo minisandbox-runner orders checks the
signature of every order the runner ran (its log is in /var/lib/minisandbox/orders/, kept 90
days).
A runner installed before 0.1.0-beta.4 without [orders]. It accepts unsigned commands. When
it updates itself, the new runner is refused at ExecStartPre (doctor fails orders), the update
rolls back to the previous runner and refuses that version, and the runner keeps taking unsigned
commands with no further update until [orders] (or unsigned_orders = "accept") is added to
policy.toml. To fix it, add the [orders] table of A token without order keys
to /etc/minisandbox/policy.toml (pool = the runner’s pool, public_keys = the order keys
Minitap, Inc. gives you, allow_unsigned = ["list"]), then run the installer again (without a token),
or sudo minisandbox-runner upgrade --version X for the refused release X. Until then, the
installer run on that host without a token refuses before it installs anything and says the same.
Order key rotation. Minitap, Inc. announces it, and the order gateway publishes the new key next
to the current one before it signs with it. ons pool token <pool> then refuses the keys it no
longer recognises; run ons pool token <pool> --accept-new-order-keys and re-enrol each runner
with its new token, or add the new PEM to [orders] public_keys in each runner’s policy and
restart it (sudo systemctl restart minisandbox-runner). Without an announced rotation, do not
pass --accept-new-order-keys: contact support.
Use the pool
Section titled “Use the pool”With the variables printed by ons pool init, the unmodified E2B SDK creates miniVMs on your
runners. ons routes miniVM, template and pool calls to the gateway by itself once a gateway key
is saved; ons forward 3000 --sandbox <id> reaches a port of a miniVM through the relay. It proxies
HTTP and WebSocket, and adds the miniVM’s traffic token, as on the managed pool. --allow-origin <origin> lets browser pages
of that web origin call the forward, on Hybrid too.
Where the SDK connects. For a miniVM of a Hybrid pool, the domain of every API answer that
carries one (create, batch create, get, connect, resume) is its runner’s host:
r-<runner-id>.pool-<pool-id>.hybrid.<domain>, the name the runner’s certificate covers. The
unmodified E2B SDK reads it and connects there through the relay. When the control plane does not
know the miniVM’s runner, the call answers 503 with reason hybrid_runner_unknown and a
Retry-After: 5 header: retry after that delay.
E2B_API_URL is needed only when the gateway has its own host. The E2B SDK still reads it but
marks it deprecated: a later SDK may drop it and send API calls to api.<E2B_DOMAIN>, which is not
the gateway. Pin your SDK version, and check this variable is still honoured before upgrading.
Trust bundle
Section titled “Trust bundle”Your clients must trust your pool root to reach miniVMs on Hybrid runners.
ons trust export --out ~/.minisandbox-ca.pemexport NODE_EXTRA_CA_CERTS=~/.minisandbox-ca.pem # Node: ADDS to its roots (preferred)export SSL_CERT_FILE=~/.minisandbox-ca.pem # OpenSSL, Python ssl, curl, Go: REPLACES the storeexport REQUESTS_CA_BUNDLE=~/.minisandbox-ca.pem # Python requests: REPLACES certifi- The file holds the system CAs, then each pool root this machine knows, with its id, name and
SHA-256 fingerprint. Pool roots come only from your machine (
ons pool init) or fromons trust add <root.pem>, never from the control plane. SSL_CERT_FILEandREQUESTS_CA_BUNDLEreplace the whole trust store, which is why the system CAs are in the file. They are a copy taken at export time: runons trust exportagain after OS updates (so a CA your OS has since distrusted is not still trusted) and after a root rotation. PreferNODE_EXTRA_CA_CERTSwhere it applies.- On a developer machine without the root key,
ons trust add <root.pem>takes the root your administrator hands over. Check its fingerprint against the administrator’sons pool ls. - Name constraints on the pool root are checked with rustls, Python
ssl(OpenSSL 3.0) and Node (OpenSSL 3.5). Other clients are untested.
Python SDK on macOS
Section titled “Python SDK on macOS”The E2B Python SDK (e2b 2.6 and later) on macOS ignores SSL_CERT_FILE and REQUESTS_CA_BUNDLE
for its calls to a miniVM and trusts only the system keychain, so with the trust bundle a miniVM
call fails with invalid peer certificate: UnknownIssuer. On Linux it honours SSL_CERT_FILE;
the JS SDK honours NODE_EXTRA_CA_CERTS on both. Either:
-
run the Python SDK on Linux (a container, your CI), or
-
add the pool root to your login keychain as a root trusted for SSL only (one root per file, the one your administrator handed over or
ons pool initwrote):Terminal window security add-trusted-cert -r trustRoot -p ssl -k ~/Library/Keychains/login.keychain-db <pool-root.pem>This trusts the pool root for every SSL client of your macOS user, not only the SDK. Its name constraints limit it to your pool’s names only on clients that enforce them; macOS may not. Remove it with
security remove-trusted-cert <pool-root.pem>when you leave the pool.
Manage the pool
Section titled “Manage the pool”| Command | What it does |
|---|---|
ons pool init <pool> |
Create a pool and its root CA |
ons pool token <pool> [--accept-new-order-keys] |
Print a one-time enrolment token, valid one hour, with the pool’s order keys (--accept-new-order-keys after an announced order key rotation only) |
ons pool ls |
List your pools, with warnings for runners that need attention |
ons pool runners <pool> |
Runners with state, version, update channel, last update, host kernel (KERNEL), KVM ABI (KVM ABI, a hash of what /dev/kvm exposes), last seen and when their intermediate certificate expires. --json names the two hostKernel and kvmAbi; they need ons 0.1.0-alpha.20 or later |
ons pool renew [<pool>] [--all] |
Sign the runners’ pending certificate renewals (also run by pool init --rotate, pool token and pool ls) |
ons pool rm-runner <pool> <runner id> |
Forget a runner: within 30 s it can no longer connect, and this machine never renews it again |
ons pool drop-old-root <pool> [--force] |
After a rotation, retire the old root (refused while runners still chain to it; --force drops it anyway, and those runners stop working) |
A new runner’s intermediate certificate is valid 30 days; right after enrolment the runner asks
for a renewal, which gives it one valid a year. Run ons pool renew from the administrator machine
after installing runners and regularly afterwards: a runner whose intermediate expires needs a new
token. A deleted runner’s intermediate cannot be revoked on its own; it stays valid until it
expires or the pool rotates, while the relay already refuses that runner.
Rotation is re-enrolment. If the root key is lost or compromised:
ons pool init --rotate <pool>,ons pool token <pool>and reinstall each runner with its new token,ons pool rm-runner <pool> <old runner id>for each old runner,ons pool drop-old-root <pool>,- developers run
ons trust exportagain.
The old root key stays in the key store until you delete it.
Local policy
Section titled “Local policy”/etc/minisandbox/policy.toml, owned by root, is yours: the control plane cannot change it, and an
order beyond it is refused on the runner (refused by the local policy: …). Every key below is
required, and an unknown key stops the runner; minisandbox-runner doctor names the key to fix.
| Key | Installer default | Meaning |
|---|---|---|
strict |
false |
true refuses every CPU risk and nested virtualization |
accept_cpu_risk |
[] |
CPU vulnerabilities you accept, by name (e.g. "tsa"), written by --accept-cpu-risk |
templates |
["*"] |
Template version ids allowed (globs with *). A filter against mistakes, not a guard: pin content with template_digests |
max_minivms |
50 |
Live miniVMs on this runner |
max_vcpus_per_minivm, max_memory_mib_per_minivm |
8, 16384 |
Size of one miniVM |
max_vcpus, max_memory_mib |
64, 131072 |
Sum over live miniVMs |
allow_internal_cidrs |
[] |
Must stay empty: miniVMs never reach an internal network in this version |
Optional:
template_digests = ["sha256:…"](before the first table): the template manifests the runner may download.[orders]: order signing, above:pool,public_keys,allow_unsigned(["list"]by default;["list", "kill"]is an opt-in) andorganization, which pins the runner to your organization. Enrolment writes it from the token.unsigned_orders = "accept"(before the first table, instead of[orders]): the runner takes unsigned commands from the control plane, anddoctorwarns.[update]:mode(autodefault,notify,off),channel(stabledefault, oredge),pin(a version requirement, e.g."0.4"),window(UTC, e.g."sat,sun 02:00-05:00"),source(where updates come from: written by the installer into a policy it wrote, by you otherwise).
Updates
Section titled “Updates”A timer runs minisandbox-runner upgrade --auto every hour, as root, outside the runner. The
control plane cannot trigger an update.
-
Production: off for now. No production release index is published yet, so a production runner does not update itself. To update, run the installer again with the release directory Minitap, Inc. hands over:
sudo sh ./install-runner.sh --mirror <dir>(no token needed on an enrolled host). Self-update starts once the index is published and you add its URL as--index-url(or[update] source). -
Source. The runner updates itself only from the
[update] sourcein your policy, written by the installer from--index-url URLor--mirror DIR(or by you in a policy you wrote). Without a source it does not update itself, anddoctorandstatussay so. -
Attested. Each release is verified like the installer does: the exact signer, the archive’s SHA-256, the version. Whoever serves the index can offer or withhold a release, never choose its bytes.
-
Never older. A release older than the installed one is refused.
-
Soak. On
stable, a release is installed only once its signature is at least 48 h old (by the host’s clock);edgeand--versiondo not wait. -
Rollback. The new runner is kept once it has stayed up 120 s without a restart. Otherwise the previous binaries are put back, the runner restarted, and that version is never retried by the timer. Running miniVMs are kept across an update.
-
By hand.
sudo minisandbox-runner upgrade [--check] [--version X] [--mirror DIR](a--mirrorhere is a copy of the runner index, read for this run only), or run the installer again with--mirror DIR [--index-url URL] [--version X].minisandbox-runner statusshows the last upgrade and how it ended;ons pool runnersshows it too. -
Start gate. Before an update stops the running runner, the new binary must pass the unit’s start gate: each
ExecStartPreofminisandbox-runner.servicethat runs the installed runner. A failure refuses the update withstart-gate-refusedand the linesdoctorprinted, before anything is stopped. The version is not refused: it is tried again once the host is fixed. This applies to updates made by runner 0.1.0-beta.7 or later. -
Pending reboot. The unit the installer writes runs
doctorwithout--strict, so a pending kernel reboot only warns and holds no update. If you changed the unit to rundoctor --strict, root can let a pending reboot through for at most 24 hours:Terminal window sudo minisandbox-runner break-glass set --check reboot --reason "<why>" --for <duration>sudo minisandbox-runner break-glass lssudo minisandbox-runner break-glass clear --check reboot<why>is a short reason, at most 200 characters, for examplerebooting in Thursday's window.<duration>is how long it lasts, at most24h, for example8h. While it is active, every start logs it to the journal, and the runner reports it, reason included, to the control plane.
A runner below the control plane’s supported version keeps its miniVMs but gets no new one until it
is upgraded; ons pool runners warns before that happens.
Host reboots
Section titled “Host reboots”With runner 0.1.0-beta.7 or later, paused miniVMs are kept paused across a reboot of their host in the usual case, and their network is rebuilt when they resume. A paused miniVM whose local copy cannot be kept resumes from its stored pause instead, when it has one. A few are still killed, for example one whose Firecracker release was revoked. Running miniVMs do not survive a reboot: pause or kill them first.
Uninstall
Section titled “Uninstall”sudo sh ./install-runner.sh --uninstall # on the hostons pool rm-runner <pool> <runner id> # then forget it on our sideThe uninstaller stops the runner, kills every miniVM, erases the runner’s keys, state and
configuration (/var/lib/minisandbox content, /etc/minisandbox), removes the services, binaries,
firewall table, drop-in and polkit rule, puts ip_forward and /etc/nftables.conf back as it
found them (if you did not edit them), and disables nftables.service if it enabled it. It keeps
the XFS mount, /etc/modules-load.d/minisandbox.conf, and an nftables.conf you edited.
Export the order log first (/var/lib/minisandbox/orders/): uninstalling erases it.
Current limits
Section titled “Current limits”- Public templates only. A Hybrid organization has no templates of its own: its template builds are refused, and miniVMs start from the public templates.
- One Hybrid pool for placement. You may create several pools, but a create is placed only when your organization has one Hybrid pool.
- Timeout. A miniVM created without a timeout gets 300 s.
- No AI account binding. Hybrid miniVMs get no default AI account, and
ons.*metadata is refused. - No egress changes after create. A Hybrid miniVM’s egress is its template’s. At create,
egress.allownaming a host outside the template is refused with403egress_exceeds_template, as on the managed pool. Widening it withegress.add(or E2BallowOutnames) is refused on Hybrid with400egress_exceeds_template. Egress changes on a running or paused miniVM and egress requests from inside it answer409egress_update_unsupported. Hybrid miniVMs start from public templates: pick one whose egress covers what your miniVMs need. - No cloud devices. Cloud devices are not offered on Hybrid miniVMs (
403devices_disabled, detailhybrid). - API, ons and SDK only. Manage Hybrid miniVMs through the gateway. The web dashboard shows
them read-only and refuses to pause, resume or kill them (403
use_order_gateway). Removing a member from your organization does not stop the Hybrid miniVMs: kill them through the gateway.
What we cannot protect you from (residual risks)
Section titled “What we cannot protect you from (residual risks)”- A compromised control plane can redirect the unmodified E2B SDK. The SDK takes the
hosts it connects to from the API’s answers and trusts the system CAs, so a control plane under
an attacker’s control could point it at a host the attacker controls. Restrict your clients’
egress to your deployment’s hosts.
ons forwardchecks your pool root; otheronscalls do not. - A compromised control plane can run commands in your running miniVMs. It still holds each miniVM’s access token, so it could run commands inside miniVMs your organization started, through the relay. Once order signing is on, it cannot start miniVMs or choose their template.
- Trust on first use of the first gateway key. An organization’s first gateway key
is registered through the control plane: a control plane compromised at that exact moment could
register its own instead.
ons pool initlists every gateway key of your organization: check the list. - The order gateway sees what you order. It holds your
msbh_keys and sees each request (template, size, env vars). It runs on Scaleway’s managed containers, whose front terminates its TLS: Scaleway, as the hosting operator, can see those keys and requests. The gateway’s internal service, which takes orders from the control plane, is reachable from the internet behind that front, guarded by a bearer token. - The order signing key is held by Scaleway Key Manager at the software protection level, not an HSM. Scaleway, as the operator, holds its key material.
- DNS. The Hybrid names are served from DNS zones we manage at our provider. Until
that DNS is hardened, any key in our organization with full DNS access could take a Hybrid
name and serve it with a certificate of their own, and
onsdoes not pin the gateway’s key, so it would talk to such a host. SetONS_GATEWAY_URLexplicitly rather than relying on a default name. - CPU side channels on shared hosts. On a CPU with a known vulnerability (for
example AMD TSA), miniVMs of the same host may read each other’s data through the CPU, and
clearing CPU buffers may not cover a sibling hyperthread. The installer refuses such a host
until you pass
--accept-cpu-risk, which records the risk in a policy the installer writes;strict = truerefuses it outright. Even without a known vulnerability, miniVMs on sibling hyperthreads (SMT) may leak data to each other: turn SMT off on hosts whose miniVMs must not see each other, or do not run such miniVMs on one host. - Root on your host can read the memory, disks and tokens of the miniVMs it runs, and edit the order log. Hybrid runners are as safe as the hosts you run them on.