You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8e79ace
Browse filesBrowse the repository at this point in the historyBrowse files
Do not run `systemctl --user` as `root`; that checks root's user service manager, not the gateway's service.
96
96
97
+
## Inspect an optional Tailscale Serve endpoint
98
+
99
+
When the setup review enabled **Tailnet access with Tailscale Serve**, the generated distro runs its own Tailscale daemon. The Windows Companion intentionally uses the generated `wss://<node>.<tailnet>.ts.net` endpoint; it does not silently fall back to localhost.
100
+
101
+
Windows must also have Tailscale installed and signed in to the same tailnet. These checks do not print credentials:
102
+
103
+
```powershell
104
+
# Windows Companion side: confirm this PC is connected to Tailscale.
105
+
& "$env:ProgramFiles\Tailscale\tailscale.exe" status --json
106
+
107
+
# WSL side: confirm the daemon is connected and has a MagicDNS name.
108
+
wsl.exe -d OpenClawGateway --user root -- tailscale status --json
109
+
110
+
# Confirm Serve routes tailnet HTTPS to the loopback OpenClaw gateway port.
111
+
# Tailscale lifecycle and Serve are intentionally owned by root, not openclaw.
112
+
wsl.exe -d OpenClawGateway --user root -- /usr/bin/tailscale serve status --json
113
+
114
+
# Funnel is unsupported. This must show no public route.
115
+
wsl.exe -d OpenClawGateway --user root -- /usr/bin/tailscale funnel status --json
116
+
117
+
# Check the OpenClaw gateway itself; it remains loopback-bound inside WSL.
The generated WSL distro is Ubuntu 24.04 (noble). Tailscale Serve setup requires that exact generated distro and rejects another `BaseDistro` before replacing an existing gateway. Setup installs Tailscale from its signed stable APT repository rather than executing the mutable `install.sh` bootstrap script as root.
122
+
123
+
Tailscale Serve preserves Companion token and device authentication by default (`gateway.auth.allowTailscale=false`). Setup runs `tailscale up`, Serve, reset, logout, and daemon management as root; the `openclaw` account is never made a Tailscale operator. Tailscale's LocalAPI permits read-only operations, such as identity lookup, to local unprivileged clients while reserving mutation for root or an explicitly configured operator. In the setup review, **Trust Tailscale identities for gateway authentication** is an explicit opt-in; when enabled, verified Tailscale identity headers and tailnet ACLs become part of the gateway access-control boundary. Token and device credentials remain available for Companion pairing and compatibility. Do not enable Funnel for this generated gateway: this workflow supports private tailnet Serve only.
124
+
97
125
## Use root instead of sudo
98
126
99
127
There is no interactive sudo password prompt. Open a root shell only when you intentionally need to inspect or change protected files:
<TextBlockText="Tailnet access with Tailscale Serve"Style="{StaticResource BodyStrongTextBlockStyle}" />
118
+
<TextBlockTextWrapping="Wrap"Style="{StaticResource CaptionTextBlockStyle}"Foreground="{ThemeResource TextFillColorSecondaryBrush}"Text="Publish this private gateway as HTTPS/WSS to your Tailscale tailnet. Windows Tailscale must already be signed in; setup root owns Serve." />
<TextBlockx:Name="TailscaleStatusText"Text="Check Windows Tailscale before continuing."Style="{StaticResource CaptionTextBlockStyle}"Foreground="{ThemeResource TextFillColorSecondaryBrush}"TextWrapping="Wrap" />
<ToggleSwitchx:Name="TailscaleTrustAuthToggle"Header="Trust Tailscale identities for gateway authentication"OnContent="Enabled"OffContent="Disabled"Toggled="TailscaleTrustAuthToggle_Toggled" />
130
+
<TextBlockTextWrapping="Wrap"Style="{StaticResource CaptionTextBlockStyle}"Foreground="{ThemeResource TextFillColorSecondaryBrush}"Text="Off by default. Enable only when your Tailscale ACLs should be part of the gateway access-control boundary; OpenClaw receives only a restricted identity lookup, not Tailscale operator control." />
0 commit comments