Repository navigation
docs(heimdall): a host firewall, a console that asks for the password, no radio and no unused apps - #1745
Merged
Conversation
…, no radio and no unused apps A full re-check of heimdall found the first audit's fixes in place and five gaps a second audit could raise: an empty nftables ruleset, an autologin shell on tty1, a getty on the debug UART, the Bluetooth radio still up, and Firefox and VLC installed for nothing. build-heimdall.md §2 now closes each, with the firewall loaded live before it is enabled at boot, and §9 undoes them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le-and-firewall # Conflicts: # docs/changelog.md
Gerrrt
marked this pull request as ready for review
November 25, 2026 18:09
This was referenced Nov 25, 2026
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
build-heimdall.md§2 gains three subsections for the five hardening gaps a full re-check ofheimdallfound, with undo steps in §9:No radio and no unused desktop apps:
dtoverlay=disable-bt, andapt purge --autoremove firefox vlc.Nothing at the console but a login:
tty1autologin drop-in, so the text console asks for the password. The desktop's lightdm autologin onvt7stays.serial-getty@ttyAMA10.A firewall that admits only those two: an
nftablesruleset that drops input except:10.0.99.20alone;It is loaded live first, and enabled at boot only after a new SSH login and the scrape both work. Until then, a power-cycle undoes it.
docs/security.md's paragraph on the Hicks pass now names the firewall, and the changelog records the change. Nothing is applied on the Pi yet: every step needs the operator's sudo password.Why
A read-only re-check on 2026-11-24 at 21:25 found every fix from the first audit in place. Another auditor could still raise these five:
nftablesis installed, but its ruleset is empty. The Pi stays at 22 and 9100 only because nothing else listens.tty1.atroposis logged in there at all times, so a keyboard gives the user without a password, though not root.hci0exists even thoughbluetooth.serviceis masked.None of them is reachable from the network today.
Blast radius
Only
heimdall, once the operator applies it. The repo change is docs only.The firewall is the step that can lock you out. That's why it is loaded live before it is enabled. If a new SSH login or the scrape fails, power-cycling the Pi brings it back without the ruleset.
morpheusalready limits to Hicks. 9100 only fromprometheus(10.0.99.20, on Winterfell), whose scrape crosses into Hicks through the onemorpheuspass.Removing the
tty1autologin ends that shell, not the kiosk.loginctlshows the desktop is lightdm's session onvt7.The Bluetooth overlay takes effect at the next reboot.
config.txtis backed up first.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.yamlThe first box is unticked because this adds a host firewall to
heimdall. It changes nomorpheusrule and no VLAN.Verification
On the Pi, read-only:
loginctlshows session 3 ontty1(Service=login) and the lightdm-autologin wayland session on VT 7.getty@tty1.service.d/autologin.confholds the--autologinline.cmdline.txthasconsole=serial0,115200, andserial-getty@ttyAMA10is active./sys/class/bluetoothholdshci0, and the overlays includedisable-bt.dtbo(README: "Disable onboard Bluetooth on Bluetooth-capable Raspberry Pis").nftables1.1.3 is installed and disabled, with an empty ruleset.10.0.99.20.The app purge:
apt-get -s purge --autoremove firefox vlclists 40 packages, all Firefox, VLC and their libraries.The ruleset, loaded on the Pi's own
nftinsideunshare -rn(a throwaway network namespace; the Pi's real ruleset was not touched): it loads, andnft list rulesetprints it back as written.Checks:
python3 scripts/check_docs.py:docs OK../scripts/lint.sh: everything that ran passed except ansible-lint, which fails the same way onmain(a localuvproblem). The Docker-based linters, including markdownlint, were skipped because this Mac has no Docker daemon.make validatepassesDeployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code