Repository navigation
fix(phoenix): key-only sshd and a default-deny ufw policy are applied - #1591
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
🟢 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
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
phoenixnow takes SSH keys only and drops inbound traffic by default, as ADR-0117 decided andbuild-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:laptop-01, not the HP Pavilion thatnetwork.mdcallslaptop-01.ttl=62, not 63.Why
phoenixowns the lab domain, and until today it took passwords from all of VLAN 30.Closes #1496.
Blast radius
phoenixonly. If the host change is wrong, SSH tophoenixfrom 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.phoenix's host firewall, as ADR-0117 decided.morpheusis unchanged.secrets/*.sops.yamlVerification
Before the change: 30 days of
sshd's journal showed logins from Hicks only.desktop-02used a password, so it got a key and logged in with it first.sshd -T: readsnofor password, keyboard-interactive and root login and for X11 forwarding. A fresh key login succeeds, and a password-only client getsPermission denied (publickey).ufw: default deny incoming and routed. It allows
22from10.0.50.0/24,22in onwg0from the tunnel's subnet, the tunnel's port (read fromwgon the host, not written down), and routing fromwg0out toens18.From Hicks: a key login works.
nc -zv -w 3 10.0.30.70 22fromalexandertimes out and is logged asUFW BLOCK. §4'scurllists 34 guests.phoenix-metricsandphoenix-alloystayupwith fresh samples.From the tunnel, with the MacBook on a hotspot:
172.31.0.2.ping 10.0.30.40answers atttl=62. A capture shows the reply returning throughmorpheus.AllowedIPswidened: 10/10 pings each to Winterfell, Hicks and CasaBonita failed.morpheus's filterlog has 10 blocks to each and no passes outside the lab.AllowedIPshas been restored.Local checks:
check_docs.pypasses.lint.shfails only on ansible-lint, from the Mac'suv tool runincompatibility (a tooling problem, unrelated to this change). packer, tofu and editorconfig-checker were skipped because the Mac has no Docker daemon. I did not runmake validate; CI runs the full suite.make validatepassesDeployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code