Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/architecture.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-20

- **`trinity` subscribes to the UPS, and the shutdown window is widened to
fit `Saruman`'s guests.** ADR-0107's remaining half was applied: the
runbook's step 4b (two Winterfell rules, the `10.0.99.1` listener, and
`nut-client` on `trinity` as a third secondary), `HOSTSYNC 600` on
Comment thread
Gerrrt marked this conversation as resolved.
Resolved
`morpheus` (§3.7), and the card's low-battery duration from 8 to 16
minutes (§3.8). `trinity` reads `ups.status` `OL` from `10.0.99.1`, and
`battery.runtime.low` reads `960`. The sequence is armed and still not
watched; step 5 ([#574](https://github.com/Gerrrt/HomeLab/issues/574)) is
the proof. This closes finding 1 of the trinity audit of 2026-11-13.

- **`trinity`'s `sshd` gets a keys-only step, and "no host firewall" is
written down as a decision.** The trinity audit of 2026-11-13 found `sshd`
taking passwords, with X11 forwarding on and 17 GitHub-imported keys
Expand Down
9 changes: 5 additions & 4 deletions docs/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ 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)
decides that `trinity` becomes a third host that halts on the signal. That
subscription is the runbook's step 4b, and it is not built yet, so today
`trinity` stops uncleanly when the pack empties. `gandalf`, the console and
the KVM are left to the pack by decision.
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
the pack by decision.

Off-rack: only the eero Pro 6E units, distributed through the house.
Both laptops ride a mains cut out on their own cells, so each cell is a
Expand Down
12 changes: 12 additions & 0 deletions docs/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,18 @@ listed under [Hicks](#hicks--vlan-50--trusted), and nothing else.
internal
([ADR-0011](adr/0011-keep-the-wiki-internal.md)) is this firewall's rules
alone.
- **One pair lets `trinity` reach its own gateway for NUT, and nothing else
on the segment does, in force since 2026-11-20.** `Allow NUT from trinity`,
`10.0.99.40 → 10.0.99.1:3493`, sits above `Block NUT to pfSense`,
Winterfell net → `10.0.99.1:3493`, and both sit with *Block HTTPS to
pfSense*, above Winterfell's egress rule. They were created by
[`shut-down-on-the-ups.md`](runbooks/shut-down-on-the-ups.md) §4b.1,
before §4b.2 added the `10.0.99.1` listener, so that `trinity` can
subscribe to the firewall's NUT server
([ADR-0107](adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md)).
The destination is the firewall's address on this segment, so the
*Reaches* column is unchanged. The block is what keeps `prometheus`,
`oracle` and the UPS card off the listener.

[^UPS]: [APC Smart-UPS](https://www.apc.com/us/en/product-range/61913-smart-ups/)
[^MacBookPro]: [Apple MacBook Pro (2012)](https://support.apple.com/en-us/111958)
Expand Down
4 changes: 2 additions & 2 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Closes when it is empty.
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 are not. The gate is a rack visit. It reads the outlet groups,
applies step 4b, `HOSTSYNC` and step 3.8, proves the order
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)
Expand Down
8 changes: 4 additions & 4 deletions docs/runbooks/shut-down-on-the-ups.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ follow the steps.**
> the console and the KVM.
> [ADR-0107](../adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md)
> makes `trinity` a third secondary. That is the new
> [step 4b](#step-4b--subscribe-trinity), and **it is not built yet**.
> [step 4b](#step-4b--subscribe-trinity), **applied on 2026-11-20**.
> - **`Saruman` runs thirteen guests, not two**, four of them in ordered
> stages. Step 3.6 now caps those four at `down=90`. 3.7 keeps its monitor
> logged in until they are down and raises `HOSTSYNC` to 600, and 3.8
> raises the card to 16 minutes before the window. **`Saruman`'s half is
> applied** (2026-11-13): 3.6's `down=90` and 3.7's `SHUTDOWNEXIT no` and
> drop-in. **`HOSTSYNC 600` on `morpheus` and 3.8 are not applied yet.**
> drop-in. `HOSTSYNC 600` on `morpheus` and 3.8 followed on 2026-11-20.
> - **The UPS's outlet groups were read for the first time** (PDU on
> group 1). Their turn-off and load-shedding settings were not, and a
> group-1 setting that sheds the PDU early would cut every host
Expand Down Expand Up @@ -784,8 +784,8 @@ interface that day.

Added 2026-11-08 by
[ADR-0107](../adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md),
after the rack move put `trinity` on the PDU. **Not built yet.** Do it
before step 5, so step 5 proves three secondaries and not two.
after the rack move put `trinity` on the PDU. **Applied on 2026-11-20.** It
comes before step 5, so step 5 proves three secondaries and not two.

`trinity` and the listener are both on Winterfell, so nothing here crosses a
segment. The rules keep the rest of Winterfell — `prometheus`, `oracle` and
Expand Down
2 changes: 1 addition & 1 deletion docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 are not, so `trinity` still stops uncleanly when the pack empties and the card still holds 8 minutes; `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 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)) |
| 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
Expand Down