Skip to content

Infisical から Tailscale を自動セットアップする #62

Closed

Description

@rebuildup

目的

fresh Windows machine で Tailscale の認証情報を plaintext file / shell history / repository に残さず、Infisical を canonical secret authority として Tailscale 登録と WSL SSH 向け TCP Serve を再現可能にする。

Desired state

  • Tailscale client は Windows の desired machine state に含める
  • Tailscale OAuth client secret は self-hosted Infisical のみを canonical value authority とする
  • repository は Infisical endpoint / project ID / environment / path / required key / Tailscale tag / Serve port mapping の non-secret contract を保持する
  • setup script は infisical run により secret を child process へだけ inject する
  • OAuth client secret は tailscale up --auth-key へ environment 経由で渡し、shell history / file へ materialize しない
  • node registration は persistent + preauthorized とし、OAuth client の scoped tag を必須にする
  • Windows の tailnet TCP 2222/2223 を localhost 2222/2223 へ Serve し、既存 WSL SSH の localhost-only bind を維持する
  • bootstrap は interactive auth を開始しない。Infisical auth が利用できない場合は明示的な follow-up command を示し、secret を別 store へ fallback しない

Acceptance criteria

  • Tailscale の Windows installation を desired state に追加
  • Infisical/Tailscale の secret-free contract を repository に追加
  • idempotent な Windows Tailscale setup script を追加
  • tailscale status が既に Running なら不要な node re-registration を行わない
  • tailscale serve --tcp=2222/2223 を localhost の既存 WSL SSH port へ収束
  • secret value を stdout / repository / persistent env file に出さない
  • Infisical self-hosted endpoint を明示し managed Cloud へ暗黙 fallback しない
  • Windows verification で Tailscale presence / backend / Serve mapping を確認
  • ADR と Windows setup guide を同期
  • repository CI で secret contract と PowerShell implementation の静的回帰を検証

Scope

Windows host 上の Tailscale provisioning と WSL SSH forwarding。Android 側の Tailscale app enrollment / MDM は対象外。

Release

Target: release-0-3-0

Priority: High
Size: M
Area: Windows / networking / secrets

Activity

  1. self-assigned this
    on Oct 2, 2026
  2. rebuildup commented on Nov 23, 2026

    @rebuildup
    OwnerAuthor

    実装済みのためクローズします。platforms/windows-11/setup-tailscale.ps1 が Infisical(/infrastructure/tailscale)から process-scoped に OAuth secret を注入して tailscale up する自動セットアップを実装済みです。実機 onboarding で見つかった status JSON 解析・fail-closed・PATH 収束の欠陥は #174 / PR #232 で是正中です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions