Repository navigation
fix: grant administrator access through host-issued Control UI links - #119785
Conversation
|
Codex review: found issues before merge. Reviewed August 5, 2026, 8:37 PM ET / August 6, 2026, 00:37 UTC. ClawSweeper reviewWhat this changesThe PR changes dashboard and graphical-onboarding Control UI handoffs to issue a signed browser a durable administrator credential through a closed owner bootstrap profile. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the PR addresses a source-proven administrator-access regression, but it also makes a host-only administrator handoff selectable through an existing public plugin SDK issuer. That authorization-boundary decision needs maintainer confirmation and a core-only repair before merge. Priority: P1 Review scores
Verification
How this fits togetherDashboard and onboarding create a one-time browser URL, the Control UI redeems it with its signed device identity, and the Gateway turns the approved handoff into a durable device credential. This change affects the authorization boundary between host-issued browser setup, plugin-visible bootstrap issuance, and administrator RPC access. flowchart LR
A[Dashboard or onboarding] --> B[One-time owner handoff]
B --> C[Control UI signed browser]
C --> D[Gateway profile and key check]
D --> E{Exact host-authorized profile?}
E -->|Yes| F[Durable administrator credential]
E -->|No| G[Rejected or normal pairing]
H[Plugin bootstrap API] --> B
Decision needed
Why: The PR changes an existing public bootstrap API from bounded browser handoffs to a new administrator-capable browser path; repository policy requires maintainer-visible direction for plugin API and authorization-boundary changes. Before merge
Findings
Agent review detailsSecurityNeeds attention: The diff introduces a new administrator-capable bootstrap purpose through an existing public plugin-facing issuance API without issuer provenance. PR surfaceSource +274, Tests +115, Docs +16. Total +405 across 26 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep owner-profile issuance core-private to dashboard and onboarding, reject it from the generic plugin bootstrap issuer, and preserve the exact signed-key and closed-scope Gateway checks. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main issues a bounded Control UI bootstrap profile without Is this the best way to solve the issue? No: the closed profile, signed-key binding, and exact Gateway validation are the right repair shape, but making the owner purpose available through the generic public plugin issuer weakens the stated host-only boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 678a3c18a941. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What 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
|
|
Maintainer decision: the public device-bootstrap SDK intentionally permits authorized plugins to issue full-access device handoffs. The existing |
87b45b6 to
37aa0b9
Compare
|
Merged. What changed after review:
Verification:
Landed on
Thanks @shakkernerd! |
…cope * origin/main: (24 commits) fix(backup): skip transient gateway lock databases (openclaw#119782) test(agents): use canonical auth session fixtures (openclaw#119821) fix(memory): keep QMD file hints after stale docid misses (issue openclaw#113041) (openclaw#113515) test(doctor): align fast-path repair contracts (openclaw#119812) perf(agents): index subagent recovery ownership (openclaw#119793) fix(gateway): keep chat startup off catalog discovery (openclaw#119742) fix(test): keep TUI PTY suites in their owner lane (openclaw#119787) docs: correct dashboard auth precedence (openclaw#119785) docs: document control ui owner handoff fix: grant host-authorized control ui owner access fix(worktrees): preserve registered roots during orphan cleanup (openclaw#119709) fix(matrix): prevent shared client key collisions (openclaw#119667) fix(diagnostics-otel): propagate exported span context (openclaw#112283) fix(worker): isolate state observer failures (openclaw#117507) fix(qa): attest realized profile executions (openclaw#119761) fix(gateway): finish successful sessions after timestamp races (openclaw#119752) fix(agents): fence restart recovery lifecycle (openclaw#119776) fix(ui): preserve chat history and active run timing (openclaw#119729) improve(ollama): reduce inactive startup cost (openclaw#119745) improve(gateway): defer inactive plugin runtime imports (openclaw#119733) ...
Fixes #119781
What Problem This Solves
Fixes an issue where operators opening the Control UI through
openclaw dashboardor graphical onboarding received a durable browser credential withoutoperator.admin. Administrator-only settings and RPCs remained unavailable, and a browser with an existing limited credential could not recover administrator access through another fresh host-issued link.Why This Change Was Made
The host-issued entry points reused the generic bounded
control-uibootstrap profile. The resulting limited scopes were persisted and reused on reconnect and reload. Existing limited browsers also had no narrow host-authorized exception allowing a fresh handoff to upgrade the same signed key.This change adds a dedicated
control-ui-ownerprofile selected by thebootstrapProfile=ownerURL-fragment hint. The Control UI accepts the hint only alongside a bootstrap token, removes both fragment fields immediately, and requests exactly:operator.adminoperator.approvalsoperator.pairingoperator.questionsoperator.readoperator.talk.secretsoperator.writeThe Gateway verifies that exact closed profile before redemption. First redemption binds the handoff to the browser's signed device ID and public key. It supports fresh owner pairing and a same-key upgrade from an existing limited credential, then rotates to a durable device credential and clears the transient handoff state.
The exception remains narrowly bounded:
The dashboard, onboarding, operator-scope, and Control UI documentation now describes the owner handoff and its boundaries. The dashboard troubleshooting text also correctly documents authentication precedence: a pending bootstrap token is preferred for its handoff; without one, an explicit shared token or password precedes the stored device credential. The changelog records the user-facing fix.
User Impact
A fresh browser opened from
openclaw dashboardor graphical onboarding now receives durable administrator access and retains it across reconnects, Gateway restarts, and reloads.A previously limited browser can recover administrator access by redeeming a fresh host-issued handoff with the same signed key. Other browsers and ordinary authentication paths remain limited or require their existing approval flow.
Evidence
Automated verification:
pnpm check:changed: passed.pnpm docs:check-mdx: 768 files passed.pnpm docs:check-links: 6,399 links checked, 0 broken.pnpm ui:build: production bundle, precompressed assets, and performance limits passed.OCM-backed real-browser verification covered:
config.patch, surviving the resulting Gateway restart, reconnecting, and retaining the setting and administrator access after reload.bootstrap_token_invalid, without creating a pending approval.An independent review of the final patch before rebasing found no blocking runtime or security issue. The subsequent conflict-free rebase onto current
origin/mainmapped all three commits one-to-one with stable patch IDs and no relevant upstream contract changes, so the existing verification remains applicable.Size:
+166 -37(net+129)+295 -35(net+260)+31 -15(net+16)+492 -87The positive production growth implements a concrete host-authorized security boundary and carries one closed profile from issuance through fragment handling, signed redemption, and the Gateway pairing decision. It adds no configuration surface, protocol-version change, schema migration, persistence path, or fallback authentication path.