Repository navigation
docs(range): write gandalf's 2026-11-22 audit fixes into the runbook - #1646
Merged
Merged
Conversation
The second read-only audit found containment holding and four gaps. build-the-playground.md gains: - section 2: ip-forward off on vmbr0, and a netdev ingress table on vmbr1 so the host takes nothing from the range, ARP included; - section 4: X11 and TCP forwarding off in the keys-only drop-in, and "Nothing else on gandalf", which removes the dotfiles install and the third-party apt repos; - section 7: a read-back for each; - section 8: check four proves the ingress table, and the stale "until 902 is rebuilt" note is updated. security.md gains the row. The changelog records the audit, including the credential cleanup nothing had recorded. None of it is applied on gandalf yet. Refs #421. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The probe does not flush the cached neighbour entry before pinging, so it can falsely report a missing ingress table without testing a fresh ARP exchange.
1 open issue
What changed in this PR
This docs-only PR turns gandalf’s November 22 audit findings into range-hardening procedures. It distinguishes completed credential cleanup from changes still awaiting application and verification on the host.
Changes:
- Adds forwarding restrictions, host-bound ingress filtering, SSH restrictions, and tooling-removal steps.
- Extends per-session checks and target-side containment verification.
- Records the audit and documents the additional security barrier.
| File | Description |
|---|---|
| docs/security.md | Documents target-to-host isolation and pending hardening. |
| docs/runbooks/build-the-playground.md | Adds hardening procedures, read-back checks, and containment probes. |
| docs/changelog.md | Records audit results, completed cleanup, and unapplied fixes. |
Review effort: Balanced
4 of 6 tasks
A cached REACHABLE entry from an earlier probe would read as an unloaded vmbr1_host_in table and skip the ARP exchange the probe exists to test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 6 tasks
5 of 6 tasks
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 only. This writes the fixes from the 2026-11-22 audit of
gandalfintobuild-the-playground.md, adds asecurity.mdrow, and records the audit in the changelog. Nothing changes on a host until the runbook steps are run ongandalf, and the docs say so at each step.ip-forward offandip6-forward offonvmbr0. A netdevingresstable,vmbr1_host_in, loaded fromvmbr1'spost-up. It drops every frame the bridge passes up to the host, ARP included, and leaves guest-to-guest traffic alone.X11Forwarding noandAllowTcpForwarding noin10-keys-only.conf. A new Nothing else ongandalfsection removes the dotfiles install,1password-cli,gh, Go, and the 1Password and Charm apt repos.Why
A read-only audit of
gandalfon 2026-11-22 found containment holding (bridge, NAT, firewall, AMT, andragnarok's scope proved with a refused send). It also found four gaps:vmbr0forwarding:vmbr0had IPv4 and IPv6forwarding = 1while the global flag was0.10.0.30.30onvmbr1and accepts packets for it there, so only the Proxmox firewall kept a rooted target off the host, and nothing watches that firewall.sshdallowed X11 and TCP forwarding.The credential cleanup from the 2026-11-13 audit had happened on the box but was never recorded. The changelog entry now records it. Refs #421.
Blast radius
gandalfonly, once the steps are run. The ingress table is the one with a failure mode: if it hooked the wrong place, it could cut the targets off fromragnarok. §8 check four tests exactly that: a target must still answerragnarok's ping. Theip-forwardlines are ifupdown2's own attribute, and their proof is a reboot plus §2's read-back, the lesson of #1644.morpheusor in a VLAN's rules changes. Ongandalfthe change only removes reach.secrets/*.sops.yamlVerification
make validatepasses. It was not run, because this Mac has no docker daemon. What ran:python3 scripts/check_docs.py:docs OK.markdownlint-cli20.24.1 (the pinned version, throughnpx):0 issuesacross 211 files../scripts/lint.sh: ruff, yamllint, shellcheck and actionlint pass (the last two as local binaries, not the pinned ones). tofu, packer, zizmor and editorconfig-checker were skipped with no docker. ansible-lint FAILED on a local runner error (--pip-args contains '-c', which has no 'uv tool run' equivalent). This PR touches no Ansible.gandalf.The findings come from read-only reads of
gandalffrom Hicks:sysctl,nft list ruleset,sshd -T,dpkg -l,ls /etc/apt/sources.list.d. The netdev-ingress behaviour (sees only host-bound frames, not bridged ones) is from kernel design and has not been run yet. §8 check four is its proof.🤖 Generated with Claude Code