Repository navigation
fix(gateway): match verified users in command allowlists - #144601
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 10, 2026, 11:04 PM ET / September 11, 2026, 03:04 UTC. ClawSweeper reviewWhat this changesUses connection profile IDs for Gateway command allowlists, excludes synthetic callers from sender attribution, and adds identity and command-authorization regression tests. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 10 items remain The reported mismatch remains on current main and v2026.9.3, so this PR remains useful. The patch needs authorization and compatibility repairs, plus real Gateway proof, before merge. Priority: P2 Review scores
Verification
How this fits togetherGateway chat ingress translates authenticated connections into sender context consumed by command authorization. The same projection also feeds Talk consults, affecting which callers match command and owner allowlists. flowchart LR
A[Authenticated connection] --> B[Connection profile]
B --> C[Sender identity projection]
D[Synthetic caller check] --> C
C --> E[Command and owner allowlists]
E --> F[Execute or reject command]
C --> G[Talk consult context]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch can turn a shared attribution profile into owner-command authority; no dependency or supply-chain changes are present. PR surfaceSource +5, Tests +95. Total +100 across 3 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Project only authority-backed human identity, preserve Gateway scope boundaries, and provide an explicit, tested transition for existing application-ID allowlists. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the original mismatch: an allowlisted profile is absent from Control UI sender context on current main. The introduced authorization and compatibility cases are also source-traceable; no runtime tests were executed during this read-only review. Is this the best way to solve the issue? No, the existing projection is the right repair location, but profile presence alone does not establish verified human authority, and replacing shipped application IDs needs upgrade handling. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e62272f04a3e. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* fix(ui): load plugin catalog home from one snapshot * fix(ui): preserve bounded plugin catalog browsing * fix(ui): reconcile plugin catalog continuation * fix(ui): align plugin overview lifecycle tests * test(ui): satisfy plugin overview lint rules
Observe the accessible status, visible plugin row, expected text, and exact count together so the post-mutation reconnect cannot invalidate a separate count assertion.
… (openclaw#144599) ## What Problem This Solves Fixes an issue where Gateway startup fails after plugin auto-enable when a bundled provider has credentials or settings but no custom `models` array. This addresses an operator report of a regression introduced by openclaw#143837. The reported provider-level `enabled` keys are not accepted by the current schema. The valid credentials-only form reproduces the crash when startup automatically enables a configured channel. ## Why This Change Was Made The catalog composition owner now maps custom rows only when they exist. Existing merge logic keeps inherited catalog rows and routes, and the provider loop still applies current request credentials and headers. No schema or configuration keys change. ## User Impact Operators can start the Gateway with provider settings that omit custom models, including when a channel is automatically enabled. Bundled models remain available to catalog browsing. ## Evidence - Pinned main `a48c47a09c86`: real isolated Gateway startup exits 1 with `TypeError: Cannot read properties of undefined (reading 'map')` at `ModelRegistry.loadModels`, introduced in openclaw#143837. - Both new regression tests fail on the original code at that same call. The composition test verifies inherited rows, routes, token limits, and current credentials/headers. The Gateway test waits for full startup and then requests public readiness. - Fixed code passes 61 focused tests across catalog composition, the model-catalog sibling, the Gateway catalog-startup suite, and the neighboring WebSocket contract. - Real CLI proof: Gateway reaches readiness; explicit catalog refresh exposes 10 bundled OpenAI models; the following list without refresh retains those rows. Credential status reports the synthetic sources. Fake keys leave models unavailable and provider discovery incomplete; no successful upstream authentication is claimed. - The exact reported `enabled` shape remains rejected before startup on both revisions. The channel token is synthetic, and channel connections are disabled; this is startup proof, not message-delivery proof. - Changed-file formatter, lint, line-count and assertion checks pass. Typechecks and full suites run in GitHub CI. Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…aw#133421) * feat(line): let a LINE tap answer the question an agent asked * refactor(line): share the reply-then-push path both LINE handlers use * docs(line): describe the native ask_user controls and their four-control bound * fix(line): let an ask_user notification say what is being asked * fix(line): answer a question tap that did not resolve the question * docs(line): correct what the native question controls do * test(line): type the question resolver double from the resolver it stands in for * fix(line): open the composer when the ask_user free-text control is tapped * fix(line): fall back to text when two options share a truncated control label * docs(line): describe the question controls LINE actually draws * fix(line): leave the ask_user free-text route to the words the card already carries * docs(line): say why the free-text control is not drawn * docs(line): keep the reason for omitting the control inside what LINE decides * docs(line): give the omitted control a reason that does not depend on a runtime * fix(line): name the omitted free-text control on every question card * style(line): reflow the question-card fixture reader * fix(line): defer question gateway runtime until postback resolution * fix(line): render question controls only for direct chats * fix(line): recheck access before recording question answers * fix(line): preserve question text for button-only presentations * fix(line): recheck question notice access for every send attempt * test(line): await webhook registration through the public API --------- Co-authored-by: Patrick Erichsen <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ions (openclaw#143501) * fix(sandbox): authorize canonical destinations before pinned fs mutations * fix(sandbox): separate policy namespace from pinned mutation targets * fix(sandbox): satisfy lint, deadcode, and test-type gates on pinned frames * test(sandbox): prove canonical authorization through RPC * test(sandbox): prove legacy bridge upgrade compatibility * fix(sandbox): reject canonical descendant copies * test(sandbox): cover legacy bridge mutation contracts
* feat(plugins): expand product category taxonomy * docs(plugins): define single-purpose category selection * feat(plugins): add agent runtimes category * perf(ui): defer plugin category icons * test(ui): wait for the requested plugin catalog filter * test(ui): select first full plugin catalog page * style(test): format plugin category fixture
…penclaw#142760) * feat(plugins): reclassify bundled plugin manifests * feat(plugins): assign one purpose category per bundled plugin * feat(plugins): classify native agent execution runtimes
…#142798) * fix(gateway): serve plugin marketplace document route * fix(gateway): serve generated plugin catalog detail routes
Display the Gateway’s inferred extended-stable channel on Settings > Updates when update policy is absent. Derive the option list and automatic-update eligibility from that same channel while preserving authored and drafted choices. Verified with matched synthetic installed packages, real Gateway/browser red-green, configuration-write observations, focused control tests, independent acceptance and exact-head CI. Co-authored-by: Ayaan Zaidi <[email protected]>
…tion (openclaw#140989) ## What Problem This Solves Fixes an issue where `openclaw backup create` failed before producing an archive when state contained AppleDouble metadata named `._cron.sqlite`. ## Why This Change Was Made Exclude signature-confirmed `._*.sqlite` metadata after the existing state/agent inventory checks. The probe uses the existing safe file opener and closes its descriptor after every read outcome. Real databases and hardlink aliases retain verified snapshots, compaction, and canonical sanitization. ## User Impact Backups can include state copied from macOS without treating AppleDouble metadata as a database. Ordinary workspace files remain included, and corrupt SQLite databases still stop backup creation. ## Evidence - Pinned-main public `backup create --verify --json` failed actual SQLite validation for a 163-byte metadata fixture and produced no archive. - Independent candidate public create and separate verify passed. Extracted archives exclude state/agent metadata, retain workspace metadata and ordinary files, and preserve real same-name databases and canonical aliases with their ownership and sanitization. - 63 distinct focused backup and verifier cases passed, including real hardlinks, canonical WAL data, corruption, inventory scope, replacement symlinks, and descriptor cleanup. - Native formatting, lint, source guards, and the normal commit hook passed. Independent source review is clean. The exploratory generic hardlink/live-WAL case failed identically on pinned main and the candidate; it remains tracked separately in openclaw#144585. The passing canonical and closed-generic controls do not turn that existing failure into a pass. Proof uses synthetic files on Linux; it does not claim a macOS filesystem test. All four contributor commits are retained. Closes openclaw#140193. Co-authored-by: Ayaan Zaidi <[email protected]>
…openclaw#144313) * refactor(test): centralize worker declaration metadata Replay the reviewed first tooling layer on the current frozen main base. Keep package activation declarations reserved for the later owning layers; preserve the inherited main build graph and test coverage. * test: stabilize auth discovery and onboarding checks Pair synthetic OAuth refresh with capability discovery. Retain the Android test synchronization landed upstream in commit 1237e64. No production code or timeout changes. * test: isolate yielded session reset runtime * test: align isolated Gateway inventory assertions * fix(ui): let plain tooltips yield pointer actions * test: preserve loose objects in Git corruption fixtures * fix: keep tooltips lean and metadata snapshots refreezable * test(android): pin approval reconciliation handler entry --------- Co-authored-by: Jason (Json) <[email protected]>
|
landpr-approve-unrelated-red |
|
Thanks @JamesY023! Proof: A verified, explicitly allowlisted user receives the expected
The pre-existing UI activity indicator can remain after a settled command; a normal reload clears it. Live voice and full release-package upgrade coverage are not claimed. All runtime proof used isolated synthetic state with no inference or external delivery. Unrelated CI exception: Run 34570425450, attempt 1 completed with 141 successful jobs, 16 skipped jobs, and the memory shard plus its dependent aggregate failing. The sole test failure is The tested merge No separate main-only failing job is claimed; the causal evidence is the actual tested merge, its main-parent source, the introducing diff, and the complete failed execution path. The memory issue remains a separate follow-up. The merge used the exact-head standing approval through the normal guarded dry run and merge. Earlier attributable Talk failures were corrected, not exempted. |
What Problem This Solves
Fixes an issue where Control UI users could be denied commands even when their verified profile was explicitly listed in the command allowlists.
Why This Change Was Made
Match the profile established by verified login while keeping its command authority bound to the current connection. Shared owner attribution and synthetic callers do not gain that human authority. Preserve existing non-UI application-ID allowlists, including
cli, and retain the original connection through Talk's client copy.User Impact
Operators can allow a verified Gateway user by profile ID without breaking existing CLI allowlists or granting owner commands to a lower-scoped fallback profile.
Evidence
6fb8b2e4b77d: real proxy login, served Control UI, exact profile policy, and/debug showreached command authorization and was denied. The original driver's terminal-event timeout is retained; completed denial was independently verified from Gateway diagnostics and public session history.9333b49fd18b: real UI showsDebug overrides: (none)for the matching human and denial for a different human. Fresh source-blind validation independently repeated the public UI and protocol controls.clipolicies work before and after the repair; the same human's UI cannot borrowcli.A pre-existing UI activity indicator can remain active after a settled command; the correct reply is visible and a normal reload clears the indicator. That observation and all fixture failures remain recorded separately from command authorization.