Repository navigation
fix(config): preserve plugin secret references in Settings saves - #139536
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: blocked before merge. Reviewed September 5, 2026, 10:46 PM ET / September 6, 2026, 02:46 UTC. ClawSweeper reviewWhat this changesCarries plugin-declared secret paths into Settings redaction hints and schema caching so unrelated saves preserve concealed secret references. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful repair: current main still omits the plugin secret-path metadata. No blocking patch findings remain, and the supplied before/after evidence demonstrates the affected Settings save. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway builds Settings metadata from plugin manifests and uses it to conceal credentials before returning configuration to the browser. Settings saves use the same metadata to restore unchanged concealed values before validation and persistence. flowchart LR
A[Plugin manifest] --> B[Settings schema and sensitivity hints]
C[Existing configuration] --> D[Redacted Settings response]
B --> D
D --> E[Unrelated Settings edit]
E --> F[Restore values and check reference identity]
B --> F
C --> F
F --> G[Save configuration or reject identity change]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +10, Tests +141, Docs +2, Generated 0. Total +153 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use existing manifest secret declarations consistently for Settings redaction while preserving the established reference-identity checks. Do we have a high-confidence way to reproduce the issue? Yes: source traces the missing wildcard sensitivity hint to over-redaction and subsequent identity rejection, and the supplied browser observations demonstrate that failure before the repair. This review did not execute a current-main reproduction. Is this the best way to solve the issue? Yes: projecting existing declarations at the metadata producer repairs the shared path without weakening restoration or introducing a competing API. The earlier generic upgrade concern does not identify a changed persisted contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ef5972108dc6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
Project declared SecretInput paths into runtime sensitivity hints and schema cache identity. Preserve concealed identifiers through unrelated form edits without weakening identity checks. Co-authored-by: robojarvis <[email protected]>
0c37181 to
f914c62
Compare
|
landpr-approve-unrelated-red |
|
Thanks @robojarvis! Proof: Real Control UI Settings save on the matching Gateway/UI build, successful acknowledgement, persisted reread, and browser refresh. Both wildcard SecretRefs and the plaintext sibling remained unchanged. Identifiers and plaintext stayed concealed; changed source/provider probes were rejected.
131 focused tests, type-aware lint, formatting, generated documentation checks, and exact-head review passed. Independent browser acceptance covered the user-visible flow; the internal schema-cache requirement has separate regression coverage. CI exception: Used the approved guarded exception for the sole failing child in completed run 34006723288, attempt 1: check-additional-boundaries. The aggregate gate reflects that failure; all other jobs succeeded or were skipped. PR #139592, commit 41fba39c40aa, added src/logging/diagnostic-gc.test.ts, increasing the services test group from 720 files in its raw parent to 721 against the unchanged 720 limit. The executed merge |
* origin/main: fix(ci): rebalance services test roots below the memory bound (openclaw#139645) fix(backup): exclude shared workspace files from state-only archives (openclaw#139598) fix(config): preserve plugin secret references in Settings saves (openclaw#139536) fix(ui): retain real-Gateway browser proof across reruns (openclaw#134274) fix(browser): preserve node filenames in proxy media (openclaw#139559) fix(qa): give hot-reload maintenance proofs their own budgets (openclaw#139580) fix(streaming): preserve assistant items and settled output (openclaw#139507) fix(android): reconnect secondary gateways after rapid lifecycle changes (openclaw#139319) fix(gateway): restart inside a marker-less LaunchAgent no longer kills its caller (openclaw#139628)
* commit '5b099995413589f41904cef1413c62239542aa7c': fix(ci): rebalance services test roots below the memory bound (#139645) fix(backup): exclude shared workspace files from state-only archives (#139598) fix(config): preserve plugin secret references in Settings saves (#139536) fix(ui): retain real-Gateway browser proof across reruns (#134274)
…nclaw#139536) Preserve plugin-declared SecretInput references during unrelated Control UI Settings saves. Carry manifest paths into runtime sensitivity hints and schema cache identity without changing reference-identity validation. Verified real Settings save, persisted reread, browser refresh, wildcard and local-reference behavior, plaintext redaction, and rejection of changed reference identities. Focused tests, type-aware lint, formatting, and generated configuration documentation checks pass. Co-authored-by: Ayaan Zaidi <[email protected]>
…nclaw#139536) Preserve plugin-declared SecretInput references during unrelated Control UI Settings saves. Carry manifest paths into runtime sensitivity hints and schema cache identity without changing reference-identity validation. Verified real Settings save, persisted reread, browser refresh, wildcard and local-reference behavior, plaintext redaction, and rejection of changed reference identities. Focused tests, type-aware lint, formatting, and generated configuration documentation checks pass. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit d6eba6c)
What Problem This Solves
Fixes an issue where an unrelated Control UI Settings edit fails to save when a plugin configuration contains a structured SecretRef at a declared wildcard secret path.
Related: #106460. This addresses the current Settings form path.
Why This Change Was Made
The runtime schema omitted plugin-declared SecretInput paths. Redaction then concealed the reference's source and provider, so the write-side identity check rejected an unchanged reference. The metadata collector now carries the manifest paths into sensitivity hints and schema cache identity, including paths behind local schema references.
The existing reference-identity check remains unchanged. This adds no configuration option, schema migration, or plugin-specific exception.
User Impact
Unrelated Settings saves preserve existing plugin secret references. The source and provider remain visible; the identifier and plaintext values remain concealed. Changing the reference identity still requires an explicit identifier.
Evidence
Tested matching Gateway and Control UI builds with two structured-reference webhook routes and a plaintext sibling, using synthetic configuration only.
dbba8d30da1f914c62a79eINVALID_REQUEST; persisted route data stayed unchanged.git diff --checkpass. The CI provenance below records the known inherited boundary failure.CI provenance: run 34006723288, boundary job checks the candidate merged into main
80a898592283. Its services group has 721 test files against the existing 720 limit. PR #139592, commit41fba39c40aa, addedsrc/logging/diagnostic-gc.test.tsand crossed that limit. Its parent has 720 roots; the commit has 721. This repair changes neither that file set nor the guard. Isolated baseline and candidate checks pass; adding that exact new file to baseline reproduces the CI error.The repair preserves the original contributor's credit.