Repository navigation
fix: redact dotted API key activity previews - #99460
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 7:35 AM ET / 11:35 UTC. Summary PR surface: Source +8, Tests +54. Total +62 across 2 files. Reproducibility: yes. Source inspection and a read-only regex probe show current main leaves Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land this narrow Activity model redaction change with its regression test after maintainer review and required checks pass, then close the linked issue through the merged PR. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection and a read-only regex probe show current main leaves Is this the best way to solve the issue? Yes. Updating the Activity-local preview redactor is the narrowest maintainable fix; the sibling browser redactor partial-masks and has a different detail-view contract, so reusing it here would change more behavior than needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b52d98861e8c. Label changesLabel justifications:
Evidence reviewedPR surface: Source +8, Tests +54. Total +62 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@clawsweeper re-review Added after-fix terminal proof to the PR body. The proof imports the production |
|
🦞🧹 I asked ClawSweeper to review this item again. |
71f2a55 to
96ef417
Compare
|
Land-ready verification for exact head
Known proof gap: the required existing-profile Chrome bridge exposed no attached user tab, so rendered browser capture was blocked. I did not substitute an isolated browser or source-only claim; the production event-to-render path is covered by the focused tests above. |
|
Merged via squash.
|
* fix: redact dotted API key activity previews * fix(ui): redact quoted activity secrets * fix(ui): handle quoted secret punctuation --------- Co-authored-by: Peter Steinberger <[email protected]>
* fix: redact dotted API key activity previews * fix(ui): redact quoted activity secrets * fix(ui): handle quoted secret punctuation --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit e51b446)
Closes #99459
What Problem This Solves
Control UI Activity output previews could expose dotted credential assignments such as
app.api.key=.... Object-shaped tool results were also vulnerable becausestringifyOutputadds quoted JSON keys before preview redaction.Why This Change Was Made
The Activity preview owner now handles both reachable shapes:
Non-sensitive dotted fields remain visible. The Activity-local rules retain full masking and path redaction; the sibling browser detail redactor intentionally partial-masks values, so replacing this owner with that helper would change the secrecy contract.
AI-assisted: yes. Maintainer deep review expanded the original one-character regex change after fresh autoreview found two additional object-result bypasses.
User Impact
Activity previews no longer display dotted API-key values from text or structured tool results. Ordinary config context such as
server.portremains readable.Evidence
Exact head:
96ef4176e33fa999cbb66582bf08f187aa8ca33bnode scripts/run-vitest.mjs ui/src/ui/activity-model.test.ts ui/src/ui/app-tool-stream.node.test.ts ui/src/ui/views/activity.test.tsupdateActivityFromToolEventcoverage proves properties text, object-shaped JSON, punctuation/escaped quotes, and non-sensitive preservation.Rendered-browser proof gap: the required existing-profile Chrome attachment returned no user tabs. Per the browser-use safety rule, no isolated browser substitute was used. The production model path, rendered Activity consumer, focused tests, and exact-head hosted CI remain the available proof.