The backup coordinator: bootstrap backup, backup drill (0.9.0) #3

Merged
oliver.maklott merged 2 commits from backup into main 2026-11-29 22:04:42 +01:00

Milestone 7: the backup coordinator (site ADR 0008) - infractl 0.9.0.

  • bootstrap backup: the guided first run of the coordinator - the backup network next to the monitoring network, backup.yml, a check that secrets/backup/wasabi is complete, the server, the sources (anchor, the IdP when self-hosted) joining, the hub again so it peers and pulls, a first backup per source, a drill, and escrow for a repository password generated on the way.
  • backup drill [SOURCE...] [--read 5%]: restic check on a sample, then the newest snapshot read back and inspected - the IdP's database dump (format), secret key and media; the anchor's age-encrypted OpenBao snapshots and the newest one's age.
  • backup.yml in the intent: the coordinator must be the hub of the backup network; the sources it names must exist; only the hub has an ssh_public_key.
  • wg-peer update --ssh-public-key; play backup (local, cloud part, --bootstrap); ssh reaches the coordinator at its public address through the anchor.

Needs the site's backup schema (merged in infrastructure#8). The playbook follows in the site's part B, pinned to v0.9.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG

Milestone 7: the backup coordinator (site ADR 0008) - infractl 0.9.0. * `bootstrap backup`: the guided first run of the coordinator - the backup network next to the monitoring network, `backup.yml`, a check that `secrets/backup/wasabi` is complete, the server, the sources (anchor, the IdP when self-hosted) joining, the hub again so it peers and pulls, a first backup per source, a drill, and escrow for a repository password generated on the way. * `backup drill [SOURCE...] [--read 5%]`: `restic check` on a sample, then the newest snapshot read back and inspected - the IdP's database dump (format), secret key and media; the anchor's age-encrypted OpenBao snapshots and the newest one's age. * `backup.yml` in the intent: the coordinator must be the hub of the backup network; the sources it names must exist; only the hub has an `ssh_public_key`. * `wg-peer update --ssh-public-key`; `play backup` (local, cloud part, `--bootstrap`); `ssh` reaches the coordinator at its public address through the anchor. Needs the site's backup schema (merged in infrastructure#8). The playbook follows in the site's part B, pinned to v0.9.0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
Milestone 7 (site ADR 0008).

* backup.yml is a document of the intent; the coordinator must be the hub
  of the backup network. ssh_public_key (the coordinator's key for
  pulling) only on that hub; sources named in backup.yml must exist.
* wg update --ssh-public-key records it (playbooks/backup.yml calls it).
* play backup (local, backup_cloud, --bootstrap).
* infractl ssh knows the coordinator: its public address, through the
  anchor (it is in no admin network).
* backup drill [SOURCE...] [--read N%]: restic check of a sample, then
  the newest snapshot streamed out and inspected - the IdP's dump
  (PostgreSQL custom format), secrets and media; the anchor's snapshots
  (age-encrypted, the newest one's time).
* bootstrap backup: the backup network, the bucket's key checked, the
  intent, the server, the anchor and the IdP as sources, the hub again,
  each job once, the drill, escrow of passwords that have no copy yet
  (part 2's escrow directory and recipients as defaults).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
infractl 0.9.0
All checks were successful
ci / test (pull_request) Successful in 1m39s
ci / test (push) Successful in 1m37s
release / release (push) Successful in 1m42s
01b76ad7b6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
belowtoxic-ansible/infractl!3
No description provided.