Repository navigation
docs(runbooks): trim heimdall to a kiosk after its audit - #1708
Merged
Merged
Conversation
A read-only audit of heimdall found Chromium was never upgraded unattended: Raspberry Pi's archive was not an allowed origin. It also found the kiosk user had passwordless sudo, the Imager's seed files were still on the boot partition, rpcbind and avahi listened, eight reboots left no cause, and the kiosk had no respawn. build-heimdall.md now adds the Raspberry Pi origin, a nightly 04:30 reboot, a persistent capped journal, masks the unused services, removes the cloud-init sudoers file and seed files, turns off sshd forwarding, runs Chromium under lwrespawn, and reads Wi-Fi without iw. The changelog records the findings and corrects the entry that said the purge was still to run. The Pi has not been re-run yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-trim # Conflicts: # docs/changelog.md
markdownlint MD038 failed the Lint check on `/usr/bin/lwrespawn `. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The runbook omits sudo journalctl --flush after restarting journald, so rebooting can discard current-boot logs still stored in /run.
1 open issue
What changed in this PR
Updates heimdall’s build runbook to address audit findings and harden the wall-display Pi as a kiosk. These are documented procedures only; the new steps have not yet been applied to the Pi.
Changes:
- Adds Raspberry Pi package updates, nightly reboots, persistent logging, and Chromium crash recovery.
- Removes unnecessary services and boot seed files, requires a sudo password, and disables SSH forwarding.
- Records the audit and corrects the earlier changelog statement about the IPMI purge.
| File | Description |
|---|---|
| docs/runbooks/build-heimdall.md | Adds kiosk hardening, update and recovery procedures, verification, and rollback guidance. |
| docs/changelog.md | Records the audit findings and corrects the prior purge status without rewriting history. |
Review effort: Balanced
Restarting journald alone can leave the current boot's entries in /run, and §3's reboot would then lose them. Review on #1708. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gerrrt
enabled auto-merge (squash)
November 24, 2026 04:56
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-heimdall.mdnow trims the office wall Pi to a kiosk. It adds Raspberry Pi's archive to unattended-upgrades and a nightly 04:30 reboot so upgrades actually run. It keeps the journal on the card (capped at 64 MB) and masks rpcbind, avahi, CUPS and Bluetooth. It purges the unused remote-desktop packages and removes the Imager's passwordless-sudo file and its seed files on the boot partition. It turns off sshd's X11 and TCP forwarding, runs Chromium underlwrespawn, and reads Wi-Fi withoutiw.docs/changelog.mdrecords the audit and corrects the 2026-11-23 entry that said the IPMI purge was still to run.Applied to
heimdallon 2026-11-23, every step except removing90-cloud-init-users, which needs the operator's password. A reboot at 21:26 confirmed them: Wi-Fi up without the seed files, the wall page underlwrespawnat 1080p, the journal keeping two boots, only 22 and 9100 listening, nothing failed,up1.Why
A read-only audit of
heimdallon 2026-11-23 found:archive.raspberrypi.com, and 10 such upgrades were pending, Chromium among them. ADR-0119 and §2 relied on this.Judgement calls for review:
nfs-commonandcups, because the desktop's metapackages depend on them.Blast radius
heimdallonly (Hicks,10.0.50.15), and only once the runbook is re-run there. The worst case is the sudo step with a wrong password; the runbook holds a root shell open for exactly that. The nightly reboot darkens the wall for about a minute at 04:30.InstanceDownalready excludesrole="display", so nothing pages.secrets/*.sops.yamlVerification
python3 scripts/check_docs.py:docs OK../scripts/lint.sh: yamllint, shellcheck, ruff and actionlint pass. markdownlint, zizmor, packer, tofu and editorconfig-checker were skipped (no Docker daemon on the Mac). ansible-lint failed on a localuv/pip-args tool error unrelated to this change. CI runs them all.Facts the steps rely on were read from the Pi, read-only:
apt-cache policyshowso=Raspberry Pi Foundation,n=trixie.40-rpi-volatile-storage.confsetsStorage=volatile./usr/bin/lwrespawntakes a command and its arguments.rpd-commonneedsnfs-common, the printer drivers needcups, and nothing needsrealvnc-vnc-server,wayvncorrpi-connect.node_boot_time_secondsonprometheus.make validatewas not run (it needs about 38 GB of images).make validatepassesDeployed to the lab and confirmed working (applied and confirmed across a reboot, bar the sudo step)
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code