Repository navigation
Closed as not planned
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.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: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.stale
Description
I can`t use the direct connect option to connect to my instance. I do not want a local setup. I do not have SSH available, because I am behind a layer 7 LB.
I need either the option to auth via oauth2 since I have a oauth2-proxy infront or I need to add a script like
kubectl port-forward --address 127.0.0.1 -n openclaw deployment/openclaw 18789:18790to run before the connection starts. Maybe a stop script is needed too. Is it powershell? Maybe. Or do we just point to some file?
Reacted by clawsweeper
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.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: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.stale
Type
Fields
Priority
Medium
Activity
clawsweeper commentedon Jun 15, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 2, 2026, 1:57 PM ET / 17:57 UTC.
Summary
This issue remains necessary. Current main supports direct gateway URLs with setup-code or token-based pairing and a managed SSH local forward, but it does not provide OAuth2-proxy authentication or a configurable non-SSH local-process lifecycle for a Kubernetes port-forward. Choosing and securing either new boundary requires maintainer product direction before implementation.
Reproducibility: unclear. The report provides a plausible Kubernetes port-forward scenario, but no current-main runtime evidence establishes whether the direct endpoint fails solely because of OAuth2-proxy behavior or what callback and token policy the proxy requires.
Ways to help us reproduce this
Maintainer decision needed
Why: Current main intentionally has token/setup-code pairing and a fixed SSH-forward model only. Adding OAuth and arbitrary local command execution changes credential, process, and security policy that source inspection cannot safely choose.
Next step
A maintainer must choose the authentication and local-process security boundary before any implementation can be scoped safely.
Review details
Best possible solution:
Define one supported remote-access boundary: preferably a constrained, explicitly configured managed local-forward mechanism with lifecycle ownership and diagnostics, plus a separately specified OAuth2-proxy compatibility path only if the gateway authentication protocol can support it safely.
Do we have a high-confidence way to reproduce the issue?
Unclear. The report provides a plausible Kubernetes port-forward scenario, but no current-main runtime evidence establishes whether the direct endpoint fails solely because of OAuth2-proxy behavior or what callback and token policy the proxy requires.
Is this the best way to solve the issue?
No. A generic script hook is not yet the best established solution because it would add an unrestricted local execution boundary; maintainer-approved constrained forwarding or a separately designed OAuth compatibility flow is safer.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 8ac00c5f4977.
Label changes
Label justifications:
P2: This is a meaningful remote-connection capability gap, but no current regression or emergency user-impact evidence establishes P0 or P1 urgency.impact:security: The proposed lifecycle mechanism would run and manage a local process, and the requested authentication option crosses the gateway trust boundary.impact:auth-provider: The requested direct-connect alternative explicitly requires authentication through an OAuth2 proxy.Evidence reviewed
What I checked:
src/OpenClaw.Connection/GatewayRecord.cs:7, 8ac00c5f4977)src/OpenClaw.Connection/GatewayClientEndpointResolver.cs:9, 8ac00c5f4977)src/OpenClaw.Connection/SshTunnelService.cs:247, d7d153ca5d40)qa/maturity-scores.yaml)Likely related people:
src/OpenClaw.Connection/GatewayConnectionManager.cs,src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs)src/OpenClaw.Connection/SshTunnelService.cs,src/OpenClaw.Connection/GatewayConnectionManager.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.xrow commentedon Jun 16, 2026
I looked at the issue again. Meaning the device flow. The OAuth2-proxy is nice, but the generic command lifecycle hook is needed as a must to pass in a secure way.
20 remaining items
github-actions commentedon Aug 17, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.
github-actions commentedon Aug 24, 2026
Closing due to inactivity.
If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.