Repository navigation
Description
Request
Add a supported socket-aware CLI entry point and layered doctor diagnostics for the v0.3.0 release.
Context
The installation uses a per-user Tailscale socket. A reusable wrapper should make routine inspection and explicit CLI operations reliable without requiring users to repeat the binary and socket paths. Earlier documentation work in #7 covers address lookup and first SSH access; this issue adds a maintained CLI and diagnostic interface rather than reopening that documentation fix.
This is a proposed enhancement, not a report that the new interface has been implemented or tested.
Requested changes
- Provide an entry point that invokes the installed Tailscale binary with the correct per-user
--socket, preserves arguments, exit status, standard input/output, and signals. - Keep bounded timeouts for short management/diagnostic calls. Do not apply the existing 20-second management timeout to interactive, streaming, or other long-lived CLI commands.
- Make
doctordistinguish installation files, component processes, local socket/API responsiveness, tailnet backend/authentication state, and actual destination-service reachability. - Report each layer separately. Existing files, a running daemon, or a healthy local socket must not imply that a remote service works.
- Default to read-only local checks. Any target-specific connectivity probe must be explicitly requested, bounded, and non-intrusive; do not automatically scan peers, authenticate to applications, change settings, restart services, or send arbitrary API requests.
- Redact credentials, auth URLs/tokens, proxy credentials, and sensitive identity/network details from shareable diagnostic output. Explain skipped or unavailable checks.
- Document the interface and output consistently in English and Korean.
Acceptance criteria
- Correct binary/socket selection works when no global Tailscale binary or default socket is available.
- Argument forwarding, exit codes, standard streams, interruption, and a command lasting more than 20 seconds have regression coverage.
- Missing files, stopped components, an unresponsive socket, logged-out/offline backend, and an unreachable explicitly selected service produce distinct actionable results.
- Default diagnostics make no intrusive remote probes or live configuration changes.
- Redaction tests cover sensitive output and logs.
- Isolated tests and authorized live validation are recorded with their exact scope; unrun checks remain explicit.
Scope
CLI and diagnostics only. Serve, Aperture, NAS recipes, full-device VPN routing, and exit-node support are outside v0.3.0 scope. Existing exit-node findings remain tracked separately in #16.
Activity
abruption commentedon Oct 17, 2026
Priority and research inputs — 2026-10-18
Priority: medium, milestone v0.3.0. Implementation can begin with the findings from #20/#18 and should provide the diagnostic interface those features use.
Today's SSH check found a healthy per-user socket and Running backend, while ordinary system DNS could not resolve a designated peer's short name or FQDN. A bounded
tailscale ncprobe returned that peer's SSH greeting for both names. Doctor should distinguish system resolution, daemon resolution/TCP reachability, SSH authentication and application success rather than report one undifferentiated network failure.Additional concrete states to represent:
Keep default checks local/read-only; destination probes remain explicit and bounded. No new doctor implementation or authentication test was performed here.
abruption commentedon Oct 19, 2026
Completed in PR #24 and published in v0.3.0. Offline CI and authorized live CLI/proxy/HTTPS/policy checks are documented in the PR. Remaining startup/context/version/update improvements are tracked separately in #25–#31; lifecycle research continues in #20. Retaining this issue in its shipped v0.3.0 milestone.