Skip to content

fix(phoenix): key-only sshd and a default-deny ufw policy are applied - #1591

Merged
Gerrrt merged 1 commit into
mainfrom
fix/phoenix-key-only-sshd-and-ufw
Nov 20, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
fix/phoenix-key-only-sshd-and-ufw

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 20, 2026

Copy link
Copy Markdown
Owner

What changed

phoenix now takes SSH keys only and drops inbound traffic by default, as ADR-0117 decided and build-the-jumpbox.md §6a describes. This PR records it: the current-state docs say it is applied, the roadmap entry leaves, and the changelog has the results. It also corrects two things the checks turned up:

  • The tunnel's one peer is the MacBook, whose WireGuard profile is named laptop-01, not the HP Pavilion that network.md calls laptop-01.
  • A ping through the tunnel answers at ttl=62, not 63.

Why

phoenix owns the lab domain, and until today it took passwords from all of VLAN 30.

Closes #1496.

Blast radius

phoenix only. If the host change is wrong, SSH to phoenix from Hicks or the tunnel breaks, or the tunnel stops forwarding. Every check below exercised those paths after the change. The docs change has no runtime effect.

  • No change to network segmentation or firewall rules. This does change one: it turns on phoenix's host firewall, as ADR-0117 decided. morpheus is unchanged.
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • Before the change: 30 days of sshd's journal showed logins from Hicks only. desktop-02 used a password, so it got a key and logged in with it first.

  • sshd -T: reads no for password, keyboard-interactive and root login and for X11 forwarding. A fresh key login succeeds, and a password-only client gets Permission denied (publickey).

  • ufw: default deny incoming and routed. It allows 22 from 10.0.50.0/24, 22 in on wg0 from the tunnel's subnet, the tunnel's port (read from wg on the host, not written down), and routing from wg0 out to ens18.

  • From Hicks: a key login works. nc -zv -w 3 10.0.30.70 22 from alexander times out and is logged as UFW BLOCK. §4's curl lists 34 guests. phoenix-metrics and phoenix-alloy stay up with fresh samples.

  • From the tunnel, with the MacBook on a hotspot:

    • A key login works and arrives from 172.31.0.2.
    • ping 10.0.30.40 answers at ttl=62. A capture shows the reply returning through morpheus.
    • §8, with AllowedIPs widened: 10/10 pings each to Winterfell, Hicks and CasaBonita failed. morpheus's filterlog has 10 blocks to each and no passes outside the lab. AllowedIPs has been restored.
  • Local checks: check_docs.py passes. lint.sh fails only on ansible-lint, from the Mac's uv tool run incompatibility (a tooling problem, unrelated to this change). packer, tofu and editorconfig-checker were skipped because the Mac has no Docker daemon. I did not run make validate; CI runs the full suite.

  • make validate passes

  • Deployed to the lab and confirmed working

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

🤖 Generated with Claude Code

ADR-0117 is applied on phoenix: the 10-phoenix.conf sshd drop-in and
build-the-jumpbox.md section 6a's ufw rules. The current-state docs say so,
the roadmap entry leaves, and the changelog records the checks from Hicks,
alexander and the tunnel.

Also corrects the tunnel's peer (the MacBook, whose WireGuard profile is
named laptop-01) and the runbooks' expected ttl (62, through morpheus).

Refs #1496

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 04:50
@Gerrrt
Gerrrt enabled auto-merge (squash) November 20, 2026 04:51

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.

🟢 Approval recommended

No active review issues are reported for this documentation-only update recording the phoenix hardening rollout.

No open issues 🎉

What changed in this PR

This documentation-only PR records the application of ADR-0117 on phoenix, the lab’s deployment host and WireGuard endpoint, completing the work tracked by #1496.

Changes:

  • Marks key-only SSH and the default-deny host firewall as applied across current-state documentation.
  • Removes the completed roadmap entry and records deployment checks in the changelog.
  • Corrects the tunnel peer’s identity to the MacBook and updates the expected ping reply TTL to 62.
File Description
docs/​security.md Records the applied SSH restrictions and blocked VLAN 30 access.
docs/​runbooks/​open-the-remote-path.md Clarifies the peer’s identity and explains the measured TTL.
docs/​runbooks/​build-the-jumpbox.md Updates the tunnel verification’s expected TTL.
docs/​roadmap.md Removes the completed phoenix hardening task.
docs/​network.md Marks the host firewall policy as applied.
docs/​changelog.md Records hardening results, verification, and the peer-name correction.
docs/​architecture.md Records the host policy’s application date.

Review effort: Balanced

@Gerrrt
Gerrrt merged commit fcf3fa4 into main Nov 20, 2026
10 checks passed
@Gerrrt
Gerrrt deleted the fix/phoenix-key-only-sshd-and-ufw branch November 20, 2026 05:01
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.

Give phoenix a key-only sshd and a default-deny inbound policy

2 participants