Repository navigation
docs(sensor): take atreus out of lxd and remove the hwctl snap - #1576
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
🟢 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
atreusfromlxd, purge thehwctlsnap, and verify the results. - Record the audit cleanup in the changelog, including why
docker0remains 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
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
docs/runbooks/build-the-sensor-guest.md§3: a new step afterauthorized_keys. It takes the first user out oflxdand removes thehwctlsnap with--purge, and says whatid -nGandsnap listmust show afterwards.docs/changelog.md: a 2026-11-18 entry recording the same done onfenrir, which closes the audit's finding 10.Why
The audit of 2026-11-13 listed these as finding 10. Membership of
lxdis root as soon as LXD is installed.hwctlis 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.docker0stays, because the Docker daemon recreates it at every start.Blast radius
On
fenrir, already applied:atreusleftlxdandhwctlis 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 carryhwctlwas not checked.Verification
fenrir, run by the operator: before,id -nG atreuslistedlxd,snap listshowedcore24,hwctlandsnapd, and thehwctlsocket wasactive listening; after, nolxd, and onlycore24andsnapd.getent group lxdhas no members, nosnap.hwctl*unit file is left, no listening socket nameshwctl, and the three sensor containers are healthy.check_docs.pyand the close-keyword check pass.lint.shpasses 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, andansible-lintfails on the Mac's runner, which is environmental: no Ansible changes here. CI runs them all.🤖 Generated with Claude Code