Skip to content

feat(gateway): detect tailscale on the gateway host - #219

Merged
nixuuu merged 1 commit into
devfrom
feat/tailscale-1
Nov 5, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/tailscale-1

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Stage 1 of 4, Tailscale: detect Tailscale on the gateway host (read-only).

  • Where it looks: the tailscale CLI on PATH, then the macOS app's CLI, then the Linux LocalAPI socket.
  • What it reads:
    • backend state;
    • the MagicDNS name (trailing dot stripped);
    • tailnet IPv4 and IPv6;
    • the tailnet name;
    • whether MagicDNS is on;
    • CertDomains;
    • the node owner's login, or that the node is tagged.
  • Caching: results are cached for 5 s and refreshed every 30 s and on demand.
  • Missing Tailscale: missing, stopped or logged out is just a state, never an error. In Docker it reports "not found".
  • Logs: only state changes, never names or IPs.
  • Docs: docs/tailscale.md (Polish).
  • Test fixture: a fake tailscale CLI that uses documentation-range IPs, so tests never touch the real binary.

Tests: tailscale-detection.test.ts covers every state, the macOS app path, LocalAPI over a socket, the cache and change events.

Copy audit: no UI in this stage.

Read-only detection of the Tailscale CLI (PATH, the macOS app) or the
LocalAPI socket, with the status parsed to the few facts Settings needs
and a short cache. Adds the design in docs/tailscale.md and a fake CLI
fixture so tests never run the real one.
@nixuuu
nixuuu added this pull request to stack #223 November 5, 2026 20:48
@nixuuu
nixuuu marked this pull request as ready for review November 5, 2026 20:49
@nixuuu
nixuuu merged commit 730b785 into dev Nov 5, 2026
11 checks passed
@nixuuu
nixuuu deleted the feat/tailscale-1 branch November 5, 2026 20:55
nixuuu added a commit that referenced this pull request Nov 24, 2026
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.

1 participant