Skip to content

docs(saruman): record the 2026-11-13 audit, and a runbook to close what it found - #1515

Merged
Gerrrt merged 4 commits into
mainfrom
docs/saruman-audit-2026-11-13
Nov 25, 2026
Merged

Gerrrt merged 4 commits into
mainfrom
docs/saruman-audit-2026-11-13

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

What changed

Records the read-only audit of Saruman from 2026-11-13. The new runbook, harden-saruman.md, covers each finding: key-only sshd with X11 forwarding off, TOTP on root@pam, removing the undeclared phoenix@pve!builder2 token, the apt sources the host needs, rpcbind off, and the /root leftovers and old kernels. Since 2026-11-25 §1, §3, §4 and §6 are applied on Saruman and checked, and §5 is applied with its reboot check owed. §2, TOTP on root@pam, is the operator's. A 2026-11-25 changelog entry records each check. security.md now says the firewall admits 8007 from Hicks, as ADR-0014 and network.md already do, and names the password and second-factor gap behind the firewall. The changelog records the audit. README's runbook count goes from 54 to 55.

Why

The audit found sshd taking root's password, no second factor on 8006, and an API token with full builder rights that nothing declares. The repo stated no policy for any of these. ADR-0107's Saruman half is the separate PR #1494. Refs #574.

Blast radius

Docs only in this PR. The runbook's sections were run on Saruman by hand on 2026-11-25, as the changelog entry records.

  • 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

scripts/check_docs.py: docs OK. scripts/lint.sh passed with 14 checks skipped: no Docker daemon or pipx, so markdownlint was not run locally either.

  • make validate passes (docs only, so I ran check_docs.py and lint.sh, as above)
  • Deployed to the lab and confirmed working (§1, §3–§6 on Saruman; §2 and §5's reboot check outstanding)
  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

…at it found

A read-only audit of Saruman found sshd taking root's password, no second
factor on root@pam, an undeclared token phoenix@pve!builder2, third-party
apt sources, rpcbind on every address and leftovers in /root.
harden-saruman.md holds the fix for each, none applied yet. security.md now
says the firewall admits 8007 from Hicks, as ADR-0014 and network.md do, and
names the gap behind the firewall. The changelog records the audit, and
corrects its own Ceph claim: Proxmox depends on ceph-common and ceph-fuse.

Refs #574

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

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 runbook’s TFA recovery command omits the required factor ID, and disabling rather than masking rpcbind allows dependencies to reopen port 111 after reboot.

2 open issues
What changed in this PR

Records the 2026-11-13 audit of Saruman, the lab hypervisor, and adds a hardening runbook. These steps are not yet applied; the UPS shutdown changes are tracked separately in PR #1494.

Changes:

  • Documents SSH and two-factor authentication hardening, API-token removal, and package, service, and file cleanup.
  • Corrects the documented firewall allowance and records the remaining authentication gaps.
  • Adds the audit record and updates README’s runbook count to 55.
File Description
README.md Updates both runbook counts to 55.
docs/​security.md Adds port 8007 to the documented allowance and notes pending authentication hardening.
docs/​runbooks/​harden-saruman.md Adds hardening procedures, recovery guidance, and verification steps.
docs/​changelog.md Records audit results, documentation corrections, and deferred decisions.

Review effort: Balanced

Comment thread docs/runbooks/harden-saruman.md Resolved
Comment thread docs/runbooks/harden-saruman.md Resolved
@Gerrrt
Gerrrt enabled auto-merge (squash) November 15, 2026 23:07
Gerrrt and others added 3 commits November 24, 2026 18:31
Resolves the conflicts in README.md (57 runbooks), docs/security.md
(row 19 on main's table) and docs/changelog.md (the audit entry is
filed under 2026-11-24, the day it lands, and says the box was re-read
then). harden-saruman.md §6 now lists /root/fullchain.pem, and says to
keep proxmox-kernel-6.8 and the 6.8 kernel proxmox-boot-tool selects.

Refs #574

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eboot check

Merges origin/main (README now 134 ADRs and 57 runbooks; security.md
row 19 rebuilt on main's table). On 2026-11-25 §1, §3, §4 and §6 were
applied on Saruman and their checks passed; §5 is applied and its
reboot check is owed; §2 (TOTP on root@pam) is the operator's. The
runbook's status line, security.md row 19 and a changelog entry say so.

Refs #574

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review on #1515: harden-saruman.md §5 now masks rpcbind.socket and
rpcbind.service as well as disabling them, as build-the-playground.md
does, since nfs-common stays for the ISO mount. Applied on Saruman the
same day; a fresh NFSv4 mount with both masked succeeded. §2 lists the
factors and deletes one by --id, and says no --id deletes them all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit ff7749e into main Nov 25, 2026
10 checks passed
@Gerrrt
Gerrrt deleted the docs/saruman-audit-2026-11-13 branch November 25, 2026 03:05
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