Skip to content

fix(config): nostr keys and webhook URLs show in a plain text box - #1513

Open
SebTardif wants to merge 17 commits into
openclaw:mainfrom
SebTardif:fix/f083-mask-config-secrets
Open

SebTardif wants to merge 17 commits into
openclaw:mainfrom
SebTardif:fix/f083-mask-config-secrets

Conversation

@SebTardif

@SebTardif SebTardif commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: the config editor shows a Nostr private key and a Google Chat webhook URL in a normal text box.

User Impact

User impact: those fields use the same password box as other secrets, and a stored value is not preloaded. A stored secret object that declares properties shows how many entries are configured. Replace all starts blank. Clear all asks before it removes the entries.

Why This Change Was Made

The schema editor and the no-schema fallback share ConfigPathSensitivity. An exact path segment named nsec, privateKey, webhookUrl, or webhookUrls takes the existing sensitive field. webhookUrlExtra stays a normal field. A sensitive string array uses a password box. The stored item is kept by the editor, not on the control. A blank box keeps that item.

A sensitive array of objects stays off the page. The page shows how many entries are configured. Replace all opens a blank JSON box and the patch contains only that new array. Clear all asks, then sends an empty array. Cancel, or a save that does not use those actions, leaves the stored array out of the patch. The no-schema fallback uses the same editor.

A sensitive object uses that same hidden editor, including when its schema declares properties. Child titles and stored children stay off the page. An object that is not itself sensitive still expands. A sensitive string stays a password field. Replace all checks the expected JSON kind before it stages a value. A wrong kind leaves the stored value in place and keeps Save disabled. Cancelling that replacement, or cancelling Clear all, clears the blocking validation state.

Evidence

Terminal output from commit 4184c01c.

Passed!  - Failed: 0, Passed: 15, Skipped: 0, Total: 15, Duration: 38 ms
channels.nostr.nsec = masked
channels.nostr.nsecExtra = plain
channels.googlechat.webhookUrl = masked
channels.googlechat.webhook = plain
channels.discord.token = masked

Head 92b1cd635d83f3f038f42f18ceea4d6559b21c5b. ConfigPathSensitivityTests: 22 passed, including channels.slack.webhookUrls, channels.googlechat.webhookUrlExtra as plain, and SchemaEditor_HidesStoredValuesInSensitiveArrays. The parent capture below is 29faa6b2.

The running Config page on this head, after Display Name was changed to after-edit, Save, and Refresh:

Config Channels on this head: Display Name after-edit, two masked Webhook Urls, and Webhook Url Extra benign-near-match

Display Name, both Webhook Urls rows, Webhook Url Extra, and Show JSON are inside this frame. The two stored array items show Leave blank to keep existing value and do not show the stored URLs. Webhook Url Extra shows benign-near-match. Show JSON is visible, so the JSON preview is collapsed. The stored array strings are not on screen.

Redacted patch trace from the same run:

config.patch
baseHashMatched: true
arrayPreserved: true
displayName: after-edit
extra: benign-near-match
config.get after Refresh: displayName after-edit, both array boxes still blank, extra still benign-near-match

This was a loopback stub on 127.0.0.1:18794, not a product OpenClaw gateway. The earlier full-frame capture 6aa74002 is parent 7e488a40. That run did not include an empty array entry.

Head 92b1cd635d83f3f038f42f18ceea4d6559b21c5b keeps a loaded empty string in the array. The same page, after Display Name was changed to after-edit and Save:

Config page keeping two blank webhook rows, including a stored empty entry

Both rows show Leave blank to keep existing value. The stored URL is not on screen. Show JSON is visible.

config.patch
arrayPreserved: true
emptyKept: true
displayName: after-edit

This was a loopback stub on 127.0.0.1:18795, not a product OpenClaw gateway.

Head 26cf9b9fd8fe22ad05550afe215a7b5d3b2c4999 was the read-only note. Head b3c02a5bc0f9a3e37da143b860a0bae4d08e85ce replaces that dead end with Replace all and Clear all. The stored objects are still not copied into the editor.

Webhook Urls note on the previous head: stored values stay hidden and cannot be edited on this page

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: isolated tray on head b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3, Config page. That head is an empty retrigger, and the tree matches 0a3a1c67c876c281efba0739bc088bd9f23e0437. A sensitive array of objects and a sensitive object that declares properties each show a count. The capture applies a replacement, saves it, confirms clear, and cancels a clear. Stored values stay off the page.

Validation

  • Head b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3. Empty retrigger. The tree matches 0a3a1c67c876c281efba0739bc088bd9f23e0437.
  • ./build.ps1: exit 0.
  • Shared: 4107 passed, 32 skipped, 0 failed, 4139 total.
  • Local LF Tray: 3101 passed, 5 failed, 3106 total. Those five compare multiline source to a hardcoded CRLF snippet. That mismatch is #1518.
  • That Tray run includes UseHiddenObjectEditor_SensitiveObjectWithProperties_StaysHidden, ArrayItemKinds_RejectsTheWrongJsonKind, ArrayItemKinds_AcceptsObjectAndStringReplacements, SensitiveObject_UnrelatedEditAndCancel_PreserveStoredObject, and SensitiveObject_ReplaceSendsOnlyTheNewObject_ClearSendsEmptyObject. webhookUrlExtra stays plain.

Head 3f81db4d114cba09c3bb2cb66c8fb113bf511152:

  • ./build.ps1: exit 0.
  • Shared: 4107 passed, 32 skipped, 0 failed, 4139 total.
  • Local LF Tray: 3102 passed, 5 failed, 3107 total. The same five CRLF source-contract checks as #1518.
  • SensitiveArray_RejectedRetryThenCanceledClear_RestoresCommittedReplacement passed. SchemaEditor_HidesStoredValuesInSensitiveArrays passed.

Real Behavior Proof

Head 8289cc05de13fedc50cf74b5cc8d90f034f9e320. A confirmed Replace all or Clear all now sends replacePaths for that field. Canceling a later invalid edit restores a committed clear. The isolated Config page proof passed again in 52 seconds, and the saved patch named webhookUrl. The fixture rejects an array change that omits replacePaths. Shared tests: 4280 passed, 34 skipped. The plaintext disclosure when a sensitive object is opened from the tree is a late finding on unchanged code and is not changed here.

Current head acac2e7b5744474fb3b7624c185d3de0f8b4220d includes main so the pull can run CI. The Config page sequence was run again on that merged tree. The fixture config was one webhookUrl object array, https://stored.example/old-hook, and the fixture granted operator.write only for this scenario. The shared browse fixture still rejects config.patch.

The page clicked Replace all, applied [{"url":"https://example.invalid/hook-dummy"}], and showed "Replacement is ready to save." It applied not-json, showed Invalid JSON:, opened Clear all, and chose Cancel. The replacement status returned. Save Changes sent config.patch containing hook-dummy and not old-hook. The page reloaded from config.get and showed "1 entry is configured. Stored values stay hidden." ConfigPage_ReplacementSurvivesInvalidRetryAndCanceledClear passed in 32 seconds on the merged app. Gateway fixture protocol tests after the merge: 40 passed. ./build.ps1 and Shared tests (4107 passed, 32 skipped) were run on 406fe032 before the merge.

  • Behavior or issue addressed: a sensitive object whose schema declares properties was expanded into child controls, and Replace all accepted the wrong JSON kind.
  • Real environment tested: Windows isolated tray on head b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3 (empty retrigger, same tree as 0a3a1c67c876c281efba0739bc088bd9f23e0437). Loopback stub ws://127.0.0.1:18796. Registry isLocal false. Fake shared token. Deep link openclaw://hub/config. ./build.ps1, Shared, and Tray for this head are in Validation above.
  • Exact steps or command run after this patch: Opened Channels with Show JSON collapsed. Applied ["not-an-object"] to Webhook URLs. Opened Clear all and chose Cancel. Applied [{"url":"https://example.invalid/hook-dummy"}] to Webhook URLs and {"id":"replacement-dummy"} to Secret Bundle, then saved. After reconnect, confirmed Clear all on Webhook URLs and saved again.
  • Evidence after fix: The first patch set webhookUrls to the dummy array and secretBundle to {"id":"replacement-dummy"}. The second patch set webhookUrls to [] and left secretBundle as that dummy object. The stored marker was absent from both changed fields. Display Name stayed after-edit. Webhook URL Extra stayed benign-near-match.
  • Observed result after fix: Secret Bundle and Webhook URLs each opened as "1 entry is configured. Stored values stay hidden." The child title Bundle Id was not on the page. The invalid item showed "Item 1: Must be a JSON object." and "Fix validation errors before saving", with Save disabled. Cancel on the Clear all dialog cleared that error and left both counts at one entry, with Save still disabled. After the dummy apply, both fields said "Replacement is ready to save." and Save Changes was enabled. Save showed "Saving configuration" and "Gateway restarting". Reload showed "Gateway reconnected" with both counts still one entry. The confirmed clear showed "This array will be cleared on save.", then reload showed Webhook URLs as "0 entries are configured. Stored values stay hidden." and Secret Bundle still as one entry.
  • Screenshot or artifact links verified? Yes. The ten frames below are the b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3 tree, captured on 0a3a1c67. The three frames after those are head a18cd305, where Apply, the confirmation Clear all, and Save were not clicked. The pictures in Evidence are earlier heads. The password-field capture 6aa74002 on 7e488a40 was not recaptured.

