Skip to content

docs(sensor): take atreus out of lxd and remove the hwctl snap - #1576

Merged
Gerrrt merged 1 commit into
mainfrom
docs/fenrir-install-leftovers
Nov 19, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
docs/fenrir-install-leftovers

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What changed

  • docs/runbooks/build-the-sensor-guest.md §3: a new step after authorized_keys. It takes the first user out of lxd and removes the hwctl snap with --purge, and says what id -nG and snap list must show afterwards.
  • docs/changelog.md: a 2026-11-18 entry recording the same done on fenrir, which closes the audit's finding 10.

Why

The audit of 2026-11-13 listed these as finding 10. Membership of lxd is root as soon as LXD is installed. hwctl is a snap 26.04 installs by default, and its socket, snap.hwctl.hwctl-daemon.hwctl-socket, was listening as root on an appliance that has no use for it. docker0 stays, because the Docker daemon recreates it at every start.

Blast radius

On fenrir, already applied: atreus left lxd and hwctl is gone. Nothing the sensor runs used either. Docs only in the repo. The other 26.04 guests' runbooks (alexander, odin, phoenix) are not touched, and whether they carry hwctl was not checked.

Verification

  • On fenrir, run by the operator: before, id -nG atreus listed lxd, snap list showed core24, hwctl and snapd, and the hwctl socket was active listening; after, no lxd, and only core24 and snapd.
  • From here afterwards: getent group lxd has no members, no snap.hwctl* unit file is left, no listening socket names hwctl, and the three sensor containers are healthy.
  • Locally: check_docs.py and the close-keyword check pass. lint.sh passes yamllint, shellcheck, ruff and actionlint (local binaries); it skips markdownlint-cli2, zizmor, packer, tofu and editorconfig-checker, which need a docker daemon the Mac lacks, and ansible-lint fails on the Mac's runner, which is environmental: no Ansible changes here. CI runs them all.

🤖 Generated with Claude Code

The audit's finding 10, done on fenrir: lxd membership is root once
LXD is installed, and hwctl's socket listened as root on an appliance
that has no use for it. Section 3 of the sensor runbook now does both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 19, 2026 01:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the documentation-only sensor build cleanup and changelog updates.

No open issues 🎉

What changed in this PR

This docs-only PR updates the sensor build procedure to remove unused privileges and software, and records the same cleanup already applied to fenrir.

Changes:

  • Add commands to remove atreus from lxd, purge the hwctl snap, and verify the results.
  • Record the audit cleanup in the changelog, including why docker0 remains and that drift checking is still outstanding.
File Description
docs/​runbooks/​build-the-sensor-guest.md Adds cleanup commands and expected verification results for rebuilt sensors.
docs/​changelog.md Records the completed cleanup on fenrir and the remaining audit follow-up.

Review effort: Balanced

@Gerrrt
Gerrrt merged commit e4ea3e2 into main Nov 19, 2026
10 checks passed
@Gerrrt
Gerrrt deleted the docs/fenrir-install-leftovers branch November 19, 2026 02:23
@Gerrrt Gerrrt mentioned this pull request Nov 19, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants