Repository navigation
fix(wizard): honor remote password auth in probes - #118134
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 10:52 AM ET / 14:52 UTC. ClawSweeper reviewWhat this changesThe PR makes setup and configure Gateway probes use configured remote token or password credentials and keeps configure health requests bound to the selected remote Gateway. Merge readinessNo blocking patch defect found. This remains necessary because current main still omits remote-password probe handling; keep it open for the assigned owner’s merge-risk decision and exact-head CI completion. Priority: P1 Review scores
Verification
How this fits togetherGateway setup and configure wizards turn remote connection settings into reachability probes and health requests. A shared Gateway credential layer selects credentials for the selected target before those requests are sent. flowchart LR
A[Remote Gateway settings] --> B[Setup and configure wizards]
B --> C[Probe credential selection]
C --> D{Selected target}
D -->|Remote| E[Remote Gateway]
D -->|Local| F[Local Gateway]
E --> G[Reachability and health result]
F --> G
Decision needed
Why: This intentionally changes credential precedence for existing remote configurations, and the assigned reviewer previously requested that the PR not be merged while it was being revised. Before merge
Agent review detailsSecurityNone. PR surfaceSource +249, Tests +293, Docs +5. Total +547 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one remote-probe precedence owner in the shared credential resolver, retain the narrow adapter only for explicit-auth and URL-override isolation, and merge after exact-head checks are green. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: configure a remote Gateway with only Is this the best way to solve the issue? Yes—the shared probe-surface resolver is the best owner for configured remote precedence, while the PR’s adapter preserves explicit-auth and changed-URL isolation rather than duplicating the policy in each wizard. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6472d22a77f4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (18 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
I am tweaking this, pls don't merge |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
5455bba to
f7b5f10
Compare
18e2c5b to
4d37ca8
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
3914b30 to
2960290
Compare
[AI-assisted]
What Problem This Solves
A password-only remote Gateway can be healthy and reachable while both the initial setup wizard and the later configure wizard label it as unreachable. This gives users a false connection failure during onboarding and reconfiguration even though password authentication is a supported remote Gateway mode.
Why This Change Was Made
All setup and configure probes now resolve remote credentials through the shared Gateway auth-surface owner and forward its token or password to the selected target. The configure health action also runs after remote configuration instead of returning before the requested health check.
Root Cause
The wizard hint paths originally read only
gateway.remote.token. The configure health action separately selected the remote URL while resolving localgateway.authcredentials, and the remote configuration branch returned before running an explicitly selected health action.Runtime ownership
resolveGatewayProbeSurfaceAuthis the canonical owner for remote token/password precedence. The probe-auth adapter preserves explicit-auth and URL-override safety, target isolation, and unresolved-SecretRef diagnostics for wizard callers.User Impact
Users connecting to a password-protected remote Gateway now get accurate reachability hints and a working configure health action. Local Gateway credentials are not forwarded to the remote target.
Evidence
Focused regressions, the full changed gate, the generated API contract check, and packaged real behavior proof passed on product-code head
eddb8d911f3; current headce9e437e4d8only drops the SHA-256 baseline that currentmainreplaced with JSONL and documents remote probe credential precedence. The final repair binds configure health and its authentication diagnostic to the selected remote Gateway even whenOPENCLAW_GATEWAY_URLnames an unrelated password-protected Gateway.Inspect exact-head proof ledger
Provenance
260628f4fa7ce1f5a04f69b9523b95e7694aaaa0ce9e437e4d8d6dab1d3ad2f15170d252040ca7a718e2c5b29d2(prior full GitHub CI),3914b30af01(125/125 ClawSweeper acceptance tests),eddb8d911f3(158 focused tests, full changed gate, packaged live proof),ce9e437e4d8(generated-contract conflict resolution and docs clarification)eddb8d911f3d52686f84fa091a3f7e3747b7886dExact-head direct behavior
The exact-head packaged CLI started a real password-authenticated Gateway on an isolated port. A separate client config stored the matching remote password and a deliberately wrong local password. The real TTY flow then ran
openclaw configure --section health, selected the configured remote Gateway, and completed its health action without an auth error. Synthetic credentials were redacted.Redacted exact-head runtime transcript
Automated verification
eddb8d911f3across health command target binding, probe-auth, credentials, configure wizard, and setup wizard.git diff --check, and the generated Plugin SDK API baseline check passed.OPENCLAW_GATEWAY_URLpointed at a second live Gateway protected by a different password.Preserved boundaries
gateway.authvalues and SecretRefs before resolution.CI note
Product-code head
eddb8d911f3fixes the target-binding P1 and CI max-lines failure. Current headce9e437e4d8only removes the retired SHA-256 manifest and documents the proven remote probe credential precedence after currentmainreplaced it with JSONL ine37614c83f9; a synthetic merge againstcd7b7f639dais clean. The exact product-code packaged live scenario passed on Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/31387428924. The full changed gate passed locally after Blacksmith sync failed twice across fresh leases; all owned Testboxes were stopped.