Repository navigation
Conversation
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]>
|
🦞👀 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. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d096d5381c9f. Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: The hidden-object confidentiality contract remains incomplete when a user selects the object directly in the Config tree. EvidenceSecurity concerns:
What I checked:
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (26 earlier review cycles; latest 8 shown)
Reviewed October 14, 2026, 1:16 AM ET / 05:16 UTC (Revision 27). |
|
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 For this PR, the next decisive item is an isolated running Config page view showing stored Nostr |
|
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 Please classify the exact 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. |
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]>
|
Maintainer review at exact head The current-head screenshot and redacted patch trace are useful proof for the two scalar fields shown: There is one concrete in-scope blocker before this can reach the requested >=90% landing confidence:
Please make sensitivity control rendering, not only classification:
Validation on this exact head:
No maintainer patch or commit was added, so Seb’s authorship and branch remain unchanged. |
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]>
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]>
|
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 CI on this head is still running. |
|
Head
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]>
|
Global triage: HOLD_FOR_AUTHOR. Take confidence 20%; recommendation confidence 98%; effort medium; risk medium. Reviewed exact head 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]>
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]>
Global repo triage adversarial reviewDecision: Both independent reviewers completed against exact head
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 No code changes or remote branch updates were made by this review. |
|
The masking improvement is useful, but these replacement and cancellation paths need fixing before merge. Reviewed head: Object replacement and fixture semanticsClear all sends 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 navigationApply 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 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 cancelingIn 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]>
|
This pull request has been automatically marked as stale due to inactivity. |
|
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. |
PR cleanup reviewReviewed head: 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. |
|
This pull request has been automatically marked as stale due to inactivity. |
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 namednsec,privateKey,webhookUrl, orwebhookUrlstakes the existing sensitive field.webhookUrlExtrastays 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.Head
92b1cd635d83f3f038f42f18ceea4d6559b21c5b.ConfigPathSensitivityTests: 22 passed, includingchannels.slack.webhookUrls,channels.googlechat.webhookUrlExtraas plain, andSchemaEditor_HidesStoredValuesInSensitiveArrays. The parent capture below is29faa6b2.The running Config page on this head, after Display Name was changed to
after-edit, Save, and Refresh: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 valueand do not show the stored URLs. Webhook Url Extra showsbenign-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:
This was a loopback stub on
127.0.0.1:18794, not a product OpenClaw gateway. The earlier full-frame capture6aa74002is parent7e488a40. That run did not include an empty array entry.Head
92b1cd635d83f3f038f42f18ceea4d6559b21c5bkeeps a loaded empty string in the array. The same page, after Display Name was changed toafter-editand Save:Both rows show
Leave blank to keep existing value. The stored URL is not on screen. Show JSON is visible.This was a loopback stub on
127.0.0.1:18795, not a product OpenClaw gateway.Head
26cf9b9fd8fe22ad05550afe215a7b5d3b2c4999was the read-only note. Headb3c02a5bc0f9a3e37da143b860a0bae4d08e85cereplaces that dead end with Replace all and Clear all. The stored objects are still not copied into the editor.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: isolated tray on headb2c836d4b9dae9d24fa430e0c8633cc2ac206ac3, Config page. That head is an empty retrigger, and the tree matches0a3a1c67c876c281efba0739bc088bd9f23e0437. 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
b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3. Empty retrigger. The tree matches0a3a1c67c876c281efba0739bc088bd9f23e0437../build.ps1: exit 0.UseHiddenObjectEditor_SensitiveObjectWithProperties_StaysHidden,ArrayItemKinds_RejectsTheWrongJsonKind,ArrayItemKinds_AcceptsObjectAndStringReplacements,SensitiveObject_UnrelatedEditAndCancel_PreserveStoredObject, andSensitiveObject_ReplaceSendsOnlyTheNewObject_ClearSendsEmptyObject.webhookUrlExtrastays plain.Head
3f81db4d114cba09c3bb2cb66c8fb113bf511152:./build.ps1: exit 0.SensitiveArray_RejectedRetryThenCanceledClear_RestoresCommittedReplacementpassed.SchemaEditor_HidesStoredValuesInSensitiveArrayspassed.Real Behavior Proof
Head
8289cc05de13fedc50cf74b5cc8d90f034f9e320. A confirmed Replace all or Clear all now sendsreplacePathsfor 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 namedwebhookUrl. The fixture rejects an array change that omitsreplacePaths. 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
acac2e7b5744474fb3b7624c185d3de0f8b4220dincludes main so the pull can run CI. The Config page sequence was run again on that merged tree. The fixture config was onewebhookUrlobject array,https://stored.example/old-hook, and the fixture grantedoperator.writeonly for this scenario. The shared browse fixture still rejectsconfig.patch.The page clicked Replace all, applied
[{"url":"https://example.invalid/hook-dummy"}], and showed "Replacement is ready to save." It appliednot-json, showedInvalid JSON:, opened Clear all, and chose Cancel. The replacement status returned. Save Changes sentconfig.patchcontaininghook-dummyand notold-hook. The page reloaded fromconfig.getand showed "1 entry is configured. Stored values stay hidden."ConfigPage_ReplacementSurvivesInvalidRetryAndCanceledClearpassed in 32 seconds on the merged app. Gateway fixture protocol tests after the merge: 40 passed../build.ps1and Shared tests (4107 passed, 32 skipped) were run on406fe032before the merge.b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3(empty retrigger, same tree as0a3a1c67c876c281efba0739bc088bd9f23e0437). Loopback stubws://127.0.0.1:18796. RegistryisLocalfalse. Fake shared token. Deep linkopenclaw://hub/config../build.ps1, Shared, and Tray for this head are in Validation above.["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.webhookUrlsto the dummy array andsecretBundleto{"id":"replacement-dummy"}. The second patch setwebhookUrlsto[]and leftsecretBundleas that dummy object. The stored marker was absent from both changed fields. Display Name stayedafter-edit. Webhook URL Extra stayedbenign-near-match.b2c836d4b9dae9d24fa430e0c8633cc2ac206ac3tree, captured on0a3a1c67. The three frames after those are heada18cd305, where Apply, the confirmation Clear all, and Save were not clicked. The pictures in Evidence are earlier heads. The password-field capture6aa74002on7e488a40was not recaptured.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
NoYesNoNoNoYes, 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
YesNoNoReview Conversations