Skip to content

Authentication Methods

TSDProxy supports three authentication methods for Tailscale proxies.

Comparison

FeatureOAuthOAuth (Manual)AuthKey
Setup complexityMediumLowLow
Requires tagsYesNoOptional
Auto-renewalYesManualAutomatic
Headless operationYesNoYes

Method 1: OAuth (Recommended)

tailscale:
  providers:
    default:
      clientId: "your_client_id"
      clientSecret: "your_client_secret"
      tags: "tag:example"

OAuth uses all:write scope to automatically authenticate proxies. Keys are cached at {dataDir}/{provider}/{hostname}/tsdproxy.yaml.

Method 2: OAuth (Manual)

Leave authKey empty. Proxies show “Authenticating” in the Dashboard. Click to authenticate via Tailscale OAuth flow.

Method 3: AuthKey

tailscale:
  providers:
    default:
      authKey: "tskey-auth-xxxxx"

Or via file: authKeyFile: "/run/secrets/authkey"

Provider Resolution Priority

  1. tsdproxy.proxyprovider label on container
  2. defaultProxyProvider in target provider config
  3. defaultProxyProvider at top level
  4. First available provider
Last updated on