Repository navigation
v0.3.0
Upgrade in any order: v0.2 CLIs, central servers and hosts work with v0.3 ones. Run results (exit codes and connection counts) appear for a host's runs once that host is on v0.3.0; api.ephemera.run already runs this release's server. Upgrading a host rebuilds its guest image.
Added
GET /v1/runsgives each finished runexit_code, the last command's exit code, andconnections_allowedandconnections_blocked, how many connections its egress proxy let through and refused. Hosts send these three numbers when a sandbox ends, and nothing more: no commands, host names or output. Each is missing when unknown: while a sandbox runs, when no command ran (exit_codeonly), and for hosts older than this release. An older server ignores them, so hosts and servers can be upgraded in any order. Postgres keeps them in three new nullable columns; a server on files has no run history, as before.GET /v1/tokensgives each tokenlast_used, when it last made a request. The server writes it at most once a minute per token, so it can be up to a minute behind, and leaves it out for a token never used. The token file and Postgres both keep it.- The dashboard shows each ended run's exit code ("Ended · exit 0", in red when it isn't 0) on the Sandboxes page and the overview, the connection counts in a run's details, and a "Last used" column on the Tokens page.
ephemera hostshas a LAST SEEN column:nowfor an online host, and for an offline one when it last checked in, such as4 days ago.- When every host in the account is offline,
ephemera runandephemera devsay which and since when, instead of the central server's generic error: "no host can take a sandbox: your only host, lab-1, is offline: it was last seen 4 days ago; on that machine: systemctl status ephemera-host".ephemera loginprints the same note after signing in, so a dead host shows up before the first run, not at it. - Docs: an Inside the sandbox page: root with no
sudo, no systemd or Docker, a writable/etc/hosts, no DNS server, and exactly what the default image holds. - Docs: the self-hosting guide gives the tailnet access rule a laptop needs to reach a host on tcp:7701, and the MTU fix for WSL2.
Changed
ephemera doctortries each host in three steps, a TCP connection, a small TLS request and an 8 KB one, and says which failed. A dropped connection points at firewalls and tailnet access rules (allow tcp:7701 to the host); a stalled handshake or large request points at the MTU (sudo ip link set tailscale0 mtu 1200). Both used to readno answer from <address> within 5s.
Fixed
- The guest image's
/etc/hostsnames the sandbox's hostname,ephemera, and no longer carries a line for the container the Ubuntu base was built in. Upgrade a host to pick it up.