Skip to content

feat: add verified manual Tailscale binary updates - #51

Merged
abruption merged 6 commits into
mainfrom
feat/tailscale-runtime-updater
Oct 26, 2026
Merged

abruption merged 6 commits into
mainfrom
feat/tailscale-runtime-updater

Conversation

@abruption

@abruption abruption commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #50. Adds a manual Tailscale binary updater for the existing Dots installation, separate from the dots-tailscale package updater.

  • dots-ts runtime check: compare installed version with the official stable metadata or an explicit version.
  • runtime apply --version ... --confirm-recovery-terminal: validate/stage the official archive (or an operator-trusted private bundle), then hand off to a frozen detached worker.
  • runtime status --id ...: bounded, sanitized transaction state, including uncertain acknowledgement/status and cleanup warnings.

The source package is identified as 0.6.0-dev. The default installation pin remains 1.102.4 so the tool itself can be bootstrapped through the existing code-only updater. No automatic update schedule is added; #31 remains the follow-up. This PR does not claim that 1.104.2 fixes Tailworm.

Safety and recovery contract

  • Fixed official HTTPS origin/current stable selection, explicit proxy/direct mode, checksum, bounded gzip/ustar parsing, strict path/type/entry/size checks, amd64 ELF and paired version probes.
  • Install the matching reviewed source bundle first; a new checkout cannot operate on an older unguarded installation.
  • Shared operation lock and persistent runtime fence protect startup, proxy operations and package mutations from an interrupted mixed-pair update.
  • Stage and back up both binaries before stopping the precisely identified daemon. Preserve shim/OpenSSH, existing state/SSH keys, socket, proxy/CA environment and public identity checks. Environment values stay in memory.
  • After candidate daemon execution is attempted, uncertain failure requires manual recovery; no automatic old-binary restart or state rollback is assumed safe.
  • A verified pair plus acknowledged terminal journal is the commit boundary. Subsequent fence/lock/log cleanup errors keep the verified daemon and terminal result; available warnings remain visible and block another runtime apply pending operator resolution.
  • Explicit English/Korean manual-resolution runbooks preserve records and distinguish pre-execution repair, same-candidate roll-forward, and committed cleanup. All four README/usage languages describe the development scope.

Verification

  • Exact candidate: 2ef1c77710bf00a7f14f901bda1440968bb30dc7.
  • Checks: Python 3.11 and 3.13 each completed 327 tests, including 71 runtime fixtures, plus manifest and shell checks.
  • Isolated artifact smoke: official 1.102.4/1.104.2 archive checksums and actual CLI/daemon version outputs verified in read-only, network-disabled scratch containers without host/state mounts. The parser/probe path remains unchanged by the later status/cleanup corrections.
  • Regression coverage includes malformed/oversized/link/traversal archives, real official systemd extras, private bundle ownership, stale temporary files, output/ack uncertainty, preserved identities/state fixtures, pre-/post-execution rollback boundaries, and real operation-lock/log-descriptor close failures. Daemon lifecycle is mocked.

Independent CLI review — completed before PR creation

Claude Code 2.1.310, requested and response-confirmed claude-opus-5-5, and Codex CLI 0.164.0, isolated default model with --ignore-user-config (actual model name not exposed), reviewed identical hash-frozen inputs in separate parallel processes.

Full reviews and focused follow-ups addressed required findings before publication of this PR. The final two reviews both report no unresolved required corrections. All CLI executions completed successfully; no reviewer performed tests, service/network actions or mutations. Final review input SHA-256: 814b46ccab07190ed26f9d3a24db0483b510d790cef2a4a404af332fe808f224. Private evidence and raw final outputs are retained by the maintainer.

Deliberate limits / remaining validation

An operator-authorized normal-path trial on 2026-10-26 successfully applied the reviewed code and upgraded an existing Dots node from Tailscale 1.102.4 to 1.104.2. Fresh external SSH/ping recovery and identity preservation were checked. See the dated validation record. No failure injection, state downgrade/rollback trial, VM replacement, release publication or broad timing/compatibility guarantee is claimed. The following documentation-only commit does not change the tested executable sources or manifest. Same-origin checksums are consistency checks, not independent publisher-signature authentication. Old tool copies do not honor new fences and must not be used during recovery. Compound pre-commit cleanup errors can still result in generic diagnostic codes; additional diagnostic specificity and combinatorial coverage are non-blocking follow-ups.

Related #20 (live execution/lifecycle), #31 (future opt-in automation), #44 (recovery coordination).

@abruption abruption added this to the v0.6.0 milestone Oct 26, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T04:39:20.593233Z 2ef1c77 PR opened
🔒 Security Review ✅ Completed 2026-10-26T04:42:29.990215Z 2ef1c77 PR opened
ℹ️ 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

Copy link
Copy Markdown
Owner Author

Live Dots update test completed — 2026-10-26

Tested code: 2ef1c77710bf00a7f14f901bda1440968bb30dc7. The subsequent commit only records evidence/documentation; executable sources and source manifest are unchanged.

  • Installed package 0.4.0 → 0.6.0-dev through the existing verified package updater, then Tailscale CLI + daemon 1.102.4 → 1.104.2 through runtime apply using the online platform-proxy path.
  • Independent cloud GUI terminal control was verified before cutover; the recovery task was temporarily paused and restored afterward.
  • Runtime journal: applied/complete, no error/cleanup warning, no remaining fence. Both installed binary hashes match the official artifact.
  • Boot identity, public node identity and SSH host public key were preserved. Private-key inode/UID/mode metadata was unchanged without reading private-key contents. Shim and OpenSSH processes were preserved across the runtime cutover.
  • External SSH and relay ping each timed out in one sample at 13:55:08 KST and succeeded in the next sample at 13:55:13 KST. This is a sampling boundary, not an exact five-second downtime claim. All subsequent observer samples succeeded; additional fresh SSH checks and the GUI version display also confirmed 1.104.2.
  • Recovery task is enabled again and the monitor ACK confirms an active subscription and healthy delivery. No reauthentication or state/key recreation was needed.

The CLI's external_ssh=pending is deliberately left untouched: external verification is recorded separately. One successful transition does not validate rollback/state downgrade compatibility, failure injection, all future versions or VM replacement, and does not claim Tailworm remediation.

Full validation record: https://github.com/abruption/dots-tailscale/blob/f80d8972942d431af4cbb84f094f363b6a90bdf6/docs/validation/runtime-update-trial-20261026.md

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: add verified manual Tailscale binary updates

1 participant