api.ephemera.run or run by you, places sandboxes and keeps lists: ids, names, times and keys. When a sandbox ends, its host also tells it the last command’s exit code and how many connections were allowed and blocked. It never receives a file, a command’s output or an environment value, and it can’t open a sandbox.
Every hop
The host connection
The CLI connects to a host over TLS 1.3. The host’s certificate is made from the Ed25519 key it joined with, and the CLI checks two things before sending anything:- The key in the certificate is the key the central server has on record for that host.
- It matches the key the CLI pinned the first time it used that host, in
known_hosts.jsonnext to your login, like ssh’s known_hosts.
ephemera trust <host> accepts the new key on purpose, for a host you rebuilt. EPHEMERA_STRICT_HOSTS=1 refuses hosts that aren’t pinned yet, for machines that should only ever use hosts you’ve already checked.
Who can open a sandbox
Each sandbox has its own access token. The CLI makes it, keeps it, and sends the central server only its SHA-256, which the central server passes to the host. The host accepts requests for that sandbox only with the matching token. So the central server can place and destroy sandboxes, but it can’t send files to one, run a command in one, or read its output.What the central server stores
Never: files, command lines, output, environment values, the hosts a sandbox connected to, sandbox tokens, setup snapshots, records, or your GitHub token.
On the host
A host is a machine you own, so it sees what runs on it: your files, commands and output, inside the microVM. What it keeps:- Nothing of a sandbox after it’s destroyed. Its disk is deleted with it.
- Setup snapshots, encrypted with AES-256-GCM. The key is made on your laptop, stays in your config folder, and goes to the host only while it saves or restores one. The host decrypts a snapshot only into the folder of the sandbox using it. See Setup snapshots.
- Its own key,
/var/lib/ephemera/host.key. It signs the host in and signs its records. Keep it root-only.
Records
When a sandbox is destroyed, its host signs a record: every command line with its exit code and duration, every file sync’s count and size, every network connection allowed or blocked, and that the disk was deleted. It holds no output, file contents or environment values. The record goes to your laptop only.ephemera verify checks the signature and that the key is the one the central server has for that host. See Signed records.