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
17 changes: 17 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,23 @@ docstring gives: it is a record, not a claim about now.
ADR-0037 gives two to seven days after step-ca stops answering, usually
about five, not seven. Found re-checking the `prometheus` audit.

- **`network.md` declares two passes into other segments, `smaug` stops
taking passwords, and the diagram catches up.** The audit of `morpheus` left the Hicks SSH pass into `smaug`
(`desktop-02` → `10.0.40.30:22`) declared but unexplained. It stays: on
2026-11-23 the operator recorded it as where `smaug` is administered from by
hand. Review then found what that path is: since 2026-11-13 the
administrator `gerrrt` had logged in through it **by password**, allowed
twice over, on the user and in the SSH service's *Password Login Groups*,
while `network.md` and `build-the-nas.md` said `smaug`'s SSH answered
`frodo` alone, key-only. Both settings were cleared on 2026-11-24, and
`smaug` now offers every user `publickey` alone. A re-check of the box on 2026-11-24 found `Allow metrics from gandalf`
(`10.0.30.30 → 10.0.99.20:9090`, #1651) in force while `network.md` still
called `Saruman` the one ImaginationLAN host with a path into Winterfell;
it now names both. The network diagram's foot for VLAN 30 lists the
gandalf pass, and the rack row no longer calls `gandalf` off (ADR-0125
keeps it on). `build-the-playground.md` stops saying the range is not
monitored.

## 2026-11-23

- **NUT's driver on `morpheus` retries for 14 seconds, not 6.** The *data
Expand Down
Binary file modified docs/diagrams/current/network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/diagrams/current/network.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 20 additions & 8 deletions docs/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,13 @@ Televisions and consoles. Internet only.
declared it until the audit of `morpheus` on 2026-11-13 found it:** an
SSH pass on Hicks' interface, `desktop-02` (`10.0.50.90`) →
`10.0.40.30:22`. It is host-scoped, so `make check-firewall`'s wholesale
question cannot see it, and no ADR or issue says why it was made. It is
listed here so this count is true. Removing it, or recording why it stays,
is the operator's decision.
question cannot see it. It stays, by the operator's decision on
2026-11-23: `desktop-02` is where `smaug` is administered from by hand, as
the administrator `gerrrt`, and `prometheus`'s own pass carries the
automation. `gerrrt` logged in by password from 2026-11-13 until
2026-11-24, when both TrueNAS settings that allowed it (the user's and the
SSH service's *Password Login Groups*) were cleared; `smaug` now offers
every user `publickey` alone.
- **One more from Hicks is specified and not yet created.**
`Allow 5800 to smaug`, Hicks → `10.0.40.30:5800`, is for MakeMKV's web GUI,
the disc ripper that runs on `smaug` only while someone is ripping
Expand Down Expand Up @@ -646,7 +650,9 @@ Televisions and consoles. Internet only.
when [`build-the-nas.md`](runbooks/build-the-nas.md) §6.2 switched it on
for the backup pull [ADR-0045](adr/0045-pull-jellyfins-state-from-a-snapshot-over-ssh.md)
decided: key-only, one read-only user, `frodo`, and the rule already scopes
it to `10.0.99.20`. The first pull landed on 2026-09-20.
it to `10.0.99.20`. The first pull landed on 2026-09-20. A second user, the
administrator `gerrrt`, reaches it from `desktop-02` through the Hicks pass
above, key-only since 2026-11-24.

[^OLEDTV]: [LG OLED TV](https://www.lg.com/us/tvs/oled)
[^PS5]: [PlayStation 5](https://www.playstation.com/en-us/ps5/)
Expand Down Expand Up @@ -887,14 +893,20 @@ Where things get broken on purpose.
is not a second segment and needs no row in this document's tables. Every
path `fenrir` needs is intra-segment — its Alloy pushes to `alexander` — so
it adds no firewall rule.
- `Saruman` runs an Alloy agent and is the one host on this segment with a path
into Winterfell: a single pass, `10.0.30.20 → 10.0.99.20` on 9090 and 3100
TCP, unlogged and above the ADR-0014 tripwire. The hypervisor's own telemetry
- `Saruman` and `gandalf` are the two hosts on this segment with a path into
Winterfell. `Saruman` runs an Alloy agent: a single pass,
`10.0.30.20 → 10.0.99.20` on 9090 and 3100 TCP, unlogged and above the
ADR-0014 tripwire. The hypervisor's own telemetry
only; guests get no such rule (ADR-0007, as amended by #88). Past the rule,
the ingest proxy wants `Saruman`'s agent token (#182), so the pass lets the
host try and the token is what gets it served. The push is TLS under the
estate CA (#764), so the token is not readable at the firewall that forwards
it.
it. `gandalf`, the range hypervisor, is the second: its agent is
metrics-only, so its pass, `Allow metrics from gandalf`, is
`10.0.30.30 → 10.0.99.20` on 9090 alone, in force since 2026-11-23. The
Comment thread
Gerrrt marked this conversation as resolved.
Resolved
ingest proxy wants its own agent token
([ADR-0126](adr/0126-monitor-gandalf-now-that-it-stays-on.md),
[#1651](https://github.com/Gerrrt/HomeLab/issues/1651)).
- **`Saruman` is at `.20`, below the pool, like every other static.** Until
2026-11-07 it was at `.110`, the one fixed address in the estate inside a
DHCP pool (ImaginationLAN's runs `.100–.200`). Only Kea's
Expand Down
7 changes: 5 additions & 2 deletions docs/runbooks/build-the-nas.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,11 @@ TrueNAS ships SSH disabled, and on the day this ran §0.5's port-22 pass was
inert. Enabling it here to save a walk to the machine would have widened this
host's attack surface for the sake of five commands; §6.2's backup pull was
the reason to turn it on, on 2026-09-19, and this was not it. The service
now answers one key-only user, `frodo`, who can read a snapshot and nothing
else — still not a way to administer the box.
answered one key-only user, `frodo`, who can read a snapshot and nothing
else. Since 2026-11-13 it also answers the administrator `gerrrt` from
`desktop-02`, through the Hicks pass in [`network.md`](../network.md), and
both are key-only since 2026-11-24. This section still runs at the console:
it predates that account, and the console needs no pass.

```bash
lsblk
Expand Down
17 changes: 10 additions & 7 deletions docs/runbooks/build-the-playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -1725,18 +1725,21 @@ Addresses are parsed at query time rather than indexed, per

## Also worth knowing

**The range is not monitored and not backed up.** Only the second is still a
decision. ADR-0017 declined an Alloy agent because `gandalf` was off by design,
so any rule watching it would be permanently firing or permanently silenced.
Since [ADR-0125](../adr/0125-keep-gandalf-on-and-stop-ragnarok-on-a-timer.md)
the host stays on, so that reason is gone, and monitoring it is
[#1651](https://github.com/Gerrrt/HomeLab/issues/1651). ADR-0017 also declines PBS
**The range is monitored but not backed up.** ADR-0017 declined an Alloy agent
because `gandalf` was off by design, so any rule watching it would be
permanently firing or permanently silenced. Since
[ADR-0125](../adr/0125-keep-gandalf-on-and-stop-ragnarok-on-a-timer.md) the
host stays on, and since 2026-11-23 its metrics-only agent and the range rules
are live (*Monitoring the host*, above;
[#1651](https://github.com/Gerrrt/HomeLab/issues/1651)). ADR-0017 also declines PBS
because a deliberately-vulnerable image in the estate's backup store is a
supported path for it to arrive somewhere it should not be. If you find yourself
wanting to back something up here, the thing you want to keep has stopped being
range and started being estate, and it is on the wrong machine.

**The tripwire is the only thing watching.** `pass` + `log` for
**The tripwire is the only thing watching the segment's edge.** The range
rules watch `gandalf` itself; what crosses from ImaginationLAN into the house
is seen only by the tripwire: `pass` + `log` for
`vlan30 net → Internal_Segments` on the ImaginationLAN interface, below the
blocks and the `quick` iLO pass, above the `→ any` egress rule
([#234](https://github.com/Gerrrt/HomeLab/issues/234)). It matches nothing while
Expand Down
1 change: 1 addition & 0 deletions docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ What this network is actually built to survive:
| A rooted range target reaching `gandalf` itself | **Dropped at `vmbr1`, before the host firewall.** The host has no address on the range bridge, but Linux answers ARP for its addresses on any interface and accepts a packet for them on any interface. So a target that adds an on-link route to `10.0.30.30` was reaching the host, and only the Proxmox firewall dropped it. `gandalf`'s own `pve-firewall-state` collector watches that firewall now ([ADR-0126](adr/0126-monitor-gandalf-now-that-it-stays-on.md), [#1651](https://github.com/Gerrrt/HomeLab/issues/1651)). A netdev `ingress` table on `vmbr1` now drops every frame the bridge passes up to the host, ARP included, without touching guest-to-guest traffic ([`build-the-playground.md`](runbooks/build-the-playground.md) §2, proved by §8 check four). Behind it, `gandalf` holds no estate credential, no GitHub login, no personal tooling and no third-party apt repository (§4, *Nothing else on `gandalf`*), so the host gives nothing beyond itself. The audits of 2026-11-13 and 2026-11-22 found credentials, then tooling and two third-party repositories. The credentials were gone by 2026-11-22 and the `.claude` footprint by 2026-11-23. **The `vmbr1` table is applied (verified live).** Root's SSH key is Proxmox's node key; the audit found it had reached github, so it was regenerated fresh on 2026-11-23, minutes after a too-broad deletion that day briefly broke self-SSH ([changelog](changelog.md)). The new key is not one github recognises, so no host credential reaches the repository — revoking the old key on github, if it was ever a deploy key, is off-host |
| Someone on Winterfell or Hicks logging in to `trinity` | **Key-only `sshd` since 2026-11-20; no host firewall by decision.** `trinity` holds the household's data and the sensitive tier's age key, and its `sshd` answers Hicks (by [ADR-0031](adr/0031-narrow-hicks-to-a-named-list-on-winterfell-and-leave-the-lab-open.md)'s list) and every host on VLAN 99, between which pfSense never filters. [`build-the-sensitive-tier-host.md`](runbooks/build-the-sensitive-tier-host.md) §3 now makes `sshd` key-only through a drop-in that outranks cloud-init's, refuses root and X11 forwarding, and keeps `authorized_keys` to `prometheus`'s key and Hicks's. The audit of 2026-11-13 found it taking passwords, with X11 forwarding on and 17 keys imported from GitHub. The step was applied on 2026-11-20: a password-only login is refused with `Permission denied (publickey)`, and three keys remain, `prometheus`'s, Hicks's and the operator's laptop, the last kept by decision. Agent sessions run on `trinity` as the operator, by decision ([ADR-0123](adr/0123-keep-agent-sessions-on-trinity.md)). `ufw` is installed and stays disabled, unlike `phoenix`'s ([ADR-0117](adr/0117-give-phoenix-a-key-only-sshd-and-a-default-deny-inbound-policy.md)): the other two ports `trinity` answers, `443` and `53`, are published by Docker, whose rules run ahead of `ufw`'s, so a policy would govern `22` alone, which the drop-in already closes to anything without a key. Nothing routes through `trinity`, and as the spare firewall a host policy is one more thing to get in the way the day it stands in for `morpheus`. What reaches `443` and `53` is set by pfSense and by the stack's bind addresses |
| Someone on Winterfell or Hicks logging in to `prometheus` | **Key-only `sshd` since 2026-11-23; no host firewall by decision.** `prometheus` holds the estate's CA key and the age key that opens every volume backup set, and converge runs as the operator, who is in `sudo` and `docker`. Its `sshd` answers all of Hicks (by `morpheus`'s pass for `22` to the segment) and every host on VLAN 99. The audit's root-only reads on 2026-11-23 found it taking passwords, with X11 forwarding on and `ufw` inactive. [ADR-0128](adr/0128-give-prometheus-a-key-only-sshd-and-no-host-firewall.md) makes `sshd` key-only through a drop-in that outranks cloud-init's, refusing root and X11 forwarding ([`restore-the-stack.md`](runbooks/restore-the-stack.md#make-sshd-key-only)). It adds no host firewall, because Docker's rules run ahead of `ufw`'s for the published ports, so a policy would cover `22` alone. Those ports stay fenced as before: by `morpheus` by destination, by the ingest proxy's tokens on `9090` and `3100`, and on `6514` by the syslog listener's pinned client certificate and its sender list. The step was applied the same day. `sshd -T` read `no` for all four settings, a password login and a keyboard-interactive login were each refused with `Permission denied (publickey)`, and a key login from Hicks succeeded after the reload. |
| Someone on Hicks or Winterfell logging in to `smaug` | **Key-only `sshd` since 2026-11-24.** `smaug` holds the household's media and the `erebor` pool. Two hosts reach its `22`, each by a host-scoped pass on `morpheus` ([`network.md`](network.md)): `prometheus`, as the read-only backup user `frodo`, and `desktop-02` on Hicks, as the administrator `gerrrt`. From 2026-11-13 `gerrrt` logged in by password, allowed both on the user and in the SSH service's *Password Login Groups*, while the documents said `frodo` was the only user. Both settings were cleared in the TrueNAS UI on 2026-11-24. `sshd_config` then had no `Match` block left, and a connection as `gerrrt` or `root` was offered `publickey` alone. |
| 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 | 203 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 |
Expand Down
Loading