Repository navigation
docs(adr): ADR-0128, key-only sshd and no host firewall on prometheus, and trim its unused services - #1677
Merged
Conversation
…wall The audit's root-only reads found prometheus taking SSH passwords with X11 forwarding on and ufw inactive, on the host holding the CA key and the backup age key. Add the decision, the runbook step that applies it, a security.md row and a changelog entry. Not yet applied on the host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The no-host-firewall rationale misidentifies port 6514 as the ingest proxy and needs to describe Alloy’s actual controls: a pinned client certificate and source-address filtering.
1 open issue
What changed in this PR
This documentation-only PR records the decision to make SSH on prometheus key-only while retaining no host firewall. It adds the manual hardening procedure; no host changes have been applied yet.
Changes:
- Add ADR-0128 documenting the decision, rationale, and recovery path.
- Add SSH hardening and login verification steps to the rebuild runbook.
- Update security documentation, the changelog, and README ADR counts.
| File | Description |
|---|---|
| README.md | Update the documented ADR count to 128. |
| docs/security.md | Record the SSH risk and pending hardening decision. |
| docs/runbooks/restore-the-stack.md | Add key-only SSH setup and verification before restoring secrets. |
| docs/changelog.md | Record the decision and supporting audit observations. |
| docs/adr/0128-give-prometheus-a-key-only-sshd-and-no-host-firewall.md | Document SSH controls, firewall rationale, alternatives, and consequences. |
Review effort: Balanced
sshd -T reads no for all four settings, password and keyboard-interactive logins are refused, and a key login from Hicks succeeded after the reload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DR-0128 Port 6514 is not the ingest proxy's: it is Alloy's TLS syslog listener, fenced by morpheus's pinned client certificate and a sender list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ModemManager, udisks2, multipathd and bolt are masked and b43 is blacklisted on prometheus (audit finding 8); restore-the-stack.md gains the step so a rebuild repeats it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ey-only-sshd # Conflicts: # README.md
Gerrrt
added a commit
that referenced
this pull request
Nov 23, 2026
main's #1677 took ADR-0128 (prometheus's key-only sshd), so this PR's ADR moves to 0129, with every reference to it; prometheus's ADR-0128 links are left as main has them. README counts 129 ADRs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
ADR-0128 decides that
prometheus'ssshdtakes keys only, through a10-prometheus.confdrop-in that outranks cloud-init's, and that the host stays without a firewall, astrinitydoes.restore-the-stack.mdgains Makesshdkey-only, and step 0 of a rebuild runs it.security.mdgains a row for it, and the changelog records the root-only reads that led here. A third commit adds Trim what the laptop does not use to the same runbook:ModemManager,udisks2,multipathdandboltare masked, and the unused Wi-Fi'sb43driver is blacklisted. That step was also applied on 2026-11-23; afterwards no unit had failed, no target was down and the NIC stayed up. The step was applied onprometheuson 2026-11-23, and the second commit records that.Why
The 2026-11-13 audit's root-only reads, taken today, found
passwordauthentication yes,x11forwarding yesandufwinactive. This is the host that holds the CA key and the age key for every backup set.phoenix,trinity,heimdall,alexanderandodinalready take keys only. Docker's rules run ahead ofufw's for the published ports, so a firewall here would cover22alone. The ADR says why that is not worth a second tool.Blast radius
Docs, plus a step already applied by hand. It affects SSH logins to
10.0.99.20. Any machine without a key loses access, which is why the step proves each key login first and keeps a session open.secrets/*.sops.yamlVerification
python3 scripts/check_docs.py:docs OK, after correcting README's ADR count to 128../scripts/lint.sh: every check passed, including markdownlint and editorconfig, and none skipped.make validatewas not run, because this is a docs-only change.make validatepassesDeployed to the lab and confirmed working:
sshd -Treadsnofor all four settings, a password login and a keyboard-interactive login getPermission denied (publickey), and a key login from Hicks (10.0.50.90) succeeded after the reloadDocs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code