diff --git a/Makefile b/Makefile index 07a01b25..b13e0161 100644 --- a/Makefile +++ b/Makefile @@ -997,9 +997,8 @@ verify-backups: ## Re-verify every retained set of every kind: volume, NAS and w backup-offsite: ## Copy the newest set of each kind to the offline medium and prove it (DEST=/path/to/the/medium) @# The third human job with a deadline and no timer, after @# secrets-verify-backup and certs-verify-backup, and for the same reason: - @# the destination is the medium that holds the second age recipient - @# (ADR-0048), which is off-estate by construction and visits this host - @# every ninety days to prove that key. No timer can mount it. What a + @# the destination is the offsite drive (ADR-0048, ADR-0132), kept outside + @# the house and brought back every ninety days. No timer can mount it. What a @# timer CAN do is notice that nobody has: a successful run records @# offsite-copy, and OffsiteCopyStale fires when that passes ninety days. @# diff --git a/README.md b/README.md index 889cf441..38abecda 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ documents for different readers. at all. Every pinned digest is also scanned weekly for fixable HIGH and CRITICAL CVEs, and each image with findings has an open issue until a scan finds it clean. -- **Documented decisions and runbooks.** 131 ADRs covering what was chosen +- **Documented decisions and runbooks.** 132 ADRs covering what was chosen and what was rejected — including the costs accepted knowingly; 56 runbooks for the operations that are easy to get wrong at 1am, one of which is the handover page a successor reads first. Every critical alert links to @@ -236,7 +236,7 @@ inbound passes may still reach it. Data flow and the maintained Mermaid topology │ ├── architecture.md network.md hardware.md │ ├── observability.md security.md roadmap.md changelog.md │ ├── diagrams/ # the network diagram (SVG) and its predecessors -│ ├── adr/ # 131 ADRs — architecture decision records +│ ├── adr/ # 132 ADRs — architecture decision records │ ├── exercises/ # purple-team exercise records — see its README │ └── runbooks/ # 56 runbooks; successor-handover.md is the front door └── Makefile # make help diff --git a/docs/adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md b/docs/adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md index 93a0f8e6..fbcdb6ad 100644 --- a/docs/adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md +++ b/docs/adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md @@ -19,6 +19,11 @@ > that are provably not media; the last step is the operator's, and > [`copy-the-backups-offsite.md`](../runbooks/copy-the-backups-offsite.md) > says so where the reader is standing. +> +> [!NOTE] +> [ADR-0132](0132-carry-the-offsite-copy-on-the-spare-drive.md) superseded +> decision 1's medium on 2026-11-24: the copy of record is now the spare +> `HOUSEHOLD` drive, which holds no key. The rest of this ADR stands. ## Context diff --git a/docs/adr/0132-carry-the-offsite-copy-on-the-spare-drive.md b/docs/adr/0132-carry-the-offsite-copy-on-the-spare-drive.md new file mode 100644 index 00000000..a2e8d089 --- /dev/null +++ b/docs/adr/0132-carry-the-offsite-copy-on-the-spare-drive.md @@ -0,0 +1,74 @@ +# ADR-0132: Carry the offsite copy on the spare drive, apart from the second key + +**Status:** Accepted · 2026-11 · supersedes the choice of medium in +[ADR-0048](0048-carry-the-estates-backup-sets-with-the-second-recipient.md) +decision 1. The rest of ADR-0048 stands: one copy of record, the newest set of +each kind, `make backup-offsite`, and `OffsiteCopyStale` at ninety days. + +## Context + +ADR-0048 put the newest backup set of each kind on the medium that holds the +second age recipient. Two of its reasons were that the medium already visited +`prometheus` every ninety days to prove that key, and that a successor would +then hold the key and the sets in one hand. It accepted one cost: *"this +medium is now the one place where the estate's ciphertext sits beside a key +that opens it."* + +Both reasons have gone: + +- **The key medium no longer has a reason to visit.** + [ADR-0120](0120-drop-the-age-key-proof-deadline.md) dropped the age-key + proof deadline, so the offsite copy was the only remaining reason to bring + that medium here. A carrier that comes only for the copy is not riding an + existing visit. +- **A spare drive exists.** The 5 TB WD drive labelled `HOUSEHOLD` was bought + for the household copy, and has been spare since + [ADR-0122](0122-drop-the-household-copy.md) dropped that copy on + 2026-11-21 ([`hardware.md`](../hardware.md)). + +On 2026-11-24 the copy was 62 days old, against a ninety-day deadline. The +operator plugged the spare drive into `prometheus` and chose it to carry the +copy from now on. + +## Decision + +**The offsite copy of record is the spare `HOUSEHOLD` drive. It holds no key.** +`make backup-offsite DEST=` writes to it unchanged: the same +layout, the same proofs, the same `offsite-copy` record and ninety-day +`OffsiteCopyStale`. The operator keeps the drive outside the house between +visits. Its location is not written in this repository, for the reason the +key medium's location is not. + +The first copy to it was made on 2026-11-24. + +## Alternatives considered + +- **Keep the key medium as the carrier** (ADR-0048 as written). Declined by + the operator. It puts ciphertext beside the key, and it now makes the key + medium visit only for the copy. +- **Copy to both.** Declined, for ADR-0048's own reason: `run-scheduled.sh` + writes one timestamp per job, so two media would share one proof, and the + alert would vouch for whichever copy was not just made. + +## Consequences + +- **The sets and a key that opens them are now apart.** The drive alone opens + nothing. A restore after losing the house needs the drive and one of the two + age keys: the second recipient's medium, held off the estate, or the + operator's offline copy of the first key. Losing the drive loses only + ciphertext. That reverses the cost ADR-0048 accepted. The new cost: a + successor needs two things, not one, and + [`successor-handover.md`](../runbooks/successor-handover.md) says so. +- **The script cannot check that the drive leaves the house.** It reports as + fixed, not removable, so every run prints the warning + [`copy-the-backups-offsite.md`](../runbooks/copy-the-backups-offsite.md) + describes. That is expected for this drive. Carrying it out is the + operator's step, as ADR-0048's note already said. +- **The copy on the key medium is no longer of record.** Nothing reads it, and + it stops being refreshed. Its holder may delete its `backups/` directory, or + leave it as an older copy nothing vouches for. +- **The drive still carries the household rehearsal of 2026-10-01** + (`household/`, `tools/` and two text files). It is left as it was, beside + `backups/`, and is not part of the copy. +- **Reopen if** the drive is lost or fails its re-verify, or the key medium + starts visiting again for a reason of its own. diff --git a/docs/changelog.md b/docs/changelog.md index c5b4a79d..e590f5ac 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -529,6 +529,16 @@ docstring gives: it is a record, not a claim about now. closes the `mjolnir` audit: every finding is fixed and verified, decided, or tracked in #1731. +- **The offsite copy moved to the spare drive + ([ADR-0132](adr/0132-carry-the-offsite-copy-on-the-spare-drive.md)).** The + 5 TB WD drive labelled `HOUSEHOLD`, spare since ADR-0122, now carries the + newest backup set of each kind in place of the second age recipient's + medium. It holds no key, so the sets and a key that opens them are no + longer on one medium. The first copy to it ran on 2026-11-24 and proved + every set: observability `20261122T033021Z`, NAS `20261123T200914Z`, wiki + `20261124T044752Z` and firewall `config-20261124T044012Z`. That reset + `offsite-copy`, which was 62 days old. + ## 2026-11-23 - **NUT's driver on `morpheus` retries for 14 seconds, not 6.** The *data diff --git a/docs/hardware.md b/docs/hardware.md index 6f8abbfc..69c0d59f 100644 --- a/docs/hardware.md +++ b/docs/hardware.md @@ -1256,12 +1256,11 @@ the runbook rather than backed up. required and [ADR-0073](adr/0073-carry-the-household-copy-on-a-drive-the-holder-keeps.md) built. It reads as `WDC WD50NDZW-11BCSS0`, 4.5 TiB, one GPT partition, - exFAT, labelled `HOUSEHOLD`, and held only a rehearsal. **No longer used - for this, and spare.** + exFAT, labelled `HOUSEHOLD`, and held only a rehearsal. [ADR-0122](adr/0122-drop-the-household-copy.md) dropped the household copy - on 2026-11-21. It is not the estate's offsite medium either: that is the - second age recipient's - ([ADR-0048](adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md)). + on 2026-11-21. **Since 2026-11-24 it is the estate's offsite medium** + ([ADR-0132](adr/0132-carry-the-offsite-copy-on-the-spare-drive.md)): the newest backup set of each kind, and no key. It is kept + outside the house between visits, and still carries that rehearsal. Its cable is USB 3.0 Micro-B at the drive end, and stays with it. - ViewSonic N1700W LCD, used as a rack console via the KVM - RJ45 Cat6 in-line couplers[^Couplers] diff --git a/docs/observability.md b/docs/observability.md index 20977ad4..485378c6 100644 --- a/docs/observability.md +++ b/docs/observability.md @@ -563,7 +563,7 @@ argument and for what to do when it exits 1. | `watchdog.rules.yaml` | One rule that always fires, so that its absence is detectable | | `blackbox.rules.yaml` | Whether an endpoint can actually be reached, from outside the service, and how many days its certificate has left — the sensitive tier's seven-day ACME leaves excepted, which an hours pair watches for a stalled renewal instead — `TlsAcmeRenewalLate` at 48h, `TlsAcmeRenewalStalled` at 36h ([#426](https://github.com/Gerrrt/HomeLab/issues/426)) — Grafana and the wiki verified against the lab CA ([#847](https://github.com/Gerrrt/HomeLab/issues/847)), the APC card's verified against the same CA since 2026-11-24, Prometheus, Loki and Alertmanager over plain http (the switch UI's probes were removed on 2026-09-06, `targets/blackbox.yaml`), each of the household sites behind `trinity`'s Caddy, verified against the tier's root, paging as `SiteDown` after ten minutes so a `make up` restart does not ([#855](https://github.com/Gerrrt/HomeLab/issues/855)), and — the other way round — that the ingest proxy on `10.0.99.20:9090` and `:3100` still refuses a request with no token (`IngestAuthNotEnforced`, [#182](https://github.com/Gerrrt/HomeLab/issues/182)). `EeroUnreachable` is a warning for an eero unit that has not answered ping for five minutes, from the `blackbox-eero` job, through one Winterfell pass in force since 2026-11-11 ([#1228](https://github.com/Gerrrt/HomeLab/issues/1228), [ADR-0112](adr/0112-probe-the-eeros-by-icmp-from-prometheus.md)). The iLO and pfSense UIs are written into `targets/blackbox.yaml` and left disabled: each needs a firewall pass from `10.0.99.20` that is a segmentation decision, not a monitoring one ([#91](https://github.com/Gerrrt/HomeLab/issues/91)). Their certificates' expiry is watched without that pass, from `host.rules.yaml` ([#857](https://github.com/Gerrrt/HomeLab/issues/857)) | | `dns.rules.yaml` | Whether the house is still filtering DNS, asked directly at AdGuard Home on port 53 rather than through pfSense. Since [ADR-0055](adr/0055-forward-to-adguard-alone.md) AdGuard is the only forwarder, so `AdGuardNotAnswering` is **critical** at five minutes: the house cannot resolve outside names. `AdGuardNotFiltering` stays a warning, because a filter that fails open is a convenience lost, not an outage. The targets in `targets/blackbox-dns.yaml` are live since 2026-09-28, against AdGuard on `trinity` ([#126](https://github.com/Gerrrt/HomeLab/issues/126), [#404](https://github.com/Gerrrt/HomeLab/issues/404)) | -| `backup.rules.yaml` | Whether the scheduled maintenance jobs are still being run at all — staleness, failure, never-ran, and the page: `ScheduledJobStaleCritical` at three of a job's own periods and never under a day, because the warning reaches only the in-house channel and a backup that stopped in week one was otherwise a notification repeating on the same network for as long as nobody acted (2026-10-14) — whether the CA key's offline copy has been proved lately ([#496](https://github.com/Gerrrt/HomeLab/issues/496)), and whether the newest backup sets have been carried onto the second recipient's medium within ninety days ([ADR-0048](adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md)) | +| `backup.rules.yaml` | Whether the scheduled maintenance jobs are still being run at all — staleness, failure, never-ran, and the page: `ScheduledJobStaleCritical` at three of a job's own periods and never under a day, because the warning reaches only the in-house channel and a backup that stopped in week one was otherwise a notification repeating on the same network for as long as nobody acted (2026-10-14) — whether the CA key's offline copy has been proved lately ([#496](https://github.com/Gerrrt/HomeLab/issues/496)), and whether the newest backup sets have been carried onto the offsite drive within ninety days ([ADR-0048](adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md), [ADR-0132](adr/0132-carry-the-offsite-copy-on-the-spare-drive.md)) | | `deploy.rules.yaml` | Whether each host that pulls — `prometheus` and `trinity` ([#533](https://github.com/Gerrrt/HomeLab/issues/533)) — is running what the repository says: an uncommitted edit made on the host, a revision that did not verify, and how far behind `main` it is, and a host whose record stopped arriving. Reads the record `scripts/converge.sh` writes hourly ([#99](https://github.com/Gerrrt/HomeLab/issues/99), [ADR-0021](adr/0021-converge-on-a-timer-instead-of-deploying-over-ssh.md)). Also whether convergence had to start a stack service that something stopped — `DeployServiceRevived` — and whether one has been left stopped for two hours, held or under a backup — `DeployServicesStopped` ([ADR-0087](adr/0087-start-a-stopped-stack-service-from-the-converge-timer.md)) | | `internet.rules.yaml` | Why the internet is slow ([#914](https://github.com/Gerrrt/HomeLab/issues/914)): three scheduled speed tests in a row under 400 Mbit/s down or 100 up, the WAN held above 85% of what it can carry, frames arriving corrupted on the WAN port — `WanReceiveErrors`, the fault found the day these were written, when a cable between the XB7 and `morpheus` cut downloads to ~2 Mbit/s — and `speedtest-tracker` itself going quiet or unreachable. Also records `homelab_wan_bits_per_second` from pf's own em0 counters. Download thresholds are against the ~940 Mbit/s the 1000baseT WAN port can carry, not the plan's 2000. `speedtest-tracker` is left out of `InstanceDown`, so its outage is a warning and not a page | | `range.rules.yaml` | The range host `gandalf`'s own controls, now that it stays on ([ADR-0126](adr/0126-monitor-gandalf-now-that-it-stays-on.md), [#1651](https://github.com/Gerrrt/HomeLab/issues/1651)): the `vmbr1_host_in` ingress barrier, `vmbr0` forwarding and `sshd` forwarding being off (`build-the-playground.md` §2, §4), and the attack-VM stop timer (ADR-0125) — read by `scripts/collect-range-state.sh`. `PveFirewallZeroRules` is here too: the firewall collector exports the rule count but no other rule reads it | @@ -1030,7 +1030,7 @@ that cannot be automated, because each needs a human to mount removable media: [ADR-0120](adr/0120-drop-the-age-key-proof-deadline.md), and since [ADR-0048](adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md) `backup-offsite` for the sets themselves, which carries the newest of each kind onto the -second recipient's medium and hashes it there. `OffsiteCopyStale` nags at +offsite drive and hashes it there ([ADR-0132](adr/0132-carry-the-offsite-copy-on-the-spare-drive.md)). `OffsiteCopyStale` nags at ninety days instead. `trinity` has no such job: its household copy and `HouseholdCopyStale` went with [ADR-0122](adr/0122-drop-the-household-copy.md). Three outputs leave: `backup-firewall` copies each export diff --git a/docs/runbooks/build-the-nas.md b/docs/runbooks/build-the-nas.md index 1ebd69ee..2340bf93 100644 --- a/docs/runbooks/build-the-nas.md +++ b/docs/runbooks/build-the-nas.md @@ -2289,9 +2289,9 @@ measured. `smaug`, onto the monitoring host and onto `oracle`, and every one of those copies is on the same shelf under the same roof — the position the volume sets and the firewall export are in. [ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md) - sends the newest of each beyond it, on the second age recipient's medium, - by [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md); what is left is - the first visit, which is [#573](https://github.com/Gerrrt/HomeLab/issues/573)'s last box. + sends the newest of each beyond it, on the offsite drive since + [ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md), by + [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md). - **SMART runs**, since §6.4 was done on 2026-09-21; and **patch state is decided and will not run**, by [ADR-0047](../adr/0047-collect-smaug-smart-through-a-root-cron-and-the-textfile-collector.md), diff --git a/docs/runbooks/copy-the-backups-offsite.md b/docs/runbooks/copy-the-backups-offsite.md index 089efcb5..165f7f78 100644 --- a/docs/runbooks/copy-the-backups-offsite.md +++ b/docs/runbooks/copy-the-backups-offsite.md @@ -2,16 +2,13 @@ **Target:** the newest firewall export, volume set, NAS set and wiki set under `backups/` on the monitoring host (10.0.99.20) -**Time:** ten minutes every ninety days, on the visit that proves the second -age recipient; a few minutes longer the first time -**You will need:** the offline medium that holds the second age recipient's -private key ([ADR-0024](../adr/0024-hold-a-second-age-recipient-and-prove-each-one-separately.md), -[#294](https://github.com/Gerrrt/HomeLab/issues/294)), mounted on the -monitoring host, with a few gigabytes free +**Time:** ten minutes every ninety days; a few minutes longer the first time +**You will need:** the offsite drive, the 5 TB WD labelled `HOUSEHOLD` +([ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md), [`hardware.md`](../hardware.md)), brought back to +the monitoring host and mounted, with a few gigabytes free -This is the third of the ninety-day proofs, and the first that is not a key. -Read [`back-up-the-age-key.md`](back-up-the-age-key.md) first if you have not: -the visit this runbook rides on is that one. +This is the third of the ninety-day proofs, and the only one that is not a +key. ## Why @@ -21,17 +18,16 @@ Three things leave this host on their own — `make backup-firewall` nightly, laptops share a shelf, a switch, a circuit and a roof, and `verify-backups` proving every morning that `oracle` still holds every byte says nothing about the room. [ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md) -sends one copy of each beyond it, on the medium that already leaves the estate -and already visits: the newest complete set of each kind, encrypted exactly as -it is here, carried in a pocket. - -**Why this medium.** Its holder is the technical second named on the -break-glass card — the person who would restore from these sets on the day -they matter — and a successor holding it has the key, the sets and the public -repository in one hand. The cost that comes with that is stated in the ADR and -accepted: this medium is now the one place where the estate's ciphertext sits -beside a key that opens it. Keep it out of the house, and treat losing it as -losing the key, because it is. +sends one copy of each beyond it: the newest complete set of each kind, +encrypted exactly as it is here, on a drive kept outside the house. + +**Why this medium.** Since [ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md) it is the spare +`HOUSEHOLD` drive, and it holds no key. Until 2026-11-24 the copy rode on the +second age recipient's medium, which put the ciphertext beside a key that +opens it. Now the drive alone opens nothing: a restore needs the drive and +one of the two age keys, the second recipient's medium or the offline copy +of the first. Losing the drive loses only ciphertext. Keep it out of the +house between visits. **One copy of record.** The proof below records one timestamp. If the sets are ever copied to a second medium as well, nothing here can see that copy, and @@ -107,13 +103,10 @@ start of the *next* visit is for; and that anyone but the holder knows where it is. Those parts are judgement, not a check, and the medium's location is not written down in this repository, for the same reason the key's is not. -While the medium is mounted you can also check the key copy on it. This is -optional and has no deadline -([ADR-0120](../adr/0120-drop-the-age-key-proof-deadline.md)): - -```bash -make secrets-verify-backup KEY=/path/to/the/medium/keys.txt -``` +The drive holds no key, so there is no key to check on this visit. Each +key's own proof is optional and has no deadline +([ADR-0120](../adr/0120-drop-the-age-key-proof-deadline.md), +[`back-up-the-age-key.md`](back-up-the-age-key.md)). ## 3. The ninety-day deadline @@ -163,8 +156,8 @@ Then [`restore-the-stack.md`](restore-the-stack.md) (`make restore ARGS="--from "`), [`restore-the-firewall.md`](restore-the-firewall.md), [`build-the-nas.md`](build-the-nas.md) §6 and [`stacks/wiki/README.md`](../../stacks/wiki/README.md) § Restore as written. -None of it decrypts without the age key, which is on the same medium — that is the point of this -medium, and the cost of it. +None of it decrypts without an age key, and the drive holds none: bring the +second recipient's medium, or the offline copy of the first key, as well. ## If something goes wrong @@ -174,14 +167,14 @@ medium, and the cost of it. | `the destination is on the same filesystem as the sets it would copy` | `DEST` is a directory on this host's disk, or a symlink or bind mount into it | Point it at the mounted medium. This is the check working | | `the destination is a tmpfs filesystem, which is not a medium` | `DEST` is `/dev/shm` or another in-memory filesystem | Point it at the mounted medium. A copy in RAM is gone on the next reboot, and the recorded success would have vouched for it for ninety days | | `the destination is under /…, which this host clears or recreates` | `DEST` is under `/tmp`, `/run`, `/dev`, `/proc` or `/sys` | The same. Whatever is mounted there, it does not leave the house | -| `… does not report as removable media` (a warning, the run continues) | The destination is a fixed disk or a network mount | Only you can say whether it leaves the house. If it does not, stop and mount the medium | +| `… does not report as removable media` (a warning, the run continues) | The destination is a fixed disk or a network mount. The offsite drive reports as fixed, so this prints on every visit | Expected for the offsite drive. For anything else, only you can say whether it leaves the house. If it does not, stop and mount the drive | | `the destination is inside this repository` | `DEST` is under the working tree | This tree is published. Use the medium | | `not enough room on the medium` | A volume set is about 1.7 GB and the medium is small or full of something else | `ARGS=--prune` if an older set of the estate's is what fills it; otherwise a larger medium. Nothing was written | | `differs from its MANIFEST entry` or `differs from its recorded sha256` | A byte on the medium changed since it was written — media do fade | Remove *that one* set directory (or that export and its `.sha256`) from the medium, then run the copy again. The script names it and never deletes it for you | | `refusing to check a set with an unexpected name` | A directory holding a `MANIFEST` sits beside the sets under a name that is not a stamp — copied there by hand, or renamed | Move it off the medium or delete it, then run again. A `.part` left by a copy that died is not this: the next run removes it on its own and says so (`removing … — a copy that did not finish`) | -| `NOT held: … is not encrypted to age1…, so that key cannot open it` | The newest set or export of that kind was encrypted before that key became a recipient, or, for a firewall export made before 2026-09-23, by `backup-firewall.sh` encrypting to the first key of the rule only. It hashes perfectly and the key on the medium cannot open it. That is what the first visit carried (#573) | Make a fresh one with the command the line names (`make backup`, `make backup-nas` or `make backup-firewall`), then run the copy again. It replaces the unfit one and records the proof. After any recipient change, the next visit needs sets made after it | +| `NOT held: … is not encrypted to age1…, so that key cannot open it` | The newest set or export of that kind was encrypted before that key became a recipient, or, for a firewall export made before 2026-09-23, by `backup-firewall.sh` encrypting to the first key of the rule only. It hashes perfectly and that key cannot open it. That is what the first visit carried (#573) | Make a fresh one with the command the line names (`make backup`, `make backup-nas` or `make backup-firewall`), then run the copy again. It replaces the unfit one and records the proof. After any recipient change, the next visit needs sets made after it | | `records no recipients, so which keys open it is unknown` | The set's MANIFEST has no `recipient` line: it predates that line, or was not written by the backup scripts | The same: a fresh set of that kind, then the copy again | -| `on the medium, : … is not encrypted to …` from `--verify-only` | The medium's newest set of that kind is one its key cannot open, carried before this check existed | Run the copy with a fit set; the warning on a copy run is expected, and the copy replaces it | +| `on the medium, : … is not encrypted to …` from `--verify-only` | The medium's newest set of that kind is one an estate key cannot open, carried before this check existed | Run the copy with a fit set; the warning on a copy run is expected, and the copy replaces it | | `nothing to verify on the medium` from `--verify-only` | The medium holds no complete set | Not a proof of anything. Run the copy | | `OffsiteCopyStale` | Ninety days since the last proved copy | This runbook, on the next visit | | `ScheduledJobNeverRan` for `offsite-copy` | The deadline is declared and no copy has ever been made | Expected until the first visit. Make it | diff --git a/docs/runbooks/restore-the-firewall.md b/docs/runbooks/restore-the-firewall.md index 09a490a2..964bb804 100644 --- a/docs/runbooks/restore-the-firewall.md +++ b/docs/runbooks/restore-the-firewall.md @@ -61,9 +61,9 @@ make backup-firewall ARGS=--verify-only # newest export decrypts here, and is ``` That is off-host, not offsite. Both laptops share a shelf, a mains circuit and -a roof. The copy beyond them is the newest export on the second age -recipient's medium, carried there on its ninety-day visit -([ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md), +a roof. The copy beyond them is the newest export on the offsite +drive, refreshed every ninety days +([ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md), [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md)); restoring from it starts by copying that one file back into `backups/firewall/`. diff --git a/docs/runbooks/restore-the-stack.md b/docs/runbooks/restore-the-stack.md index 0a5b6330..c902f3bb 100644 --- a/docs/runbooks/restore-the-stack.md +++ b/docs/runbooks/restore-the-stack.md @@ -79,9 +79,9 @@ make backup ARGS=--copy-only that *differs* on `oracle`, nothing removes it for you: look at it, remove that one directory there, and run the copy again. Two things this does not change. Off-host is not offsite — `oracle` is on the same shelf, mains and room, and a -fire takes both; the copy beyond it is the newest set on the second age -recipient's medium, made on its ninety-day visit -([ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md), +fire takes both; the copy beyond it is the newest set on the offsite drive, +refreshed every ninety days +([ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md), [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md)), and that runbook says how to put it back here first. And `oracle`'s disk is a 2016 laptop HDD carrying 32 static reallocated sectors, recorded as a baseline diff --git a/docs/runbooks/schedule-maintenance.md b/docs/runbooks/schedule-maintenance.md index 4b49fb23..42a3f320 100644 --- a/docs/runbooks/schedule-maintenance.md +++ b/docs/runbooks/schedule-maintenance.md @@ -35,14 +35,14 @@ key's fingerprint so a re-minted CA starts at never rather than inheriting the old key's proof ([`back-up-the-ca-key.md`](back-up-the-ca-key.md)). The third of that shape is not a key. `make backup-offsite DEST=…` carries -the newest firewall export, volume set and NAS set onto the same medium that -holds the second age recipient, on the same visit — it refuses a destination +the newest firewall export, volume set and NAS set onto the offsite drive, +which holds no key ([ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md)) — it refuses a destination on this host's own filesystem, on RAM, or under the trees this host clears on boot, then re-verifies what the medium already holds, copies, and hashes the copy — and records `offsite-copy`; `OffsiteCopyStale` is the nag, the same ninety days, read straight off the job series because there is one copy of record -([ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md), +([ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md), [ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md), [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md)). Three jobs' output leaves this host. `backup-firewall` copies every export to @@ -935,7 +935,7 @@ expected rather than a second fault. | --- | --- | --- | | `ScheduledJobNeverRan` right after install | The job has a threshold declared and has never reported a result | Expected for `verify-ca-key-backup` until you first verify the CA key, and for `offsite-copy` until the first visit makes the copy. For anything else, `systemctl start homelab-.service` and read the journal | | `ScheduledJobStaleCritical` | A job has gone three of its own periods without a success — one and a half of the allowance in the `JOBS` table, which is twice the period; a weekly backup three weeks stale, a nightly one three nights, and never under a day for the hourly collectors — and the `ScheduledJobStale` warning for it has been repeating on the in-house channel unanswered | The same first look as the warning: `systemctl list-timers 'homelab-*'`, then `journalctl -u homelab-.service`. The rows below name the usual cause per job. The page holds the warning back while it is up, so a job that recovers clears both at once | -| `OffsiteCopyStale` | Ninety days since the newest sets were last copied to the second recipient's medium and proved there | Mount it and run `make backup-offsite DEST=…` — [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md). `--list`, `--verify-only` and `--prune` do not clear it, on purpose | +| `OffsiteCopyStale` | Ninety days since the newest sets were last copied to the offsite drive, the spare `HOUSEHOLD` drive ([ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md)), and proved there | Bring it back, mount it and run `make backup-offsite DEST=…` — [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md). `--list`, `--verify-only` and `--prune` do not clear it, on purpose | | `CaKeyBackupUnproven` | No offline copy of `certificates/ca-key.pem` has been proved in ninety days — or ever, or not since the CA was re-minted, which the fingerprint label tells apart | Mount the medium and `make certs-verify-backup KEY=…` ([`back-up-the-ca-key.md`](back-up-the-ca-key.md)). After a re-mint, copy the new key there first; the old copy is refused | | `ScheduledJobMetricsAbsent` | Nothing from the textfile directory has reached Prometheus in six hours | This is the whole directory, not one file — check Alloy is up and the directory still exists. A single malformed file shows as `node_textfile_scrape_error 1` and costs only that file | | One job's series missing, `node_textfile_scrape_error` is 1 | That job's `.prom` failed to parse — a truncated write, or something wrote it without the temp-then-rename | The other files are unaffected. Re-run the job; if it recurs, something is writing the file directly instead of through `run-scheduled.sh` | diff --git a/docs/runbooks/successor-handover.md b/docs/runbooks/successor-handover.md index 65297970..557f80c0 100644 --- a/docs/runbooks/successor-handover.md +++ b/docs/runbooks/successor-handover.md @@ -241,7 +241,7 @@ entry cannot be removed, so it is there and disabled. | The public recipients | [`.sops.yaml`](../../.sops.yaml) | Yes. It can only encrypt | | **The private key** | `~/.config/sops/age/keys.txt` on `prometheus`, mode 600, plus one offline copy | **Never.** Nothing in this repository or any backup of it can recover the private half | | **The estate CA's private key** | `certificates/ca-key.pem` on `prometheus`, mode 600, plus one offline copy on the same medium, proved with `make certs-verify-backup` ([`back-up-the-ca-key.md`](back-up-the-ca-key.md)) | **Never.** It was, once, and was purged; `certificates/` is gitignored and CI asserts it | -| **The backup sets** — the firewall export, the volume sets, the NAS set | `backups/` on `prometheus`; the same on `oracle`, hashed there every morning; and the newest of each kind on the medium that holds the second age recipient, from that medium's first visit onward — so whoever holds that key holds the sets it opens ([ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md), [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md)) | **Never.** Ciphertext to the estate's age recipients everywhere it exists; `backups/` is gitignored and CI asserts it | +| **The backup sets** — the firewall export, the volume sets, the NAS set | `backups/` on `prometheus`; the same on `oracle`, hashed there every morning; and the newest of each kind on the offsite drive, which holds no key: opening it takes that drive and one of the two age keys, the second recipient's medium or the offline copy of the first ([ADR-0132](../adr/0132-carry-the-offsite-copy-on-the-spare-drive.md), [ADR-0048](../adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md), [`copy-the-backups-offsite.md`](copy-the-backups-offsite.md)) | **Never.** Ciphertext to the estate's age recipients everywhere it exists; `backups/` is gitignored and CI asserts it | The encrypted file holds the Grafana admin login and renderer token, the SNMP credentials — a community for pfSense, and an SNMPv3 user's two passphrases for diff --git a/docs/security.md b/docs/security.md index e152b547..e30a7083 100644 --- a/docs/security.md +++ b/docs/security.md @@ -112,19 +112,20 @@ that takes the rack takes every copy ([*What backs Immich up*](../stacks/sensitive/README.md#what-backs-immich-up-and-what-does-not-yet)). Accepted by the operator. -**The estate's own backup sets leave the house too, and with a key.** Decided -2026-09-20: the newest firewall export, volume set and NAS set are carried onto -the offline medium that holds the second age recipient, on its ninety-day -visit, from that medium's first visit onward ([ADR-0048](adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md)). That medium -is the one place where the estate's ciphertext sits beside a key that opens -it — the property ADR-0015 refused `oracle`, and still does; the argument there -turned on a powered, networked host in the same room, and this is an offline -medium held off the estate by the technical second. **The residual is the -disclosure delta on losing it**: the key alone already means rotating every -credential in the repository, and the sets add the firewall's rule bodies and -WAN address, the device password hashes in the export, and `grafana.db`. -Accepted, because the alternative is a successor who holds the key and not -the thing it opens. +**The estate's own backup sets leave the house too, without a key.** Decided +2026-09-20 ([ADR-0048](adr/0048-carry-the-estates-backup-sets-with-the-second-recipient.md)) +and moved on 2026-11-24 +([ADR-0132](adr/0132-carry-the-offsite-copy-on-the-spare-drive.md)): the +newest firewall export, volume set, NAS set and wiki set are carried onto the +offsite drive, the spare `HOUSEHOLD` drive, which holds no key. **Losing that +drive discloses ciphertext only.** Until 2026-11-24 the sets rode on the +offline medium that holds the second age recipient, beside a key that opens +them. That medium may still hold those older sets until its holder deletes +them, so **losing the key medium still carries the old disclosure delta**: +the key alone already means rotating every credential in the repository, and +those sets add the firewall's rule bodies and WAN address, the device password +hashes in the export, and `grafana.db`. Accepted. The cost of the move is +that a successor needs the drive and a key, two things rather than one. **Intrusion detection has been running** on **Skids (VLAN 20)** since 2026-08-21 and on **Degens (VLAN 10)** since 2026-09-02, one Suricata process diff --git a/stacks/observability/prometheus/rules/backup.rules.yaml b/stacks/observability/prometheus/rules/backup.rules.yaml index 2d728748..14d55e43 100644 --- a/stacks/observability/prometheus/rules/backup.rules.yaml +++ b/stacks/observability/prometheus/rules/backup.rules.yaml @@ -26,7 +26,7 @@ # the one exception, and they name the jobs that are not timers: the human # proofs — verify-ca-key-backup, whose deadline is applied to the CA key's # current fingerprint (#496), offsite-copy, the newest set of each kind carried -# onto the second recipient's medium (ADR-0048). +# onto the offsite drive (ADR-0048, ADR-0132). # # The age-key proof is no longer one of them. ADR-0120 dropped its deadline: # verify-key-backup and verify-key-backup-sensitive are not declared any more, @@ -325,7 +325,8 @@ groups: description: >- Nothing else here proves the firewall export, the volume sets and the NAS set exist anywhere a fire in the rack would not reach — - oracle is on the same shelf. Mount the second recipient's medium - and run `make backup-offsite DEST=`; it re-verifies what is - there, copies the newest of each kind and proves the copy: + oracle is on the same shelf. Bring the offsite drive back, the + spare HOUSEHOLD drive (ADR-0132), mount it and run + `make backup-offsite DEST=`; it re-verifies what is there, + copies the newest of each kind and proves the copy: docs/runbooks/copy-the-backups-offsite.md. diff --git a/stacks/observability/prometheus/tests/backup.test.yaml b/stacks/observability/prometheus/tests/backup.test.yaml index eddf1c55..96f32ff6 100644 --- a/stacks/observability/prometheus/tests/backup.test.yaml +++ b/stacks/observability/prometheus/tests/backup.test.yaml @@ -337,10 +337,11 @@ tests: description: >- Nothing else here proves the firewall export, the volume sets and the NAS set exist anywhere a fire in the rack would not - reach — oracle is on the same shelf. Mount the second - recipient's medium and run `make backup-offsite DEST=`; - it re-verifies what is there, copies the newest of each kind - and proves the copy: docs/runbooks/copy-the-backups-offsite.md. + reach — oracle is on the same shelf. Bring the offsite drive + back, the spare HOUSEHOLD drive (ADR-0132), mount it and run + `make backup-offsite DEST=`; it re-verifies what is + there, copies the newest of each kind and proves the copy: + docs/runbooks/copy-the-backups-offsite.md. - eval_time: 2h30m alertname: ScheduledJobStale exp_alerts: []