You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Done in #427 (encrypted export and restore, ADR 0026) and #428 (S3 destination).
Acceptance: a fresh control plane restored from backup re-adopts the existing agents. Met on the lab, which has a control plane and a real server whose agent runs hello through its Caddy:
A secret GREETING is set, and hello uses it. Then ./backup.sh keygen and ./backup.sh create (local), and create --s3.
docker compose down -v removes every volume (database, key, Caddy, metrics), and up -d gives a fresh installation: a new key, an empty database, sign-in refused.
./backup.sh restore … --replace-this-installation, in 11 s:
the key-encryption key is the one from before (same SHA-256);
the agent reconnected on its own, with the identity it already had;
sign-in, the 4 applications and GREETING are back;
a new deployment of hello succeeded, its container holds GREETING=restored-from-backup, and it answers 200 over HTTPS.
The same restore from S3 (restore s3:NAME) succeeded.
The procedure is documented in INSTALL.md ("Back up and restore") and ADR 0026: what a failure at each step leaves, what a restore brings back to the backup's time, and what to do after a compromise.
Also checked during the reviews:
An archive forged with only the public key is refused before pg_restore gets a byte.
A restore ends every session.
An interrupted keygen leaves no identity behind.
An S3 upload never replaces or deletes another run's archive.
Follow-ups:#429 (half-open PostgreSQL sessions after up -d) and #439 (refuse an archive restored under another name). The disaster recovery run on a real server is part of the VM acceptance (#200).
Activity
docs(plan): #231 before #240, and step 6 before the v0.1.0 tag
docs(plan): scope and order of the first stable version (v0.1.0) (#414)
feat: encrypted instance backup and restore of the control plane (par…
samuelmbabhazi commentedon Nov 23, 2026
Done in #427 (encrypted export and restore, ADR 0026) and #428 (S3 destination).
Acceptance: a fresh control plane restored from backup re-adopts the existing agents. Met on the lab, which has a control plane and a real server whose agent runs
hellothrough its Caddy:GREETINGis set, andhellouses it. Then./backup.sh keygenand./backup.sh create(local), andcreate --s3.docker compose down -vremoves every volume (database, key, Caddy, metrics), andup -dgives a fresh installation: a new key, an empty database, sign-in refused../backup.sh restore … --replace-this-installation, in 11 s:GREETINGare back;hellosucceeded, its container holdsGREETING=restored-from-backup, and it answers 200 over HTTPS.restore s3:NAME) succeeded.The procedure is documented in INSTALL.md ("Back up and restore") and ADR 0026: what a failure at each step leaves, what a restore brings back to the backup's time, and what to do after a compromise.
Also checked during the reviews:
pg_restoregets a byte.keygenleaves no identity behind.Follow-ups: #429 (half-open PostgreSQL sessions after
up -d) and #439 (refuse an archive restored under another name). The disaster recovery run on a real server is part of the VM acceptance (#200).