Skip to content

feat: allow SSH port selection for new installations - #91

Merged
abruption merged 2 commits into
mainfrom
feat/ssh-port-new-install
Nov 15, 2026
Merged

abruption merged 2 commits into
mainfrom
feat/ssh-port-new-install

Conversation

@abruption

Copy link
Copy Markdown
Owner

Closes #63.

New installations can explicitly select a loopback OpenSSH port with DOTS_TS_SSH_PORT=2222 ... install. The omitted option and existing generated installations retain port 22. One private installation setting drives preflight, generated sshd config, startup probes, doctor, source updates and runtime updates. Existing-port migration is deliberately unsupported.

The installer rejects invalid/reserved/proxy-conflicting or foreign-occupied ports before identity placement. Updates require compatible candidate declarations and unchanged configuration snapshots before replacing code. The package updater continues to restart only the shim; node state, SSH identity and SSH configuration are preserved. EN/KO/JA/ZH usage guides describe the same unreleased behavior.

Compatibility boundaries:

  • Custom sshd directives, unsafe file permissions/hardlinks and ambiguous paths now fail closed even on legacy port 22.
  • A published old updater cannot enforce the new configuration guard. The first upgrade requires the documented read-only precheck from an independently provenance-verified complete candidate, with old automatic updates held and no concurrent configuration edits. This does not retrofit atomic protection into old workers.
  • A late configuration change after the shim has stopped can require manual review; it does not trigger source replacement or overwrite configuration.

Validation:

  • Independent, separate read-only CLI reviews: Claude Opus 5.5 and Gemini 4 Argon Medium. Required findings were fixed and reviewed again; the last scoped review has no confirmed outstanding required code defect. Review input/tool/model metadata were checked. This is source review, not a live deployment test.
  • Local focused suites: SSH ports 39; installer 22 (3 portable passes, 19 Linux-only skips); source update 62 (one Linux-only skip); runtime update 76. ShellCheck, Bash syntax, manifest, pinned Python static checks and whitespace checks passed.
  • Linux Checks 43694574303: Python 3.11 and 3.13 each passed all 601 tests without skips; ShellCheck and Python static checks also passed. The validation report keeps historical Darwin baseline failures separate. No live Tailnet/port-opening/operating recovery test, version bump, release or deployment is included.

See docs/validation/ssh-port-new-install-20261115.md for findings, compatibility limits and test scope. Keep this PR as Draft pending maintainer review.

@abruption
abruption marked this pull request as ready for review November 15, 2026 12:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T12:28:52.866770Z efba48e Draft marked ready
🔒 Security Review ✅ Completed 2026-11-15T12:29:44.485159Z efba48e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit 78b9e3e into main Nov 15, 2026
9 checks passed
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.

feat: make SSH port configurable with backward-compatible defaults

1 participant