Repository navigation
fix(config): preserve secret ownership when configuration rows move - #118149
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 3:45 PM ET / 19:45 UTC. ClawSweeper reviewWhat this changesChanges configuration secret restoration so uniquely identified objects in edited arrays retain their own redacted value after deletion or reordering instead of inheriting the value formerly at the same array position. Merge readinessKeep this PR open for explicit maintainer review: current main restores redacted array entries by position, while the branch matches uniquely identified rows by Priority: P1 Review scores
Verification
How this fits togetherThe Gateway returns redacted configuration to the Control UI and restores placeholders before saving operator edits. The shared restoration path feeds flowchart LR
A[Persisted configuration] --> B[Gateway redacted snapshot]
B --> C[Control UI edits arrays]
C --> D[Gateway write request]
D --> E[Restore redacted values]
E --> F[Match unique row identities]
F --> G[Validated persisted configuration]
Decision needed
Why: The patch is a focused repair for silent secret/session-key misassociation, but it changes the generic configuration write boundary and carries the repository's protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +51, Tests +380. Total +431 across 3 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the shared identity-aware restoration path after the config owner confirms its documented fallback boundary and the remaining exact-head checks finish successfully; do not add a separate Control UI workaround or a parallel config-write path. Do we have a high-confidence way to reproduce the issue? Yes—source inspection gives a high-confidence current-main path: the redacted snapshot preserves rows while Is this the best way to solve the issue? Yes—the branch repairs the shared restore owner used by raw set/apply and merged patch writes, rather than compensating in the Control UI. Matching unique IDs and reserving those originals is the narrowest canonical fix; UI-only matching would leave other Gateway write routes inconsistent. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2970ccb53fb7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (#118193) fix(config): preserve secret ownership when configuration rows move (#118149) fix(cron): deliver failure alerts after persistence (#118200) chore(lint): clear 172 lint:all baseline violations in five batches (#118098) perf(gateway): remove streaming hot-path rescans (#118192) test(gateway): use in-memory task registry (#118191) test(macos): fix three races in the bounded process suites (#118196) refactor(migrate-hermes): consolidate test fixtures (#118182) test(android): share Wear transport fixtures (#118177) test(ui): deduplicate control UI e2e setup (#118180) fix(plugins): unblock prerelease validation (#118103) test(cli): reduce redundant process launches (#118141) test(gateway): compact terminal observer fixtures (#118179) fix(agents): make requested threads sidebar-visible (#118073) test(plugins): canonicalize native resolver fixtures (#118174) test: deduplicate agent runner fixtures (#118176) refactor(policy): consolidate doctor test fixtures (#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (#118127) refactor(matrix): consolidate monitor test fixtures (#118175)
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (openclaw#118193) fix(config): preserve secret ownership when configuration rows move (openclaw#118149) fix(cron): deliver failure alerts after persistence (openclaw#118200) chore(lint): clear 172 lint:all baseline violations in five batches (openclaw#118098) perf(gateway): remove streaming hot-path rescans (openclaw#118192) test(gateway): use in-memory task registry (openclaw#118191) test(macos): fix three races in the bounded process suites (openclaw#118196) refactor(migrate-hermes): consolidate test fixtures (openclaw#118182) test(android): share Wear transport fixtures (openclaw#118177) test(ui): deduplicate control UI e2e setup (openclaw#118180) fix(plugins): unblock prerelease validation (openclaw#118103) test(cli): reduce redundant process launches (openclaw#118141) test(gateway): compact terminal observer fixtures (openclaw#118179) fix(agents): make requested threads sidebar-visible (openclaw#118073) test(plugins): canonicalize native resolver fixtures (openclaw#118174) test: deduplicate agent runner fixtures (openclaw#118176) refactor(policy): consolidate doctor test fixtures (openclaw#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (openclaw#118127) refactor(matrix): consolidate monitor test fixtures (openclaw#118175)
Closes #110658
What Problem This Solves
Fixes an issue where editing configuration arrays in the Control UI could silently assign a deleted or reordered row secret to another row. The original report reproduced the corruption with agent entries; the same shipped and current defect also affects sensitive hook mapping session keys.
Why This Change Was Made
Restore redacted values by each uniquely identifiable array item instead of its previous position. Keep positional behavior only for genuinely unidentifiable or ambiguous rows, reserve already-identified source rows so their secrets cannot be reused, and preserve authored environment-template identity behavior. This repairs the single shared configuration owner used by config set, apply, and patch without adding compatibility shims or exposing secrets.
User Impact
Removing or reordering a configuration row no longer changes which secret belongs to the remaining row. Mixed arrays with optional IDs, duplicate IDs, nested arrays, scalar arrays, new rows, explicit new secrets, and environment-authored IDs retain safe behavior.
Evidence