The backup coordinator: playbooks/backup.yml, anchor and IdP as sources #9

Merged
oliver.maklott merged 1 commit from backup-host into main 2026-11-29 22:41:34 +01:00

Part B of milestone 7 (ADR 0008): the backup coordinator itself.

  • playbooks/backup.yml - the coordinator on Hetzner Cloud Flatcar:
    • the data partition; nftables: publicly only the backup network's port, SSH from the anchor and the bootstrap networks, nothing in over wg3;
    • the hub of the backup network; belowtoxic.base.restic with one job per source that is already a member (repository <repository>/<source>, password generated once into secrets/backup/restic/<source>);
    • its pulling key recorded in the registry (wg-peer update --ssh-public-key);
    • a member of the monitoring network, Alloy reading the jobs' last-success metrics; backup_now starts every job once.
  • Anchor and IdP become sources when a coordinator is registered: they join the backup network; the backup user accepts only the coordinator's key, only from its tunnel address, and runs only the stream; on wg3 their firewalls accept only that SSH.
  • monitoring.yml: BackupFailed, BackupStale (stale_after_hours), BackupCheckStale, BackupMissing - when backup.yml exists.
  • Scenario backup: coordinator and a source on Flatcar, OpenBao and versitygw as stand-ins; the first-run order, a snapshot pulled and read back, the forced command, no change on a re-run. The anchor, identity and monitoring scenarios check their part.
  • Runbook first-run-backup.md (part 4).
  • Pins: belowtoxic.base v0.3.0, belowtoxic.monitoring v0.2.0, infractl v0.9.0.

All four affected scenarios (backup, anchor, identity, monitoring) passed in the local lab before this push.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG

Part B of milestone 7 ([ADR 0008](docs/adr/0008-backup-coordinator-host.md)): the backup coordinator itself. * **`playbooks/backup.yml`** - the coordinator on Hetzner Cloud Flatcar: * the data partition; nftables: publicly only the backup network's port, SSH from the anchor and the bootstrap networks, nothing in over `wg3`; * the hub of the backup network; `belowtoxic.base.restic` with one job per source that is already a member (repository `<repository>/<source>`, password generated once into `secrets/backup/restic/<source>`); * its pulling key recorded in the registry (`wg-peer update --ssh-public-key`); * a member of the monitoring network, Alloy reading the jobs' last-success metrics; `backup_now` starts every job once. * **Anchor and IdP become sources** when a coordinator is registered: they join the backup network; the backup user accepts only the coordinator's key, only from its tunnel address, and runs only the stream; on `wg3` their firewalls accept only that SSH. * **`monitoring.yml`**: `BackupFailed`, `BackupStale` (`stale_after_hours`), `BackupCheckStale`, `BackupMissing` - when `backup.yml` exists. * **Scenario `backup`**: coordinator and a source on Flatcar, OpenBao and versitygw as stand-ins; the first-run order, a snapshot pulled and read back, the forced command, no change on a re-run. The anchor, identity and monitoring scenarios check their part. * Runbook `first-run-backup.md` (part 4). * Pins: `belowtoxic.base` v0.3.0, `belowtoxic.monitoring` v0.2.0, infractl v0.9.0. All four affected scenarios (backup, anchor, identity, monitoring) passed in the local lab before this push. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
The backup coordinator: playbooks/backup.yml, anchor and IdP as sources
All checks were successful
ci / test (pull_request) Successful in 8s
ci / lint (pull_request) Successful in 27s
ci / molecule (pull_request) Successful in 31m34s
ci / test (push) Successful in 8s
ci / lint (push) Successful in 36s
ci / molecule (push) Successful in 32m17s
d732306451
Part B of milestone 7 (ADR 0008).

* playbooks/backup.yml: the coordinator on Hetzner Cloud Flatcar - the
  data partition, nftables (publicly the backup network's port; SSH from
  the anchor and bootstrap networks; nothing in over wg3), the hub of the
  backup network, belowtoxic.base.restic with a job per source that is a
  member (repository <repository>/<source>, password generated once into
  secrets/backup/restic/<source>), its pulling key recorded in the
  registry, a member of the monitoring network with Alloy reading the
  jobs' last-success metrics. backup_now starts every job once.
* Anchor and IdP become sources when a coordinator is registered: they
  join the backup network, the backup user accepts only the
  coordinator's key from its tunnel address and runs only the stream;
  their firewalls accept on wg3 only that SSH.
* monitoring.yml: BackupFailed, BackupStale (stale_after_hours),
  BackupCheckStale, BackupMissing - when backup.yml exists.
* Scenario backup: coordinator and a source on Flatcar, OpenBao and
  versitygw as stand-ins; the first-run order, a snapshot pulled and read
  back, the forced command, no change on a re-run. The anchor, identity
  and monitoring scenarios check their part.
* Runbook first-run-backup.md (part 4).
* Pins: belowtoxic.base v0.3.0, belowtoxic.monitoring v0.2.0, infractl
  v0.9.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
oliver.maklott deleted branch backup-host 2026-11-29 22:41:34 +01:00
Sign in to join this conversation.
No reviewers
No labels
test:kvm
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/infrastructure!9
No description provided.