Repository navigation
docs(soc): make odin's sshd keys only, as alexander's is - #1539
Merged
Merged
Conversation
The 2026-11-13 audit of odin found sshd taking passwords and X11 forwarding, and sshd -T on 2026-11-15 confirmed both. build-the-soc-guest.md §2 now writes 10-homelab.conf, which sorts ahead of cloud-init's drop-in, with password, keyboard-interactive and root logins off and X11 forwarding off. §10 checks it with sshd -T, and security.md has a row for it. Every login in odin's journal since the build used a key. Not yet applied on odin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the SSH hardening documentation change.
No open issues 🎉
What changed in this PR
Documents key-only SSH hardening for odin, aligning the SOC guest’s setup with alexander. The procedure has not yet been applied; odin still accepts passwords.
Changes:
- Adds an SSH configuration drop-in disabling password, keyboard-interactive and root logins, plus X11 forwarding.
- Adds fresh-connection login probes and an
sshd -Tverification step. - Records the security posture and distinguishes the documentation change from deployment.
| File | Description |
|---|---|
| docs/security.md | Describes odin’s SSH exposure and pending hardening. |
| docs/runbooks/build-the-soc-guest.md | Adds key-only SSH setup and verification instructions. |
| docs/changelog.md | Records the new procedure as not yet deployed. |
Review effort: Balanced
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-the-soc-guest.md§2 gains SSH: keys only, the same stepalexander's §2 has. It writes/etc/ssh/sshd_config.d/10-homelab.confwith password, keyboard-interactive and root logins off and X11 forwarding off, then proves from Hicks that a password is refused and a key still works. §10 checks it withsshd -T.security.mdgains a row forodin's SSH, and the changelog records the change.The step has not been run on
odin. Until it has,odinkeeps taking passwords.Why
The read-only audit of
odinon 2026-11-13 foundsshdofferingpublickey,password. With sudo on 2026-11-15,sshd -Treadpasswordauthentication yesandx11forwarding yes.odinholds the SOC's CA key and its own age key, and itssshdanswers all of VLAN 30, with no host firewall. This brings it into line withalexander,garuda,fenrir,gandalfandoracle.Blast radius
odin's SSH only, and only once the step is run. Every SSH login toodinin its journal since September was by key (114, from five addresses, all asbarnabas), so turning passwords off locks no one out. The runbook keeps a session open while the change is made.secrets/*.sops.yamlVerification
python3 scripts/check_docs.pypassed../scripts/lint.shpassed with 4 checks skipped, because their tools aren't installed onodin: yamllint, ruff (twice) and ansible-lint. The fullmake validatewasn't run onodin, because it pulls about 24 GB of images onto a 46 GB root disk; CI runs it.make validatepassesdocs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code