Skip to content

docs(range): write gandalf's 2026-11-22 audit fixes into the runbook - #1646

Merged
Gerrrt merged 2 commits into
mainfrom
gerrrt/gandalf-audit-2026-11-22
Nov 23, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
gerrrt/gandalf-audit-2026-11-22

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What changed

Docs only. This writes the fixes from the 2026-11-22 audit of gandalf into build-the-playground.md, adds a security.md row, and records the audit in the changelog. Nothing changes on a host until the runbook steps are run on gandalf, and the docs say so at each step.

  • §2: ip-forward off and ip6-forward off on vmbr0. A netdev ingress table, vmbr1_host_in, loaded from vmbr1's post-up. It drops every frame the bridge passes up to the host, ARP included, and leaves guest-to-guest traffic alone.
  • §4: X11Forwarding no and AllowTcpForwarding no in 10-keys-only.conf. A new Nothing else on gandalf section removes the dotfiles install, 1password-cli, gh, Go, and the 1Password and Charm apt repos.
  • §7: the per-session read-back checks all of the above.
  • §8: check four proves the ingress table from a target. The stale "until 902 is rebuilt" note is updated.

Why

A read-only audit of gandalf on 2026-11-22 found containment holding (bridge, NAT, firewall, AMT, and ragnarok's scope proved with a refused send). It also found four gaps:

  • vmbr0 forwarding: vmbr0 had IPv4 and IPv6 forwarding = 1 while the global flag was 0.
  • The host firewall was the only barrier: Linux answers ARP for 10.0.30.30 on vmbr1 and accepts packets for it there, so only the Proxmox firewall kept a rooted target off the host, and nothing watches that firewall.
  • SSH forwarding: sshd allowed X11 and TCP forwarding.
  • Workstation tooling: the range hypervisor carried a personal workstation's tooling and two third-party apt repos with root trust.

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

gandalf only, 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 from ragnarok. §8 check four tests exactly that: a target must still answer ragnarok's ping. The ip-forward lines are ifupdown2's own attribute, and their proof is a reboot plus §2's read-back, the lesson of #1644.

  • No change to network segmentation or firewall rules. Nothing on morpheus or in a VLAN's rules changes. On gandalf the change only removes reach.
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • make validate passes. It was not run, because this Mac has no docker daemon. What ran:
    • python3 scripts/check_docs.py: docs OK.
    • markdownlint-cli2 0.24.1 (the pinned version, through npx): 0 issues across 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.
  • Deployed to the lab and confirmed working. Not yet. Each new step is marked Not yet applied on gandalf.
  • Docs updated

The findings come from read-only reads of gandalf from 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

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>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 01:24
@Gerrrt
Gerrrt enabled auto-merge (squash) November 23, 2026 01:25

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.

🟡 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

Comment thread docs/runbooks/build-the-playground.md Resolved
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>
@Gerrrt
Gerrrt merged commit 9a5e8ba into main Nov 23, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/gandalf-audit-2026-11-22 branch November 23, 2026 01:44
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