Move production SSH behind Tailscale and close public port 22
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- ansible, github-actions
- Domain
- ci-cd, infrastructure, security
Research direction
Start by reading group_vars/production/main.yml and the deploy.yml workflow, then locate the production inventory and the DigitalOcean firewall and UFW configuration. Follow the rollout order in the issue, verifying SSH and Ansible access over Tailscale before removing public port 22. Done means production deploys work over Tailscale and port 22 is no longer publicly reachable.
Written by the indexing model from the issue text.
Description
The DigitalOcean firewall (wp-packages) limits TCP 80/443 to Cloudflare (#135), but TCP 22 is still open to the internet. SSH is key-only with fail2ban, so this is hardening rather than urgent, but closing it would leave no TCP port directly reachable on the droplet. That matters for kernel TCP bugs like CVE-2026-98432, which can be reached through any open port.
Setup
- Create a tailnet and invite everyone in
users(group_vars/production/main.yml): swalkinshaw, log1x, qwp6t - Write an ACL policy: admins →
tag:wp-packages-prod:22,tag:ci→tag:wp-packages-prod:22 - Create a tagged auth key for the server and an OAuth client for CI (
tag:ci, ephemeral nodes)
Changes
- Ansible: install Tailscale from its apt repo and join with the auth key (stored in the vault), tagged
tag:wp-packages-prod - Keep OpenSSH and the existing
authorized_keys; UFW allows 22 ontailscale0only -
deploy.ymlworkflow: add thetailscale/github-actionstep before Ansible runs (pin to a commit SHA) - Point
ansible_hostat the Tailscale MagicDNS name in the local inventory and thePROD_INVENTORY_YML_B64secret
Rollout order (to avoid a lockout)
- Join the server to the tailnet with public 22 still open
- Verify SSH and Ansible over Tailscale from an admin's machine
- Run a deploy from GitHub Actions over Tailscale
- Only then delete the TCP 22 rule from the DigitalOcean firewall and the public
ufw allow 22
Tailscale only makes outbound connections, so no inbound rule is needed for it. If Tailscale ever breaks, the fallback is DigitalOcean's web console for the droplet.
- Dominant language
- Go
- Stars
- 146
- Forks
- 9
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from roots/wp-packages
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
roots/wp-packages#116 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
roots/wp-packages#136 ·
-
enhancement
Difficulty 3/5 Half a day Newbie friendliness 45/100
roots/wp-packages#133 · 5 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
roots/wp-packages#127 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 55/100
roots/wp-packages#122 · 1 comment ·
All issues in roots/wp-packages
Similar issues
-
affects-8.5 component/session severity/moderate sig/transaction type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
harvester/harvester#12311 · 1 comment ·
Maintainers usually reply within 1 day
-
verifyrun --bracket-digest --credit: relative --witness is could-not-check, absolute path creditsOpenbug effort:s impact:low raised-by:desk risk:low
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
medici-finance/assay#6580 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
blinklabs-io/gouroboros#3026 ·
Maintainers usually reply within 1 day