Skip to content

feat: add socket-aware CLI and layered doctor diagnostics #17

Closed

Description

@abruption

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 doctor distinguish 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

  1. added this to the v0.3.0 milestone on Oct 14, 2026
  2. added
    priority: medium
    on Oct 17, 2026
  3. abruption commented on Oct 17, 2026

    @abruption
    OwnerAuthor

    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 nc probe 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:

    • Missing/unreachable per-user socket in a particular execution context; a working GUI/SSH context does not establish agent-context access.
    • Transient NoState/Starting versus persistent unavailability. Define a bounded observation window and expose the observed state; do not infer credential loss or trigger login automatically.
    • Outbound proxy disabled, configured-but-restart-required, bound, and end-to-end verified as distinct conditions (feat: add opt-in localhost SOCKS5 and HTTP outbound proxy #18).

    Keep default checks local/read-only; destination probes remain explicit and bounded. No new doctor implementation or authentication test was performed here.

  4. abruption commented on Oct 19, 2026

    @abruption
    OwnerAuthor

    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.

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

    priority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions