Repository navigation
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.
Description
Summary
Add an opt-in Tailscale Serve mode when creating or replacing an OpenClaw-generated WSL gateway. The gateway remains loopback-bound inside WSL, while Tailscale Serve publishes private HTTPS/WSS access on the user’s tailnet.
When enabled, the generated gateway should trust Tailscale identity authentication in addition to its normal token/device flows.
Requested behavior
- Add a setup toggle for Tailnet access with Tailscale Serve.
- Require Windows Tailscale to be installed, connected, and MagicDNS-enabled before destructive gateway replacement begins.
- Install and authorize Tailscale inside the generated WSL distro.
- Support browser authorization and transient auth-key authorization; never persist auth keys.
- Register Companion with the discovered
wss://<wsl-node>.<tailnet>.ts.netendpoint while preserving app-managed WSL behavior, keepalive, and replacement detection. - Use the real discovered tailnet suffix in setup and completion UI.
- Do not silently fall back to localhost for managed
.ts.netgateways. - Add Tailscale-specific recovery guidance for Windows login, tailnet mismatch, WSL daemon state, Serve status, and gateway health.
- Redact auth keys and Tailscale authorization URLs from logs, journals, diagnostics, and errors.
- Configure OpenClaw with:
gateway.bind=loopback
gateway.tailscale.mode=serve
gateway.tailscale.resetOnExit=false
gateway.auth.allowTailscale=true
Security note
Enabling gateway.auth.allowTailscale=true means tailnet ACLs and Tailscale identity become an authorization path for the gateway. The setup UI and documentation should state this clearly. Token and device credentials should remain supported for pairing and compatibility.
Acceptance criteria
- Windows and WSL must be on the same MagicDNS tailnet before pairing.
tailscale serve status --jsonroutes HTTPS to the loopback gateway port.- Windows can reach the generated
https://…ts.netendpoint. - Companion registers a managed local WSS gateway record and connects through it.
- The Windows node connects through the WSS record.
openclaw nodes invoke --command device.info --params '{}'succeeds through the real gateway.
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.
Type
Fields
Priority
Medium
Projects
- StatusShow more project fieldsChannels
Activity
clawsweeper commentedon Jul 10, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 13, 2026, 7:21 PM ET / 23:21 UTC.
Summary
Keep open: current main does not provide Tailscale provisioning or tailnet-identity authentication for generated WSL gateways, and the open linked implementation still requires an explicit security-boundary decision before it can land.
Reproducibility: not applicable. This issue requests a new opt-in provisioning and authorization mode rather than reporting broken established behavior. Current source inspection confirms the mode is absent.
Ways to help us reproduce this
Next step
Do not queue a separate repair: the open closing pull request already owns implementation, and maintainers must first resolve the security-boundary decision before reviewing it for landing.
Maintainer decision needed
Security
Needs attention: The requested feature deliberately adds Tailscale identity and ACLs to the gateway trust boundary, requiring explicit maintainer approval and focused security validation.
Review details
Best possible solution:
Keep the issue paired with #967 and land that implementation only after maintainers approve tailnet identity as a core authorization path and verify fresh-install, destructive-replacement, rollback, secret-redaction, and real gateway invocation behavior.
Do we have a high-confidence way to reproduce the issue?
Not applicable: this issue requests a new opt-in provisioning and authorization mode rather than reporting broken established behavior. Current source inspection confirms the mode is absent.
Is this the best way to solve the issue?
Unclear pending maintainer approval: the linked pull request implements the requested end-to-end workflow with strong live proof, but core ownership of Tailscale lifecycle and tailnet-identity authorization must be decided first.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 77c42440376e.
Label changes
Label changes:
P2: This is a substantial but optional setup and remote-access improvement rather than a regression blocking existing core workflows.impact:security: The request changes gateway authorization boundaries, handles transient Tailscale credentials, and relies on tailnet ACL policy.impact:auth-provider: The feature adds Tailscale identity as an authentication path alongside existing token and device credentials.issue-rating: 🌊 off-meta tidepool: Current issue advisory state selects this label.clawsweeper:linked-pr-open: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-product-decision: Current issue advisory state selects this label.clawsweeper:needs-security-review: Current issue advisory state selects this label.Label justifications:
P2: This is a substantial but optional setup and remote-access improvement rather than a regression blocking existing core workflows.impact:security: The request changes gateway authorization boundaries, handles transient Tailscale credentials, and relies on tailnet ACL policy.impact:auth-provider: The feature adds Tailscale identity as an authentication path alongside existing token and device credentials.Evidence reviewed
Security concerns:
Enabling gateway.auth.allowTailscale=true permits identity established by Tailscale and constrained by tailnet ACLs to authorize gateway access, so the intended ACL assumptions and failure behavior must be explicitly approved.
Confidence: 0.98
Transient auth keys and browser authorization URLs can appear across process invocation, setup output, journals, diagnostics, and exceptions unless every boundary is tested for non-persistence and redaction.
Confidence: 0.94
What I checked:
src/OpenClaw.SetupEngine/SetupSteps.cs:18, 77c42440376e)docs/CONNECTION_ARCHITECTURE.md:24, 77c42440376e)Likely related people:
src/OpenClaw.SetupEngine/SetupSteps.cs,src/OpenClaw.Tray.WinUI/Pages/SetupWizardPage.xaml.cs)src/OpenClaw.SetupEngine/SetupSteps.cs,src/OpenClaw.SetupEngine/SetupContext.cs,src/OpenClaw.Tray.WinUI/Pages/SetupWizardPage.xaml.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.