fix(cli): include dashboard token URL in gateway status#1611
Open
BingqingLyu wants to merge 3 commits into
Open
fix(cli): include dashboard token URL in gateway status#1611BingqingLyu wants to merge 3 commits into
BingqingLyu wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openclaw gateway statusprinted a bare Control UI URL whileopenclaw dashboardcould include#token=..., so token-auth setups could open the UI in an unauthenticated state (token_missing).gateway statusnow printsgateway.controlUiAccessUrlwith safe token-fragment embedding parity withopenclaw dashboard; added a SecretRef hint path; redacted token fragments ingateway status --json; added focused tests.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause / Regression History (if applicable)
git blame, prior PR, issue, or refactor if known):openclaw dashboardalready resolved token-aware URLs; status path used raw link generation.Regression Test Plan (if applicable)
src/commands/control-ui-access-url.test.tssrc/cli/daemon-cli/status.print.test.tssrc/cli/daemon-cli/status.gather.test.tssrc/commands/dashboard.test.tsdashboardtests covered command behavior; status coverage was added here.User-visible / Behavior Changes
openclaw gateway statusnow prints a token-fragment dashboard URL when local token resolution allows it (same safety rules asopenclaw dashboard).openclaw gateway status --jsonredacts token fragments fromgateway.controlUiAccessUrl.Diagram (if applicable)
Security Impact (required)
Yes/No): NoYes/No): YesYes/No): NoYes/No): NoYes/No): NoYes, explain risk + mitigation: token handling now explicitly redacts token fragments in JSON output and still refuses embedding for SecretRef-managed tokens.Repro + Verification
Environment
gateway.auth.mode=token,gateway.auth.tokenset (plain token and SecretRef scenarios)Steps
openclaw gateway status.openclaw gateway status --jsonand inspectgateway.controlUiAccessUrl.Expected
#token=....Actual
Evidence
Attach at least one:
Human Verification (required)
Review Conversations
Compatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoRisks and Mitigations