Channels on 0a3a1c67: Webhook URLs and Secret Bundle each show one hidden entry, Show JSON collapsed

Invalid replace on 0a3a1c67: a string item is rejected and Save stays disabled

Clear all confirmation on 0a3a1c67, with the rejected replacement still blocking save

Clear all cancelled on 0a3a1c67: validation is clean and both counts stay at one entry

Replacements ready on 0a3a1c67: Save Changes is enabled for the dummy array and dummy object

Save on 0a3a1c67: Saving configuration and Gateway restarting

Reload on 0a3a1c67: Gateway reconnected, both fields still one hidden entry

Confirmed clear ready on 0a3a1c67: Webhook URLs will be cleared and Secret Bundle stays one entry

Clear save on 0a3a1c67: Saving configuration while Secret Bundle stays a count

Reload after clear on 0a3a1c67: Webhook URLs shows zero entries and Secret Bundle stays one entry

Channels on a18cd305: one hidden webhook entry, plain Webhook URL Extra, and Show JSON

Replace all on a18cd305: the JSON box starts empty

Clear all on a18cd305: confirmation before the stored entries are removed

  • Not verified / blocked: This gateway was a loopback stub on 127.0.0.1:18796. The rejected-retry then canceled-clear restore was not opened on the Config page. The session test keeps the committed replacement, and Cancel clear stages that replacement again instead of dropping it.

Security Impact

  • New permissions or capabilities? No
  • Secrets or tokens handling changed? Yes
  • New or changed network calls? No
  • Command or tool execution surface changed? No
  • Data access scope changed? No
  • If any answer is Yes, explain the risk and mitigation: Stored objects are not copied into the editor, including a sensitive object whose schema declares properties. Replace all sends only the newly entered JSON after the item kind checks. Clear all sends an empty array or an empty object after confirmation. A save that does not use those actions leaves the stored value out of the patch. A rejected replacement keeps Save disabled.

Compatibility and Migration

  • Backward compatible? Yes
  • Config or environment changes? No
  • Migration needed? No

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

Config paths whose segment is nsec, and paths that contain webhookUrl,
now use the existing password field that does not preload the stored value.

- Add ConfigPathSensitivity and route SchemaConfigEditor.IsSensitive through it
- Cover nostr nsec, googlechat webhookUrl, and the existing secret names

Signed-off-by: Sebastien Tardif <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This PR masks additional credential fields and adds blank replacement editors and confirmed clearing for sensitive arrays and objects.

Example: Open channels.googlechat.webhookUrl with the stored value https://example.invalid/hook-dummy.

  • Before: The schema editor preloads the value into an ordinary text box.
  • After: The field uses a blank password control whose placeholder explains that leaving it blank preserves the stored value.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, approved work with visible UI evidence, but the save contract and masking completeness still have blocking defects.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Stored Nostr private keys and webhook URLs appear in ordinary editable text controls.
Reason: The masking repair has clear privacy value, and the maintainer explicitly approved the bounded replacement and clearing design.

Merge readiness

⛔ Blocked before merge - 7 items remain

This PR addresses a current-main masking defect and follows an approved maintainer direction, but its replacement, clearing, cancellation, and direct-selection paths need corrections before merge.

Priority: P2
Reviewed head: 2efee1499a5e2a730c4359ba27659e584d3638ea

Before merge

  • Add real behavior proof - Inspected screenshots show the running Config page's hidden controls, invalid-input handling, replacement, clear confirmation, and reload against loopback stubs. The body also reports the native rejected-retry/canceled-clear sequence on acac2e7, whose product code matches this head. These establish UI behavior, but the fixture replaces the configuration document and cannot prove production Gateway replacement or deletion semantics; provide a redacted screenshot, recording, or runtime trace of that boundary after repair, removing IPs, credentials, and non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Carry explicit array replacement intent into the Gateway request (P2) - Replace all and confirmed Clear all stage ordinary arrays, but ConfigPage sends them through PatchConfigDetailedAsync with only raw and baseHash. Gateway v2026.9.6 rejects destructive non-ID array changes without replacePaths and merges ID-keyed arrays. Replacing an existing webhook entry or clearing its array can therefore be rejected, while ID-keyed old entries can remain. Carry the explicitly confirmed paths through the existing save/client boundary and make the fixture enforce that contract.
  • Translate object replacement and clearing into deletion semantics (P2) - For a sensitive object, Clear all stages {} and Replace all stages only the new properties. The shipped config.patch recursively merges objects: replacing stored {"id":"old","material":"stored-secret"} with {"id":"new"} retains material, and clearing with {} retains both properties. Generate a schema-valid patch with exact deletion semantics through the save owner and verify the persisted result; the fixture's whole-document replacement hides this failure.
  • Restore a committed clear when abandoning a rejected replacement (P2) - Confirm Clear all, open Replace all, apply invalid JSON, then cancel the replacement or cancel another clear confirmation. RejectSensitiveDraft removes the pending empty value. ConfirmClear leaves Replacement=null, so cancellation falls through to AbandonSensitiveDraft without restoring the Clear decision. The UI still says the value will be cleared, but an unrelated save preserves the old value. Restore committed Clear decisions as well as Replace decisions.
  • Preserve sensitivity when selecting a sensitive object directly (P2) - The new hidden-object guard checks childPath, but ConfigPage exposes object tree nodes and loads a selected object's schema and value without its full path. Selecting channels.secretBundle with properties such as id and material starts LoadSchema at an empty path, so those stored children render in ordinary text boxes even though the parent Channels view hides the object. Preserve the selected object's sensitivity at the editor boundary while keeping staged paths relative to the selected section. This is a late discovery: the relevant editor and page code is unchanged from the previous reviewed head acac2e7.
  • Resolve security concern: Sensitive-object navigation retains a plaintext disclosure path - The masking-completeness finding concerns local UI disclosure of stored credential material; no new network authorization, execution permission, or authority-bearing token flow is introduced.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Carry explicit array replacement intent into the Gateway request — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:612-617
  • [P2] Translate object replacement and clearing into deletion semantics — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:658-664
  • [P2] Restore a committed clear when abandoning a rejected replacement — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:631-637
  • [medium] Sensitive-object navigation retains a plaintext disclosure path — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:124

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/ConfigPathSensitivityTests.cs: Remove the broad implementation-string and occurrence-count assertions in SchemaEditor_HidesStoredValuesInSensitiveArrays; rendered-control and save-boundary assertions would detect the navigation and persistence defects these checks miss.
  • Missing end-to-end proof: After repair, provide a redacted native Config-page trace against the latest stable Gateway covering preserved existing configuration, exact replacement and clearing, cancellation after a rejected retry, and direct selection of a sensitive object.
Agent review details

How this fits together

The Windows Config page receives Gateway configuration and schema, renders controls, stages edits, and sends them through the shared Gateway client's config.patch RPC for persistence.

flowchart LR
  A[Gateway configuration and schema] --> B[Config page]
  B --> C[Sensitivity classifier]
  C --> D[Schema editor controls]
  D --> E[Pending changes]
  E --> F[Gateway client]
  F --> G[Gateway merge and persistence]
Loading

Technical review

Best possible solution:

Complete the approved hidden editor through the existing Config save owner, preserving full-path sensitivity and exact Gateway replacement, deletion, and cancellation semantics.

Do we have a high-confidence way to reproduce the issue?

Current-main classification and scalar dispatch establish the reported plaintext path, while source inspection establishes the outstanding save and navigation failures without executing target code.

Is this the best way to solve the issue?

The maintainer-approved blank editor is appropriate, but local document replacement must be translated into the Gateway's actual merge contract and applied consistently when navigating directly to sensitive objects.

Full review comments:

  • [P2] Carry explicit array replacement intent into the Gateway request — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:612-617
    Replace all and confirmed Clear all stage ordinary arrays, but ConfigPage sends them through PatchConfigDetailedAsync with only raw and baseHash. Gateway v2026.9.6 rejects destructive non-ID array changes without replacePaths and merges ID-keyed arrays. Replacing an existing webhook entry or clearing its array can therefore be rejected, while ID-keyed old entries can remain. Carry the explicitly confirmed paths through the existing save/client boundary and make the fixture enforce that contract.
    Confidence: 0.99
  • [P2] Translate object replacement and clearing into deletion semantics — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:658-664
    For a sensitive object, Clear all stages {} and Replace all stages only the new properties. The shipped config.patch recursively merges objects: replacing stored {"id":"old","material":"stored-secret"} with {"id":"new"} retains material, and clearing with {} retains both properties. Generate a schema-valid patch with exact deletion semantics through the save owner and verify the persisted result; the fixture's whole-document replacement hides this failure.
    Confidence: 0.99
  • [P2] Restore a committed clear when abandoning a rejected replacement — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:631-637
    Confirm Clear all, open Replace all, apply invalid JSON, then cancel the replacement or cancel another clear confirmation. RejectSensitiveDraft removes the pending empty value. ConfirmClear leaves Replacement=null, so cancellation falls through to AbandonSensitiveDraft without restoring the Clear decision. The UI still says the value will be cleared, but an unrelated save preserves the old value. Restore committed Clear decisions as well as Replace decisions.
    Confidence: 0.99
  • [P2] Preserve sensitivity when selecting a sensitive object directly — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:124-127
    The new hidden-object guard checks childPath, but ConfigPage exposes object tree nodes and loads a selected object's schema and value without its full path. Selecting channels.secretBundle with properties such as id and material starts LoadSchema at an empty path, so those stored children render in ordinary text boxes even though the parent Channels view hides the object. Preserve the selected object's sensitivity at the editor boundary while keeping staged paths relative to the selected section. This is a late discovery: the relevant editor and page code is unchanged from the previous reviewed head acac2e7.
    Confidence: 0.98
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Sensitive-field classification and blank scalar controls keeps the original intent (9de9b5b: The Config revamp established schema-guided, permission-aware editing and sensitive-field controls; the PR preserves existing secret-name matches and adds exact credential segments.)
  • Preloaded JSON object editing changes intended behavior with a stated reason (ca09e00: Typed object editing prevented provider objects from being saved as strings; the later maintainer decision explicitly authorizes blank editing for sensitive objects.)
  • Read-only Gateway fixture keeps the original intent (3e74082: The fixture supports exploring and testing without a live Gateway; the writable config scenario remains opt-in and shared browsing still rejects writes.)

Testing

Proof path: shipped entry point.

Security

Needs attention: The hidden-object confidentiality contract remains incomplete when a user selects the object directly in the Config tree.

Evidence

Security concerns:

  • [medium] Sensitive-object navigation retains a plaintext disclosure path — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:124
    The masking-completeness finding concerns local UI disclosure of stored credential material; no new network authorization, execution permission, or authority-bearing token flow is introduced.
    Confidence: 0.98

What I checked:

Review metrics

Metric Value Why it matters
Introduced change size Production +540/-35 lines; tests and fixtures +529/-3 lines. The approved hidden editing flow explains the expanded scope, but its save-boundary coverage currently uses different persistence semantics.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The PR repairs credential visibility in an advanced Config workflow and has bounded defects in the new editing actions.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (26 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-29T01:35:46.515Z sha a18cd30 :: needs changes before merge. :: [P2] Clear hidden validation errors when cancelling Clear all
  • reviewed 2026-09-29T04:06:17.441Z sha a18cd30 :: needs changes before merge. :: [P2] Clear abandoned validation errors when Clear all is cancelled
  • reviewed 2026-09-29T15:26:11.590Z sha adc98c4 :: needs real behavior proof before merge. :: [P2] Route sensitive objects before expanding schema properties
  • reviewed 2026-09-29T16:22:32.654Z sha 0a3a1c6 :: needs real behavior proof before merge. :: [P2] Restore the staged replacement when Clear all is canceled
  • reviewed 2026-09-29T16:37:25.196Z sha 0a3a1c6 :: needs changes before merge. :: [P2] Restore the staged replacement after canceling Clear all
  • reviewed 2026-09-29T16:59:50.639Z sha b2c836d :: blocked before merge. :: [P2] Restore the staged value after a rejected retry and canceled clear
  • reviewed 2026-09-30T20:49:32.634Z sha 3f81db4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-14T04:51:53.733Z sha acac2e7 :: needs real behavior proof before merge. :: [P2] Carry explicit array replacement intent into the Gateway request | [P2] Translate object replacement and clearing into actual deletion semantics | [P2] Restore a committed clear when abandoning a rejected replacement

Reviewed October 14, 2026, 1:16 AM ET / 05:16 UTC (Revision 27).

@shanselman

Copy link
Copy Markdown
Collaborator

Hi @SebTardif, Copilot here helping Scott triage your OpenClaw fixes. Thank you for the careful follow-ups and for keeping the repairs on the original PR branches. There are now 23 open PRs from this batch, and we want to give each one a fair, timely review rather than let useful fixes get lost in the queue.

Could you focus on closing ClawSweeper's current-head, changed-behavior proof requests on a smaller set before adding more follow-ups? A concise proof on the PR itself is ideal: exact head SHA, the smallest full required build/Shared/Tray and focused test counts, and a redacted real-path observation of the behavior the patch changes. Please mark anything unavailable as Not verified / blocked rather than treating a unit test or a green label as a substitute. You do not need to re-explain the same Gateway 2026.9.6 setup failure on every PR; #1498 tracks that shared baseline separately.

For this PR, the next decisive item is an isolated running Config page view showing stored Nostr nsec and Google Chat webhookUrl in password-style controls without preloading plaintext; the helper tests alone do not show the live UI. For the other PRs, please follow their particular ClawSweeper request (for example, a real Gateway/token handoff or strict MXC when authorization changes). We will take the ones that clear the required proof and checks with >=90% independent confidence, and give focused feedback on the others. No need to race the bot or produce broad unrelated proof. Thanks for collaborating with us.

@karkarl

karkarl commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Global triage: HOLD_FOR_AUTHOR. Take confidence 15%; recommendation confidence 99%; effort small code fix plus medium proof; risk medium.

The real Nostr credential path remains unmasked. The classifier recognizes an exact nsec segment, but the supported Gateway schema uses channels.nostr.privateKey. That path still routes through the ordinary TextBox. The attached loopback proof modeled nsec, so it did not exercise the product contract.

Please classify the exact privateKey segment, add channels.nostr.privateKey regression coverage, and rerun windows-winui-interactive against the current supported Gateway. Show the Nostr private key and Google Chat webhook URL as password controls, preserve existing secrets while editing an unrelated field, then save/reload. Do not capture secret values.

The failed E2E lanes reproduce on the exact base in shared Gateway restart setup; CI Gate is derivative. Core, Tray, and UI/accessibility checks passed at this head, but the required exact build, Shared, and Tray closeout results are not reported in the PR body.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 25, 2026
The editor treated an exact nsec segment as secret, but the Gateway
property is channels.nostr.privateKey. That stored value still loaded
into a plain text box.

Match an exact privateKey segment the same way as nsec. A longer name
such as privateKeyExtra stays plain.

Validation: ./build.ps1 exit 0. Shared 4107 passed, 32 skipped, 0 failed
(4139 total). ConfigPathSensitivityTests 19 passed. Tray 3086 passed
and 5 failed (3091 total). Those five are the existing LF source checks.

Signed-off-by: Sebastien Tardif <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 25, 2026
@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 25, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Maintainer review at exact head 7e488a40754685220cdfa5b0b5b7fb2d06fe95ad: do not merge yet.

The current-head screenshot and redacted patch trace are useful proof for the two scalar fields shown: channels.nostr.privateKey and channels.googlechat.webhookUrl render as password controls, and an unrelated save preserves their stored values. The required build, focused config contracts, and full Tray suite also pass locally.

There is one concrete in-scope blocker before this can reach the requested >=90% landing confidence:

  • ConfigPathSensitivityTests asserts channels.slack.webhookUrls is sensitive, but SchemaConfigEditor.RenderField dispatches arrays and objects before consulting isSensitive. Existing string-array items are copied into ordinary TextBox.Text, complex arrays/objects are serialized into plaintext JSON editors, and the no-schema array fallback also prints the stored array. This means a path the new test declares protected is still exposed by the actual editor. The structured autoreview independently reported this as P2 with 98% confidence; the security and rubber-duck reviews reached the same conclusion.

Please make sensitivity control rendering, not only classification:

  1. Ensure sensitive arrays/objects never preload stored contents into a TextBox or JSON editor. Preserve the current blank/unmodified secret semantics during unrelated saves.
  2. Add a rendering/source contract covering both schema and no-schema fallback paths, asserting that stored webhook values never enter visible plaintext controls.
  3. Keep the new matching exact. Add a benign near-match such as webhookUrlExtra to the negative cases. If this PR is intentionally scalar-only, narrow the title/body/tests and track the remaining array exposure explicitly, but the present webhookUrls = sensitive claim cannot remain without working UI behavior.
  4. Broader follow-up: the Gateway schema has authoritative sensitive metadata for fields such as Google Chat serviceAccount, Synology incomingUrl, and TLS key/passphrase values, while ConfigPage.GetSchemaRoot currently drops uiHints. Path heuristics cannot be comprehensive; please either consume that metadata in a focused follow-up or document the compatibility boundary.

Validation on this exact head:

  • ./build.ps1: passed.
  • Focused ConfigPathSensitivityTests + ChannelsPageDiscordConfigContractTests: 22 passed.
  • Full Tray: 3091 passed, 0 failed.
  • Full Shared: 4103 passed, 35 skipped, 1 failed repeatedly in the unrelated McpHttpServerTests.Dispose_DuringInFlightHandler_DoesNotSurfaceObjectDisposedException; the focused test passes alone.
  • Exact-head CI: Core/Tray/UI passed; setup/revocation/network E2E and CI Gate remain red.
  • Latest main advanced to ecd6aefc (fix(tests): tray source checks fail when the checkout is LF #1518, fix(tests): tray source checks fail when the checkout is LF) and its CI is not green, so the requested current-main-green merge gate is also unmet.

No maintainer patch or commit was added, so Seb’s authorship and branch remain unchanged.

@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 25, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 25, 2026
A sensitive string array, including webhookUrls, uses a password box and does not copy the stored value into it. A blank box keeps the existing item. The schema JSON view and the fallback array view do the same.

./build.ps1 exit 0. Shared tests: 4107 passed, 32 skipped. Tray tests: 3087 passed, 5 failed on the LF source-contract mismatch tracked in openclaw#1518. ConfigPathSensitivityTests: 20 passed.

Signed-off-by: Sebastien Tardif <[email protected]>
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. label Sep 26, 2026
Shared failed only ExtractTarBz2Async_CancellationIsBoundedAndKillsExtractor
because the extractor process was still running. That test passed locally.
Revocation recovery failed in wsl-create: the Ubuntu-24.04 install exited -1
with no output after 900 seconds. The tree matches 0a3a1c6.

Signed-off-by: Sebastien Tardif <[email protected]>
@SebTardif

Copy link
Copy Markdown
Contributor Author

@shanselman

The red checks on the previous head are not this config change. Shared failed one cancellation test because the piper extractor process was still running, and that same test passed locally. Revocation recovery stopped while creating the WSL instance: the Ubuntu install exited -1 with no output after 900 seconds. Head b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3 is an empty retrigger of the same tree as 0a3a1c67c876c281efba0739bc088bd9f23e0437.

CI on this head is still running.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 29, 2026
@SebTardif

Copy link
Copy Markdown
Contributor Author

@shanselman

Head b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3 failed two timing checks. Each job had one failure, and both tests passed locally.

CredentialReplacementOperations_WaitForAutomaticLifecycleLease threw TimeoutException. That test gives the setup task 2 seconds after the lifecycle lease is released. Dispose_VoiceCancellationCallbackCanWaitForReentrantControllerWork returned false from its 2 second voice-callback wait. The same tree passed the Tray job on 0a3a1c67. Both tests sit outside the config editor.

This pull already used its empty retrigger, so this head stays.

…celed

A valid Replace all stayed on the edit session after a later invalid
draft was rejected. Canceling Clear all cleared the error and left
the pending change removed, so a later save kept the stored secret.
Cancel clear now stages the committed replacement again.

SensitiveArray_RejectedRetryThenCanceledClear_RestoresCommittedReplacement
passed. ./build.ps1 exit 0. Shared 4107 passed, 32 skipped. Tray 3102
passed and 5 failed, the LF source-contract mismatch in openclaw#1518.

Signed-off-by: Sebastien Tardif <[email protected]>
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient Contributor real behavior proof is sufficient. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 30, 2026
@karkarl

karkarl commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Global triage: HOLD_FOR_AUTHOR. Take confidence 20%; recommendation confidence 98%; effort medium; risk medium.

Reviewed exact head 3f81db4d114c. GitHub currently reports CLEAN with 25 passing, 1 failing, and 0 pending checks. needs-proof label is present. Durable automated signal: Codex review: needs real behavior proof before merge..

Author: investigate the 1 failing check(s), establish whether each failure is branch-owned, and publish a green exact-head CI Gate before reconsideration.

This is a triage classification, not a merge action. No branch changes were made.

…g page

The isolated fixture app opens Config, applies a webhook replacement,
rejects invalid JSON, cancels Clear all, and saves. The patch contains
the replacement, and the reloaded page shows one hidden stored entry.
The shared browse fixture stays read-only.

Signed-off-by: Sebastien Tardif <[email protected]>
The proof test conflicted with the current fixture host. The sensitive
webhook scenario stays opt-in, and the browse fixture remains read-only.
The Config page sequence passed again on the merged tree.

Signed-off-by: Sebastien Tardif <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Oct 14, 2026
MxcExecutorTests cancellation cleanup measured 2005 ms against a 2 second bound. The blocking-kill case in the same job passed. No product change.

Signed-off-by: Sebastien Tardif <[email protected]>
A confirmed Replace all or Clear all names that path on config.patch so
the Gateway replaces the array or object instead of merging the old
value back. Canceling a later invalid edit restores a committed clear
as well as a committed replacement. The fixture rejects an array change
that omits replacePaths.

Signed-off-by: Sebastien Tardif <[email protected]>
@karkarl

karkarl commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Global repo triage adversarial review

Decision: HOLD_FOR_AUTHOR
Take confidence: 5%
Recommendation confidence: 98%

Both independent reviewers completed against exact head 8289cc05de13fedc50cf74b5cc8d90f034f9e320. The PR is conflicting, required checks are failing or cancelled, current-head interactive proof is missing, and accepted source issues block landing.

Severity Finding Location Fix confidence
HIGH Sensitive object Clear/Replace emits an empty or partial object, but Gateway merge semantics preserve omitted properties. Clear can leave the object unchanged and Replace can retain omitted secrets. SchemaConfigEditor.xaml.cs:638-680 95%
HIGH Rebuilding a section editor clears confirmed array replacement intent while retaining pending values, so later saves can be rejected or preserve old ID-keyed secret entries. ConfigPage.xaml.cs:484-498 95%
HIGH (single-reviewer) Direct tree selection of a sensitive object can lose its full parent path and render ordinary-named children with plaintext controls. SchemaConfigEditor.xaml.cs:53-77,119-128 85%
MEDIUM (single-reviewer) The fixture's object/array merge behavior diverges from the real Gateway and masks the object-retention defect. GatewayScenario.cs (MergeGatewayNode) 90%

Additional lower-confidence concerns cover broad substring sensitivity matching, validation preventing staged Clear operations, and missing replacement intent when removing sensitive string-array rows.

Required next action: resolve conflicts and accepted findings, make the fixture Gateway-faithful, then rerun exact-head build/tests and real-Gateway Clear/Replace persistence proof under windows-winui-interactive.

No code changes or remote branch updates were made by this review.

@bkudiess

Copy link
Copy Markdown
Collaborator

The masking improvement is useful, but these replacement and cancellation paths need fixing before merge. Reviewed head: 8289cc05de13fedc50cf74b5cc8d90f034f9e320.

Object replacement and fixture semantics

Clear all sends {}, and Replace all sends the new object. The Gateway recursively merges objects, however, and replacePaths applies only to arrays. Clearing therefore removes nothing, and replacement can retain omitted secret-bearing properties.

The fixture incorrectly replaces whole objects at matching paths. It also differs on null deletion, ID-array merging and array-change validation, weakening the persistence checks.

Please use supported object deletion/replacement semantics, align the fixture, and verify removed properties are absent after a real Gateway save/reload.

Preserve array-replacement intent across navigation

Apply a sensitive-array replacement or clear, navigate away and back, then edit a sibling field. The rebuilt editor has the pending value but no replacement metadata, so SyncReplacePaths drops the earlier confirmation.

Save can then be rejected or merge an ID-keyed array instead of replacing it. Please preserve intent alongside pending values and test replace/clear → navigation → sibling edit → save.

Clear stale fallback validation when canceling

In the fallback editor, apply a valid replacement, attempt invalid JSON, open Clear all, then Cancel. The handler restores the valid replacement, but the fallback callback leaves the rejected draft’s validation error. The UI says “Replacement is ready to save” while Save remains blocked.

Please revalidate the restored operation and cover this fallback sequence with and without a previous committed replacement.

These are static source/contract findings, not local reproductions. The focused Config UI test was skipped in the exact-head CI run; please ensure the revised cases execute and verify persistence against a version-pinned real Gateway.

Keep config.patch replacement on the current hello-ok fixture, and keep main's binding route tests.

Signed-off-by: Sebastien Tardif <[email protected]>
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@SebTardif

Copy link
Copy Markdown
Contributor Author

This pull is still the current fix. I am leaving the reviewed head as it is. This note is only so the inactivity mark does not close it.

@github-actions github-actions Bot removed the stale label Nov 7, 2026
@roboclaw-bot

Copy link
Copy Markdown
Contributor

PR cleanup review

Reviewed head: 10cf1e28aeb862b2286af7ddfbccdf1aa6ea3abd. Main comparison: e59374c064f43d68f5c72d070d4c89ef2d20ec3b.

The extra masking remains needed on main, and the earlier missing array-replacement metadata/committed-clear fixes are present. There are still current issues to address before landing: object Clear/Replace is sent as an empty/partial object, which real Gateway merge semantics preserve rather than replace; the fixture currently hides that by replacing whole objects. Direct tree selection also loses the sensitive ancestor path, and navigating away/back can lose confirmed replacement intent on the next edit. Please fix those paths plus fallback cancellation validation, align the fixture with the protocol, and demonstrate current-head real Gateway save/reload with removed object properties absent. The current UI failure needs investigation, not an automatic flaky rerun. The active masked-object load fixes overlap owners but do not supersede this work.

Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@github-actions github-actions Bot added the stale label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. stale status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants