Skip to content

fix(connection): open the dashboard on the owned SSH forward #1736

Closed as not planned

Description

@SebTardif

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.

Compare: https://github.com/openclaw/openclaw-windows-node/compare/main...SebTardif:fix/dashboard-owned-ssh-forward?expand=1

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.

Activity

  1. added
    P1
    clawsweeper:needs-security-review
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:security
    issue-rating: 🦞 diamond lobster
    on Oct 15, 2026
  2. clawsweeper commented on Oct 15, 2026

    @clawsweeper

    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:

    • The proposed fork’s reported macOS harness does not establish native Windows tray navigation or live ssh.exe behavior.
    • A listener check before browser launch does not establish ownership of a later accepted connection after SSH stops or changes.
    • The retained-port approach in the open repair restricts different SSH destinations from reusing a protected local port and still needs maintainer acceptance.

    Codex review notes: model internal, reasoning medium; reviewed against 635b01e91c3f.

    Label changes

    Label changes:

    • add P1: An existing dashboard action can disclose a shared credential to the saved origin instead of using its configured SSH security boundary.
    • add impact:security: The report concerns credential export and attribution of the transport receiving browser authentication.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add 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:

    • [high] Bind browser authentication to the intended SSH transport — src/OpenClaw.Tray.WinUI/Services/GatewayDashboardLauncher.cs:25
      The 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:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 15, 2026, 6:36 AM ET / 10:36 UTC.

  3. github-actions commented on Oct 30, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  4. github-actions commented on Nov 7, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  5. locked as resolved and limited conversation to collaborators on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1clawsweeper:needs-security-reviewclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:securityissue-rating: 🦞 diamond lobsterstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions