Skip to content

feat: add verified manual Tailscale binary updates #50

Closed

Description

@abruption

목적

Dots에 설치된 Tailscale CLI/daemon을 안전하게 갱신하는 전용 도구를 제공합니다. 향후 공식 버그픽스·보안 릴리스에 대응할 수 있도록, 버전 확인과 명시적 수동 적용을 먼저 구현합니다. 자동 설치는 #31의 후속 범위로 유지합니다.

배경과 현재 제약

이번 구현 범위

  • 설치 버전/최신 stable 조회와 정확한 대상 버전을 명시한 수동 적용, 지속 상태 조회.
  • 공식 배포 파일·checksum을 제한된 HTTPS/명시적 프록시 경로로 취득하거나 운영자가 준비한 로컬 bundle 사용.
  • archive 이름/경로/종류/개수/크기, hash, amd64 실행 파일과 버전 검증. 임의 URL·링크·경로 순회·부분 설치 거부.
  • 다운로드/검증을 daemon 중지 전에 완료하고 CLI/daemon 쌍을 함께 백업·교체. SSH 단절과 무관한 detached worker 및 지속 journal.
  • 기존 operation lock을 공유하고 중단된 교체를 시작/프록시/패키지 갱신 경로가 무시하지 않도록 차단 표식 사용.
  • state·SSH identity·인증·프록시 설정을 보존하고 같은 userspace/socket/state 환경으로 재시작.
  • 실행 전 실패는 검증된 기존 쌍으로 복구 가능. 새 daemon을 실행한 뒤에는 state 하위 호환성이 입증되지 않았으므로 자동 downgrade/state 복원을 보장하지 않으며 불확실한 실패는 수동 복구로 남김.
  • 외부 SSH·ping 확인과 로컬 readiness를 구분하고 독립 복구 터미널 확인을 필수로 요구.
  • 현 기본 TS_VERSION/자동 업데이트 활성화는 별도 검증까지 변경하지 않음. 기존 패키지 업데이트를 통해 새 도구 자체를 먼저 배포할 수 있어야 함.

완료 조건

  • check/apply/status와 안전한 stage·교체·오류 상태를 구현.
  • 위조/잘린/과대 archive, symlink·partial pair, downgrade, 중복 작업과 중간 중단, candidate 실패, identity 변경을 검증.
  • 영어·한국어 사용법과 나머지 README의 기능 범위를 일치시킴.
  • independent-cli-review의 Claude Code와 Codex CLI로 동일한 동결 입력을 독립 검토하고 필수 수정 해소 후에만 PR 생성.

관련: #31(선택적 자동 업데이트), #44(복구 조정), #20(실행 문맥/수명 주기). 실환경 바이너리 교체·자동 업데이트 활성화·릴리스 발행은 이번 PR 준비에 포함하지 않습니다.

Activity

  1. added this to the v0.6.0 milestone on Oct 26, 2026
  2. abruption commented on Oct 26, 2026

    @abruption
    OwnerAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions