Skip to content

docs(sensor): install the weekly image prune from fenrir's runbook - #1581

Merged
Gerrrt merged 1 commit into
mainfrom
docs/sensor-runbook-prune-images
Nov 19, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
docs/sensor-runbook-prune-images

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What changed

build-the-sensor-guest.md §4 now installs homelab-prune-images on fenrir with --only prune-images. schedule-maintenance.md names fenrir among the hosts the prune runs on. The changelog records that the seven leftover tool images on fenrir were removed today.

Why

A re-check of the sensor runbook against the box found the weekly prune on fenrir only because a full installer run had once put it there. §4 installed the archive prune and patch state by name, and not the image prune. So a sensor rebuilt from the runbook would have kept every superseded image on its 30 GB root. The seven lint and validate images (about 928 MB) were the last workstation-era residue a fresh audit would still find, and the 2026-11-17 re-check had left them for the 2026-11-23 prune.

Blast radius

Docs only. On fenrir, the only change made today was docker image rm of seven images no container used. The three sensor containers stayed up and healthy.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • On fenrir: docker ps -a showed only the alloy, socket-proxy and zeek images in use. docker image rm deleted 7, and docker system df now shows 1.711 GB of images with 0 B reclaimable. The three containers are still (healthy). homelab-prune-images.timer is installed there, Mondays 04:00.

  • On Saruman: guest-disk-state.prom carries fenrir's /, /boot and /srv/sensor-data. So the estate's guest disk rules, which schedule-maintenance.md names as what would show a failed prune, cover fenrir as written.

  • check_docs.py passes. lint.sh matches main on this Mac: ansible-lint FAILs from the Mac runner, and markdownlint-cli2, zizmor, packer, tofu and editorconfig-checker SKIP for lack of a docker daemon, so CI is the run that checks those.

  • make validate passes (not run in full on the Mac; see above)

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

fenrir had homelab-prune-images only because a full installer run once put
it there; §4 named the archive prune and patch state, not it, so a rebuilt
sensor would never clear superseded images. §4 now installs it, and
schedule-maintenance.md lists fenrir among its hosts. The changelog also
records removing the seven leftover tool images on fenrir today.

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

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 were identified for the documentation update clarifying weekly image pruning for fenrir.

No open issues 🎉

What changed in this PR

This docs-only PR makes weekly image pruning an explicit step when rebuilding fenrir, helping prevent superseded images from filling the sensor guest’s 30 GB root disk.

Changes:

  • Adds the targeted --only prune-images installation command to the sensor runbook.
  • Updates maintenance documentation to include fenrir and clarify guest disk alert coverage.
  • Records the removal of seven unused tool images and the runbook correction.
File Description
docs/​runbooks/​schedule-maintenance.md Includes fenrir among image-prune hosts and broadens the guest disk alert wording.
docs/​runbooks/​build-the-sensor-guest.md Adds weekly image-prune installation instructions and explains their purpose.
docs/​changelog.md Records the unused-image cleanup and documentation updates.

Review effort: Balanced

@Gerrrt
Gerrrt enabled auto-merge (squash) November 19, 2026 05:38
@Gerrrt
Gerrrt merged commit c28fc66 into main Nov 19, 2026
10 checks passed
@Gerrrt
Gerrrt deleted the docs/sensor-runbook-prune-images branch November 19, 2026 05:45
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