diff --git a/README.md b/README.md index 26501b0a..30976afd 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.** 120 ADRs covering what was chosen +- **Documented decisions and runbooks.** 121 ADRs covering what was chosen and what was rejected — including the costs accepted knowingly; 55 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/ # 120 ADRs — architecture decision records +│ ├── adr/ # 121 ADRs — architecture decision records │ ├── exercises/ # purple-team exercise records — see its README │ └── runbooks/ # 55 runbooks; successor-handover.md is the front door └── Makefile # make help diff --git a/docs/adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md b/docs/adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md index 4345e90b..2d1beb8f 100644 --- a/docs/adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md +++ b/docs/adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md @@ -6,6 +6,11 @@ power source [#413](https://github.com/Gerrrt/HomeLab/issues/413) owed `hardware.md` > [!NOTE] +> **No live test, 2026-11-21.** +> [ADR-0121](0121-accept-the-ups-shutdown-without-a-live-test.md) accepts the +> sequence as configured. The runbook's forced-shutdown proof and mains pull +> will not be run, and #574 closes on the applied steps. +> > **Renumbered to 0049 on 2026-09-21.** This landed as ADR-0048 in > [#586](https://github.com/Gerrrt/HomeLab/pull/586) and > [#588](https://github.com/Gerrrt/HomeLab/pull/588) took the same number diff --git a/docs/adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md b/docs/adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md index eb45cebd..30795f62 100644 --- a/docs/adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md +++ b/docs/adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md @@ -5,6 +5,12 @@ left open, and amends its low-battery reasoning for the guest set `Saruman` now carries +> [!NOTE] +> **No live test, 2026-11-21.** +> [ADR-0121](0121-accept-the-ups-shutdown-without-a-live-test.md) accepts the +> sequence as configured. The runbook's forced-shutdown proof and mains pull +> will not be run, and #574 closes on the applied steps. + ## Context ADR-0049's *Who shuts down* table ends with a row it could not fill: diff --git a/docs/adr/0121-accept-the-ups-shutdown-without-a-live-test.md b/docs/adr/0121-accept-the-ups-shutdown-without-a-live-test.md new file mode 100644 index 00000000..aba2b1bc --- /dev/null +++ b/docs/adr/0121-accept-the-ups-shutdown-without-a-live-test.md @@ -0,0 +1,53 @@ +# ADR-0121: Accept the UPS shutdown sequence without a live test + +**Status:** Accepted · 2026-11 · amends +[ADR-0049](0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md) and +[ADR-0107](0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md) + +## Context + +ADR-0049 decided who halts on the UPS's signal, and ADR-0107 added `trinity` +and bounded `Saruman`'s guest stop. Every configuration step is applied: +steps 0 to 4 of +[`shut-down-on-the-ups.md`](../runbooks/shut-down-on-the-ups.md) on +2026-09-23, `Saruman`'s 3.6 and 3.7 on 2026-11-13, and step 4b, `HOSTSYNC +600` and the 16-minute low-battery duration on 2026-11-20. Each secondary +reads `OL` from `morpheus`. + +The runbook's steps 5 and 6 were left as the proof. Step 5 forces the +sequence with `upsmon -c fsd`, halting every subscribed host on purpose. +Step 6 pulls the mains to measure the pack. The operator will not run either. +A forced halt of the whole rack, and a deliberate power cut, cost more than +the certainty they would buy for a home lab, and a test that stays listed as +owed and is never run is noise. + +## Decision + +**The UPS shutdown sequence is accepted as configured, without a live test.** + +- Steps 5 and 6 of the runbook are not owed. They stay in the runbook as + a procedure anyone may run, and nothing lists them as outstanding. +- [#574](https://github.com/Gerrrt/HomeLab/issues/574) closes on the applied + configuration. +- The pack's runtime stays the card's estimate, about 47 minutes at 21 % + load. The 16-minute low-battery duration was sized from the worst-case + bound in step 3.8, not from a measurement, so it does not depend on one. + +**Unchanged:** every rule, alert and setting ADR-0049 and ADR-0107 put in +place. `UpsOnBattery`, `UpsBatteryLow` and the self-test alerts still watch +the pack. + +## Consequences + +- A fault in the sequence would first show in a real outage that outlasts + the pack. The operator accepts that. +- The UPS's outlet-group turn-off and load-shedding settings stay unread. + That is a look at the card's web page, not a test. A shed on group 1 + would cut the PDU before or during the halt, and the card's page is where + to check. +- `SmartDriveUnsafeShutdownsGrowing` is a conditional power-loss signal, + not a verdict on the sequence. It also pages when the UPS cuts its output + after a clean halt, and its one-day comparison with a one-hour pending + period can miss a host that stays down for a long outage. Whether the + sequence ran and finished is in each host's shutdown log, and + `shut-down-on-the-ups.md` *If something goes wrong* says how to read it. diff --git a/docs/changelog.md b/docs/changelog.md index eaf90c6c..4fa3cffa 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,16 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-21 +- **The UPS shutdown sequence is accepted without a live test, and the DNS + failure test is recorded as done.** + [ADR-0121](adr/0121-accept-the-ups-shutdown-without-a-live-test.md): the + operator will not run `shut-down-on-the-ups.md` steps 5 and 6, the forced + halt with `upsmon -c fsd` and the mains pull that measures the pack. Steps 0 + to 4b are applied, #574 closes on them, and its roadmap entry leaves. + Separately, the operator confirmed that they stopped AdGuard on purpose and + `AdGuardNotAnswering` paged. The day was not written down, so the runbook's + table records it as before 2026-11-21, and the test leaves #404's list. + - **`trinity`'s photo disk passes no SMART through, and the lock-directory change is reverted.** The first run of `smart-state-sensitive` read the NVMe and the HOUSEHOLD drive and returned nothing for the photo disk. Its Seagate diff --git a/docs/hardware.md b/docs/hardware.md index 092de1c1..7a00066c 100644 --- a/docs/hardware.md +++ b/docs/hardware.md @@ -54,17 +54,17 @@ UPS's model is read off the card as `upsIdentModel` and was in no document before then either. Who acts on the pack running out — and who does not — is [ADR-0049](adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md), and the runtime the pack actually gives at this load is **not measured**: the -card claimed 47 minutes at 21 % load on 2026-09-20, and the one mains pull -that turns that estimate into a number is -[`shut-down-on-the-ups.md`](runbooks/shut-down-on-the-ups.md) §6. Since the +card claimed 47 minutes at 21 % load on 2026-09-20, and that estimate stands +([ADR-0121](adr/0121-accept-the-ups-shutdown-without-a-live-test.md)). Since the move, `trinity`, `gandalf` and the console are on the PDU too, and `smaug` is on it directly rather than by the long cord to the media room it had until 2026-11-06. [ADR-0107](adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md) makes `trinity` a third host that halts on the signal: the runbook's step 4b, applied on 2026-11-20. The card's low-battery duration was raised to 16 -minutes the same day, to cover `Saruman`'s bounded guest stop. Nobody has -watched the sequence run yet. `gandalf`, the console and the KVM are left to +minutes the same day, to cover `Saruman`'s bounded guest stop. The sequence +is accepted as configured, without a live test +([ADR-0121](adr/0121-accept-the-ups-shutdown-without-a-live-test.md)). `gandalf`, the console and the KVM are left to the pack by decision. Off-rack: only the eero Pro 6E units, distributed through the house. diff --git a/docs/roadmap.md b/docs/roadmap.md index c5cae056..0fc49992 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -42,21 +42,6 @@ What an entry here may contain: Closes when it is empty. -- **[#574](https://github.com/Gerrrt/HomeLab/issues/574) Shut down on the - UPS's signal.** Decided by - [ADR-0049](adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md). - Steps 0–4 were built on 2026-09-23: NUT on `morpheus`, its rules, and - `Saruman` and `smaug` subscribed. The sequence is armed and not proved. - Since the rack move, - [ADR-0107](adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md) - adds `trinity` as a third subscriber and caps `Saruman`'s ordered guests at - `down=90`. `Saruman`'s half (steps 3.6 and 3.7 on `Saruman`) was applied - on 2026-11-13; `trinity`'s subscription, `HOSTSYNC 600` on `morpheus` and - step 3.8 on 2026-11-20. The gate is a rack visit. It reads the outlet - groups, proves the order - with `upsmon -c fsd`, and pulls the mains once to replace the card's - 47-minute claim with a number. - → [runbook](runbooks/shut-down-on-the-ups.md) - **[#1226](https://github.com/Gerrrt/HomeLab/issues/1226) The HomePods in Home Assistant, for control.** Decided by [ADR-0099](adr/0099-control-the-homepods-from-home-assistant-and-leave-their-audio-out.md). @@ -108,9 +93,6 @@ Closes when #404 and #132 close, and #455 has its holder. host.** **Built and deployed 2026-09-28** ([ADR-0034](adr/0034-run-the-sensitive-tier-on-the-prodesk-and-make-it-the-spare-hardware.md), → [runbook](runbooks/build-the-sensitive-tier-host.md)). What is left: - - the DNS failure test, which proves `AdGuardNotAnswering` pages. #135 - closed on 2026-09-28 without a record of it, so it is owed here - (→ [runbook](runbooks/forward-dns-to-adguard.md#4-stop-adguard-on-purpose-and-time-the-page)); - the step 10 gate: the second age recipient, the off-estate copy (#455), ADR-0022's identity-provider record and ADR-0023's *Independent* test. Until #455 exists, the originals' only copy beyond diff --git a/docs/runbooks/forward-dns-to-adguard.md b/docs/runbooks/forward-dns-to-adguard.md index 476627ac..c9865d68 100644 --- a/docs/runbooks/forward-dns-to-adguard.md +++ b/docs/runbooks/forward-dns-to-adguard.md @@ -236,7 +236,11 @@ Then step 3's leak test once more, and wait for the *resolved* notification. | Date | Stopped | Page arrived | DNS back | Resolved notice | | --- | --- | --- | --- | --- | -| *not yet run* | — | — | — | — | +| before 2026-11-21, day not written down | yes | yes | yes | — | + +The operator ran this and the `AdGuardNotAnswering` page arrived. The times +were not written down when it happened; the row above was recorded on +2026-11-21 from their account. **If AdGuard cannot be brought back** and the house needs DNS now: add `1.1.1.1` under *System → General Setup → DNS Servers* on `morpheus` and diff --git a/docs/runbooks/shut-down-on-the-ups.md b/docs/runbooks/shut-down-on-the-ups.md index c343232e..a7896222 100644 --- a/docs/runbooks/shut-down-on-the-ups.md +++ b/docs/runbooks/shut-down-on-the-ups.md @@ -64,6 +64,12 @@ follow the steps.** > > §6.5 now keeps the low-battery duration at or above the worst case plus > half again, whatever the measured run says. +> +> **Steps 5 and 6 will not be run, 2026-11-21.** +> [ADR-0121](../adr/0121-accept-the-ups-shutdown-without-a-live-test.md) +> accepts the sequence as configured. Steps 0 to 4b are applied, and #574 +> closes on them. Steps 5 to 7 stay below as a procedure, and nothing lists +> them as owed. ## What this does @@ -903,6 +909,10 @@ and `LISTEN 10.0.99.1` in place of `LISTEN 10.0.30.1`. ## Step 5 — Prove the shutdown order +**Not run, by decision** +([ADR-0121](../adr/0121-accept-the-ups-shutdown-without-a-live-test.md)). +Kept as a procedure, not as a step owed. + This halts everything. Your window must be open and you must be able to power the four hosts back on by hand. @@ -1106,6 +1116,9 @@ investigate before step 6. ## Step 6 — Measure the pack +**Not run, by decision** +([ADR-0121](../adr/0121-accept-the-ups-shutdown-without-a-live-test.md)). + Everything running, step 5 passed, every host back up. ### 6.1 Take a baseline diff --git a/docs/security.md b/docs/security.md index 6df8fc38..82763a1e 100644 --- a/docs/security.md +++ b/docs/security.md @@ -34,7 +34,7 @@ What this network is actually built to survive: | Someone with the trusted Wi-Fi key quietly joining | Kea's lease log reaches Loki; `UnknownDeviceOnTrustedSegment` fires the first time a MAC appears on VLAN 50 in seven days ([ADR-0019](adr/0019-read-device-joins-from-the-dhcp-server.md)) | | Losing visibility of a failure | 183 alert rules, 30 days of metrics and logs | | Someone on a reachable VLAN silencing an alert to hide a failure | Alertmanager binds to `127.0.0.1`; silences go through authenticated Grafana | -| Mains power loss | **The rack, yes; the monitoring path, yes — on two laptop cells that were measured for the first time on 2026-09-12.** A pack fitted to `mjolnir` on 2026-08-28 passed its self-test; the TP-Link carrying `prometheus` and `oracle` has been on UPS power since 2026-09-08 ([#110](https://github.com/Gerrrt/HomeLab/issues/110)); the laptops ride a cut out on their own batteries, which `HostBatteryHealthLow` in `host.rules.yaml` now reads — `prometheus`'s cell was replaced on 2026-09-18 and reads 101 % of design, `oracle`'s was replaced on 2026-09-29 and reads 100 %, its design figure rather than a learned one ([#531](https://github.com/Gerrrt/HomeLab/issues/531)) — and **each runtime was measured once: `prometheus`'s on 2026-09-19, about 2.5 hours from full at the stack's load, and `oracle`'s on 2026-09-29, about 5.2 hours**; since the same day the projection is recorded on every cut and pages under thirty minutes (`HostBatteryRuntimeLow`, [#532](https://github.com/Gerrrt/HomeLab/issues/532)), but neither pack reports a moving cell temperature, so this row is answered for both hosts' runtime and for neither's cell temperature — see below. **What happens when the cut outlasts the pack is armed and not proved.** Since 2026-09-23 the firewall's NUT server reads `mjolnir`, and `Saruman` and `smaug` subscribe to it on their own gateway addresses, so a real cut would now try to run the sequence [ADR-0049](adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md) decides: `Saruman` and `smaug` halt first and `morpheus` last. Nobody has watched it run. Since the move into the 32U rack on 2026-11-06 the PDU also carries `trinity`, `gandalf` (off until its build) and the console, with `smaug` racked and on the PDU directly rather than by its old long cord to the media room. [ADR-0107](adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md) makes `trinity` a third subscriber and bounds `Saruman`'s guest stop. `Saruman`'s half was applied on 2026-11-13 (`down=90` on the four ordered guests, and its monitor stays logged in until they are down); `trinity`'s subscription, `HOSTSYNC 600` on `morpheus` and the card's 16-minute threshold followed on 2026-11-20, so all three subscribers would now halt before the pack empties, unwatched; `gandalf`, the console and `neo` are left to the pack by decision. The pack itself is unmeasured: about 47 minutes at 21 % load is the card's own estimate. [`shut-down-on-the-ups.md`](runbooks/shut-down-on-the-ups.md) §5 to §7 are what is left — the forced-shutdown proof and the one mains pull that measures the pack ([#574](https://github.com/Gerrrt/HomeLab/issues/574)) | +| Mains power loss | **The rack, yes; the monitoring path, yes — on two laptop cells that were measured for the first time on 2026-09-12.** A pack fitted to `mjolnir` on 2026-08-28 passed its self-test; the TP-Link carrying `prometheus` and `oracle` has been on UPS power since 2026-09-08 ([#110](https://github.com/Gerrrt/HomeLab/issues/110)); the laptops ride a cut out on their own batteries, which `HostBatteryHealthLow` in `host.rules.yaml` now reads — `prometheus`'s cell was replaced on 2026-09-18 and reads 101 % of design, `oracle`'s was replaced on 2026-09-29 and reads 100 %, its design figure rather than a learned one ([#531](https://github.com/Gerrrt/HomeLab/issues/531)) — and **each runtime was measured once: `prometheus`'s on 2026-09-19, about 2.5 hours from full at the stack's load, and `oracle`'s on 2026-09-29, about 5.2 hours**; since the same day the projection is recorded on every cut and pages under thirty minutes (`HostBatteryRuntimeLow`, [#532](https://github.com/Gerrrt/HomeLab/issues/532)), but neither pack reports a moving cell temperature, so this row is answered for both hosts' runtime and for neither's cell temperature — see below. **What happens when the cut outlasts the pack is configured and accepted without a live test.** Since 2026-09-23 the firewall's NUT server reads `mjolnir`, and `Saruman` and `smaug` subscribe to it on their own gateway addresses, so a real cut would now try to run the sequence [ADR-0049](adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md) decides: `Saruman` and `smaug` halt first and `morpheus` last. Since the move into the 32U rack on 2026-11-06 the PDU also carries `trinity`, `gandalf` (off until its build) and the console, with `smaug` racked and on the PDU directly rather than by its old long cord to the media room. [ADR-0107](adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md) makes `trinity` a third subscriber and bounds `Saruman`'s guest stop. `Saruman`'s half was applied on 2026-11-13 (`down=90` on the four ordered guests, and its monitor stays logged in until they are down); `trinity`'s subscription, `HOSTSYNC 600` on `morpheus` and the card's 16-minute threshold followed on 2026-11-20, so all three subscribers would now halt before the pack empties; `gandalf`, the console and `neo` are left to the pack by decision. The pack itself is unmeasured: about 47 minutes at 21 % load is the card's own estimate. Neither the forced-shutdown proof nor a mains pull will be run ([ADR-0121](adr/0121-accept-the-ups-shutdown-without-a-live-test.md)) | | The estate being down while the person who runs it is unavailable | **Documentation, yes; data, not yet off the estate.** ADR-0011 puts the emergency tier on paper; [ADR-0023](adr/0023-keep-the-household-recovery-path-outside-the-estate.md) extends the same reasoning to the sensitive tier's data. That tier has held real photographs since 2026-09-28, and their off-estate copy is built but has no holder yet ([#455](https://github.com/Gerrrt/HomeLab/issues/455)) — see below | What it explicitly does **not** defend against: a determined attacker with