diff --git a/docs/changelog.md b/docs/changelog.md index 837d2349..ead2bf78 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,17 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-18 +- **`fenrir` sheds the last of its audit's leftovers.** The audit of + 2026-11-13 listed, as its finding 10, `atreus` in `lxd` with no LXD + installed, an idle `docker0` and the `hwctl` snap, and called them + optional. "The sensor stack's memory limits are measured", below, left + them open. Today `atreus` left `lxd`, and `hwctl` was removed with + `--purge`; its socket, `snap.hwctl.hwctl-daemon.hwctl-socket`, had been + listening as root. `snap list` now shows only `core24` and `snapd`. + `docker0` stays, because the Docker daemon recreates it at every start. + `build-the-sensor-guest.md` §3 now takes both out, so a rebuilt sensor does + not carry them. Of the audit's next steps, a drift check for `fenrir` is the + one left. - **The sensor stack's memory limits are measured, and Zeek's halves to 2048m.** The audit of 2026-11-13 asked for the bounds its compose comments said to re-derive after a fortnight. The lab's Prometheus keeps only the diff --git a/docs/runbooks/build-the-sensor-guest.md b/docs/runbooks/build-the-sensor-guest.md index b7613138..21741880 100644 --- a/docs/runbooks/build-the-sensor-guest.md +++ b/docs/runbooks/build-the-sensor-guest.md @@ -338,6 +338,22 @@ sudo journalctl -u ssh --since -30d | grep -o 'Accepted publickey .* SHA256:[^ ] Remove every key that is not the operator's workstation, or a host this repository logs in from (Hicks, for §4's `install-agent-collectors`). +**Take out what the install adds that an appliance does not use.** cloud-init +puts the first user in `lxd`. LXD is not installed, but membership of `lxd` is +root as soon as it is. And 26.04 installs the `hwctl` snap, whose daemon +listens on a socket as root. Neither is anything the sensor runs: + +```bash +sudo gpasswd -d atreus lxd +sudo snap remove --purge hwctl +id -nG atreus +snap list +``` + +`id` must not list `lxd`, and `snap list` must show only `core24` and +`snapd`. Leave those two, and Docker's idle `docker0`, which the daemon +recreates at every start. + ## 4. Docker, the repository, and the stack Install Docker, `sops`, `age` and `make`, and clone the repository, as