diff --git a/docs/changelog.md b/docs/changelog.md index 771091ba..3eb5dd25 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,24 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-25 +- **`smaug`: three decided changes applied, from a session on the box.** + The rest of what the 2026-11-13 audit found is still the operator's: §6.12 + (TrueNAS Connect), eno1's static address, the media redeploy, the + `gerrrt` account and the leftover images. + - **`bilbo` is read-only** on the `media` share (ADR-0134, + `build-the-nas.md` *Make `bilbo` read-only*). `builtin_users` Modify was + replaced by `samwise` Modify, recursively. From Hicks, `bilbo` read and + was refused a write, `samwise` wrote and deleted, and Jellyfin played on + a television. + - **§6.13**: the UI is allowlisted to `10.0.50.0/24` with an HTTPS + redirect; NetBIOS, mDNS and WS-Discovery are off; usage collection and + Docker's image-update check are off. No television used SMB. + - **`erebor/pbs` has its 4 TiB quota.** `golem`'s `df` showed `3.7T`, not + the `4.0T` `build-the-backup-guest.md` §3 promised: NFS reports the quota + less the dataset's 311 GiB of snapshots. The runbook now says so. + - **`erebor/apps@auto-2026-09-19_23-00` is deleted**: 1.2 MiB, no holds, + left by the 23:00 schedule the task no longer runs. + - **The read-only audit of `titan` (2026-11-13, re-checked today) leaves four changes in the repository, and none yet on the guests.** What it found matching: the shares and their ACLs, the decoy, inbound SMB signing off, the diff --git a/docs/network.md b/docs/network.md index 93b7f22b..59a37bea 100644 --- a/docs/network.md +++ b/docs/network.md @@ -645,9 +645,10 @@ Televisions and consoles. Internet only. service, registered on `smaug` since its first boot and read as enabled on 2026-11-13. [ADR-0133](adr/0133-turn-truenas-connect-off-on-smaug.md) turns it off; [`build-the-nas.md`](runbooks/build-the-nas.md) §6.12 is - the procedure, and until that is done the registration stands. **So do two - smaller vendor contacts**, TrueNAS's usage collection and Docker's - image-update check. Both are on, and §6.13 turns them off. + the procedure, and until that is done the registration stands. **Two + smaller vendor contacts went the same way until 2026-11-25**, TrueNAS's + usage collection and Docker's image-update check, when §6.13 turned them + off. - **Three rules from `trinity` to `mediatv`, in force since 2026-10-19:** `10.0.99.40 → 10.0.40.40`, passing `3001/tcp` for Home Assistant's LG webOS integration and `9/udp` for the magic packet that wakes the TV, and diff --git a/docs/runbooks/build-the-backup-guest.md b/docs/runbooks/build-the-backup-guest.md index 675ad8b2..1a76bf05 100644 --- a/docs/runbooks/build-the-backup-guest.md +++ b/docs/runbooks/build-the-backup-guest.md @@ -230,8 +230,9 @@ this dataset and its children. That is the quota that counts the snapshots, not the reference-only one. Without it the datastore can grow into the whole of `erebor`, and fill the pool under the media library and `erebor/apps`. With it, a runaway PBS fills its own 4 TiB first. `golem`'s `df` then -reports that 4 TiB as the share's size, so `HostDiskCritical` fires on the -mount at 10% free rather than at 10% of the pool. Because the quota counts +reports the quota less what the snapshots hold as the share's size, because +NFS counts the snapshots as neither used nor free. `HostDiskCritical` fires +on the mount at 10% of that, not at 10% of the pool. Because the quota counts snapshots, space that garbage collection frees comes back only once the snapshots holding it age out, up to fourteen days later. Leave room for that: in November 2026 the dataset held about 1 TiB, about a quarter of the @@ -241,10 +242,14 @@ quota. Read it from the console: zfs get -H -o value quota erebor/pbs ``` -It prints `4T`, and on `golem`, `df -h /mnt/datastore/erebor` shows a size -of `4.0T`. +It prints `4T`. On `golem`, `df -h /mnt/datastore/erebor` shows a size of +4 TiB less the snapshots, so under `4.0T`, and its *Used* is the live data +alone. -> **Not yet done.** Decided 2026-11-24. The dataset had no quota from +> **Done 2026-11-25**, through `pool.dataset.update` from a session on the +> box. `zfs get quota` printed `4T`, with `1014G` used, `311G` of it by +> snapshots. On `golem`, `df -h` showed a size of `3.7T`, `703G` used and +> `3.1T` available. Decided 2026-11-24; the dataset had no quota from > 2026-10-03 until then. ## 4. The pass on `morpheus` diff --git a/docs/runbooks/build-the-nas.md b/docs/runbooks/build-the-nas.md index 3493ff6a..900efde0 100644 --- a/docs/runbooks/build-the-nas.md +++ b/docs/runbooks/build-the-nas.md @@ -636,6 +636,9 @@ ls -1 /mnt/erebor/apps/.zfs/snapshot/ > host is still refused on `445`, and the #223 tripwire on `igc0.40` still > reads 0 packets. It is the sixth pass that exists, so Audiobookshelf's > `13378` will be the seventh. +> +> **Since 2026-11-25 `bilbo` reads and no longer writes.** *Make `bilbo` +> read-only* below replaced the `builtin_users` entry with one for `samwise`. **Shares → Windows (SMB) → Add**, pointed at `erebor/media`. @@ -722,7 +725,16 @@ on the order of the steps, not on the ACL. results. Then change §5's note and `security.md`'s `445` paragraph from *decided* to *done*, in one commit. -> **Not yet done.** Decided 2026-11-13. +> **Done 2026-11-25**, through the API rather than the UI, from a session on +> the box: `filesystem.setacl` on `/mnt/erebor/media`, recursive, without +> traversing into other datasets. Step 1 read the five entries it names. The +> ACL now reads `owner@` Full Control, `group@` Modify, `samwise` (uid +> `3002`) Modify, `builtin_administrators` Full Control and `everyone@` Basic +> Read, all Inherit, and a file in `movies/` carries the same five. Step 4, +> from a Hicks workstation as `bilbo`: reading `movies/BigBuckBunny.mp4` +> succeeded and the write was refused, *Access to the path … is denied*. +> Step 5, as `samwise`: the write and the delete both succeeded. Step 6: +> Jellyfin played, on a television, a title that was in the library before. ## §5b — The ISO store, for `Saruman` @@ -2342,7 +2354,16 @@ the registries its pulls come from. All of it was decided 2026-11-24. `security.md`'s CasaBonita paragraph, which names this section, into the past tense in the same commit. -> **Not yet done.** Decided 2026-11-24. +> **Done 2026-11-25**, through `midclt` from a session on the box rather than +> the UI. Step 1: no television opens the share over SMB; they play through +> Jellyfin. The only SMB session open beforehand was `samwise`'s, from a +> Hicks workstation. Step 5 printed `['10.0.50.0/24'] True False`, +> `{'netbios': False, 'mdns': False, 'wsd': False}` and `False`. Step 6: from +> a Hicks workstation the `samwise` mount wrote and deleted a file and the UI +> answered `200` over HTTPS; on the box, Jellyfin, Navidrome and +> Audiobookshelf answered their health endpoints; `up{instance="smaug"}` read +> `1`. From Hicks, `80` times out: no Hicks pass names it, so HTTPS is the +> only way to the UI from there. ## §7 — Verify @@ -2437,8 +2458,7 @@ the registries its pulls come from. All of it was decided 2026-11-24. snapshot task keeping fourteen. **Done 2026-10-03**: all three exist, and `golem` has made its datastore on the share ([`build-the-backup-guest.md`](build-the-backup-guest.md)). **A 4 TiB quota - on it was decided 2026-11-24** and is not yet set. That runbook's §3 is the - step. + on it**, decided 2026-11-24, was set 2026-11-25 by that runbook's §3. - **Offsite** — owned, since 2026-09-20. §6.2 gets the media tier's state off `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 diff --git a/docs/security.md b/docs/security.md index ec09b8a4..a72b4963 100644 --- a/docs/security.md +++ b/docs/security.md @@ -395,13 +395,11 @@ and `erebor/media` is not snapshotted. The library is replaceable (ADR-0008), so this is accepted. What limits it is the user: `samwise` is a second SMB user, typed on workstations and never stored on a television, so the televisions' `bilbo` and the workstations' credential are revoked apart. -Both can still write the library today, through the preset's `builtin_users` -Modify entry. +Only `samwise` can write the library. Since 2026-11-25 [ADR-0134](adr/0134-make-the-televisions-smb-user-read-only-on-the-media-share.md) -makes `bilbo` read-only and grants write to `samwise` by name; -[`build-the-nas.md`](runbooks/build-the-nas.md) §5 *Make `bilbo` read-only* -is the change, and it is not yet done. The -same pass puts an SMB login prompt in front of everything on Hicks, the +has made `bilbo` read-only and granted write to `samwise` by name, by +[`build-the-nas.md`](runbooks/build-the-nas.md) §5 *Make `bilbo` read-only*. +The same pass puts an SMB login prompt in front of everything on Hicks, the corporate laptop included, as `443` already puts the TrueNAS one. **One more is from ImaginationLAN, and it exists.** `10.0.30.20 → 10.0.40.30:2049`, `Allow NFS from Saruman to smaug`, lets the @@ -527,24 +525,25 @@ read-only audit of 2026-11-13 listed it. Each port, and what stands in its place of a firewall rule: - **`22`**: `sshd` offers `publickey` alone, since 2026-11-24. -- **`80` and `443`**: the web UI, with no allowlist and no redirect until - [`build-the-nas.md`](runbooks/build-the-nas.md) §6.13 sets both. Then only - Hicks' addresses get the UI. The allowlist is a check on the source - address, but a television cannot complete a TCP connection while claiming - a Hicks address, because the replies route off the segment. +- **`80` and `443`**: the web UI. Since 2026-11-25 + [`build-the-nas.md`](runbooks/build-the-nas.md) §6.13 has set an allowlist + and an HTTPS redirect, so only Hicks' addresses get the UI. The allowlist + is a check on the source address, but a television cannot complete a TCP + connection while claiming a Hicks address, because the replies route off + the segment. - **`139` and `445`**: the `media` share, behind an SMB login. The - televisions hold `bilbo`'s credential anyway. What it can do is - [ADR-0134](adr/0134-make-the-televisions-smb-user-read-only-on-the-media-share.md)'s - subject. + televisions hold `bilbo`'s credential anyway, and since 2026-11-25 it + reads and cannot write + ([ADR-0134](adr/0134-make-the-televisions-smb-user-read-only-on-the-media-share.md)). - **`111` and `2049`**: NFSv4, whose two exports name `10.0.30.20` and `10.0.30.80`. A host on CasaBonita is neither, and cannot claim to be, for the same reason as for the UI. - **`4533`** is Navidrome, behind its own login, and **`8096`** is Jellyfin, which the televisions are there to reach. -- **NetBIOS, mDNS and WS-Discovery** announce the host, its name `truenas` - and its share to the segment until §6.13 turns them off. +- **NetBIOS, mDNS and WS-Discovery** announced the host, its name `truenas` + and its share to the segment until §6.13 turned them off on 2026-11-25. -Accepted while the televisions share the segment, and narrowed by §6.13. The +Accepted while the televisions share the segment, as §6.13 narrowed it. The alternative is a segment of `smaug`'s own, which would put every television stream through the firewall.