Skip to content

docs(adr): ADR-0128, key-only sshd and no host firewall on prometheus, and trim its unused services - #1677

Merged
Gerrrt merged 5 commits into
mainfrom
docs/adr-prometheus-key-only-sshd
Nov 23, 2026
Merged

Gerrrt merged 5 commits into
mainfrom
docs/adr-prometheus-key-only-sshd

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

What changed

ADR-0128 decides that prometheus's sshd takes keys only, through a 10-prometheus.conf drop-in that outranks cloud-init's, and that the host stays without a firewall, as trinity does. restore-the-stack.md gains Make sshd key-only, and step 0 of a rebuild runs it. security.md gains 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, multipathd and bolt are masked, and the unused Wi-Fi's b43 driver 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 on prometheus on 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 yes and ufw inactive. This is the host that holds the CA key and the age key for every backup set. phoenix, trinity, heimdall, alexander and odin already take keys only. Docker's rules run ahead of ufw's for the published ports, so a firewall here would cover 22 alone. 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.

  • 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

  • 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 validate was not run, because this is a docs-only change.

  • make validate passes

  • Deployed to the lab and confirmed working: sshd -T reads no for all four settings, a password login and a keyboard-interactive login get Permission denied (publickey), and a key login from Hicks (10.0.50.90) succeeded after the reload

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

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

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 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

Gerrrt and others added 3 commits November 23, 2026 17:50
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>
@Gerrrt Gerrrt changed the title docs(adr): ADR-0128, give prometheus a key-only sshd and no host firewall docs(adr): ADR-0128, key-only sshd and no host firewall on prometheus, and trim its unused services Nov 23, 2026
@Gerrrt
Gerrrt merged commit 6556444 into main Nov 23, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the docs/adr-prometheus-key-only-sshd branch November 23, 2026 18:24
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>
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