Repository navigation
Description
What is wrong
Open Dashboard puts the shared gateway token on the saved gateway host. An SSH gateway should open the browser on the local forward owned by the current SSH process.
Pull 1484 tried to do that with an application proxy. Scott Hanselman closed it on 2026-10-15 and asked for a narrower pull from current main: keep dashboard URL construction in GatewayDashboardLauncher, and bind the launch to the SSH process generation that owns the forward. Do not reopen 1484.
Pulls
- #1484 is closed and was not merged. Do not reopen it.
- #1514 is the open pull for this repair. Head
2a20af4a. - #1729 is merged. It rejects invalid SSH forward ports before connecting. It does not open the dashboard on the owned forward.
Proposed fix
The branch is fix/dashboard-owned-ssh-forward at 3ce79e6c0e6ce59b67c638eebd6451b395ff15e8.
GatewayDashboardLauncher still builds the URL. When the saved gateway has an SSH forward, the browser opens only after that forward's current process generation owns 127.0.0.1 on the local port. The saved path and query stay. The saved host is not used. A different SSH generation that is already running is left in place, and the dashboard stays closed.
This account cannot open the pull. gh pr create returns GraphQL CreatePullRequest denied, and REST POST /pulls returns 404. pull_request_creation_policy is still all. The branch is on the fork.
What I ran
From the patched ownership check and URL builder on macOS, .NET 10.0.401. This was not a Windows tray click and not a live ssh.exe session.
owned-origin=http://127.0.0.1:19001
stale-generation=none
foreign-listener=refused: Local port 19001 is not owned exclusively by the launched SSH process.
browser-url=http://127.0.0.1:19001/mount/custodian?onboarding=1#view=compact&token=current
refused-opens-browser=no
saved-host-in-browser-url=False
The Windows tray Open Dashboard button was not run.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Oct 15, 2026
Codex review: this still needs some work.
Summary
Current main still opens the saved gateway origin without binding browser navigation to the owned SSH forward; the same author’s open #1514 already covers this repair.
Reproducibility: Current source establishes the saved-origin launch and missing ownership wait; no live reproduction, build, or test was run during this read-only review.
Next step
Coordinate this issue with #1514 and resolve browser transport ownership before landing a single repair.
Security
Needs attention: The dashboard currently exports a shared credential without establishing that its browser origin is served through the owned SSH process.
Review details
Best possible solution:
Deliver one coordinated repair through the existing dashboard launcher that preserves SSH authority through browser traffic and reports refusals visibly.
Do we have a high-confidence way to reproduce the issue?
Current source establishes the saved-origin launch and missing ownership wait; no live reproduction, build, or test was run during this read-only review.
Is this the best way to solve the issue?
Local-origin projection is necessary, but generation checks alone do not settle delayed browser transport ownership; coordinate with #1514 and retain the launcher boundary requested in the prior maintainer discussion.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 635b01e91c3f.
Label changes
Label changes:
P1: An existing dashboard action can disclose a shared credential to the saved origin instead of using its configured SSH security boundary.impact:security: The report concerns credential export and attribution of the transport receiving browser authentication.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-security-review: Current issue advisory state selects this label.Label justifications:
P1: An existing dashboard action can disclose a shared credential to the saved origin instead of using its configured SSH security boundary.impact:security: The report concerns credential export and attribution of the transport receiving browser authentication.Evidence reviewed
Security concerns:
src/OpenClaw.Tray.WinUI/Services/GatewayDashboardLauncher.cs:25The launcher builds from the saved gateway URL after a synchronous tunnel-start callback, allowing browser authentication to target that saved origin rather than the verified local forward; a replacement listener must also be refused before receiving credential-bearing traffic.
Confidence: 0.98
What I checked:
src/OpenClaw.Tray.WinUI/Services/GatewayDashboardLauncher.cs:25, 635b01e91c3f)src/OpenClaw.Tray.WinUI/App.xaml.cs:4034, 635b01e91c3f)src/OpenClaw.Connection/ManagedLocalGatewayPortProvenanceService.cs:308, 635b01e91c3f)src/OpenClaw.Connection/SshTunnelService.cs:561, 635b01e91c3f)tests/OpenClaw.Tray.Tests/SetupDashboardHandoffTests.cs:123, 635b01e91c3f)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 explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 15, 2026, 6:36 AM ET / 10:36 UTC.
github-actions commentedon Oct 30, 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 Nov 7, 2026
Closing due to inactivity.
If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.