Repository navigation
test(auth): assert SecretRef plaintext is absent from storage - #207698
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR checks persisted SecretRef credentials for plaintext before reloading them through normalization. Example: Save openai:default with key sk-plaintext and an OPENAI_API_KEY SecretRef after accidentally disabling serializer redaction.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR closes a real test blind spot with a focused raw-storage assertion; no actionable defects were found, and it remains a draft. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAuth-profile persistence serializes credentials into SQLite JSON; runtime loading normalizes that JSON, while the existing raw inspector exposes it directly. flowchart LR
A[Credential fixture] --> B[Save auth profile store]
B --> C[Credential serializer]
C --> D[SQLite JSON]
D --> E[Raw inspector assertion]
D --> F[Runtime normalization]
F --> G[Existing reload assertions]
Technical reviewBest possible solution: Retain the raw-storage assertion alongside the existing runtime assertions. Do we have a high-confidence way to reproduce the issue? Source confirms the test blind spot: reload normalization drops an API key when keyRef exists, independently of storage redaction; the author reports a matching mutation control. Is this the best way to solve the issue? The assertion observes the correct persistence boundary through an existing inspector and adds no fixture, helper, or production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fbf1aaedb073. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +6. Total +6 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 Reviewed November 28, 2026, 2:46 PM ET / 19:46 UTC. |
…or baseline * commit '2f2edbf36836a8ddc6758dfdcce872d4414a3a92': (520 commits) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) chore(i18n): refresh native locales (#207796) fix: name safe recovery when agent schema markers disagree (#207705) improve(ui): show only setup warnings on skill pages (#203750) fix(gateway): keep Linux legacy lock recovery explicit (#207340) fix: deliver a saved child answer after a Gateway crash (#207706) fix(ui): fold background command wakes into chat activity (#207305) fix: restore the Feishu proxy transport tests (#207782) ...
|
Merged via squash auto-merge.
|
…line * commit '652611b9d924c754ac7a18d0081cce6e1ec765df': (527 commits) refactor(infra): simplify audit recovery write progress (#157141) fix: show restart blockers in service logs (#207879) test(infra): exercise group identity in session roundtrip (#207671) test(infra): exercise live owner expiry policy (#207672) feat: let Knowledge learn from your Gmail through Composio (#207266) test: stop the history-worker overload test from failing CI on slow runners (#207862) test(auth): assert SecretRef plaintext is absent from storage (#207698) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) ...
…line * commit 'c876514dc21154a07f3755320495d2a93584b46b': (538 commits) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) refactor(infra): simplify audit recovery write progress (#157141) fix: show restart blockers in service logs (#207879) test(infra): exercise group identity in session roundtrip (#207671) test(infra): exercise live owner expiry policy (#207672) feat: let Knowledge learn from your Gmail through Composio (#207266) test: stop the history-worker overload test from failing CI on slow runners (#207862) test(auth): assert SecretRef plaintext is absent from storage (#207698) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) ...
* commit '2194d14488091e2047d2f87ebbb093212f30840e': (540 commits) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) refactor(infra): simplify audit recovery write progress (#157141) fix: show restart blockers in service logs (#207879) test(infra): exercise group identity in session roundtrip (#207671) test(infra): exercise live owner expiry policy (#207672) feat: let Knowledge learn from your Gmail through Composio (#207266) test: stop the history-worker overload test from failing CI on slow runners (#207862) test(auth): assert SecretRef plaintext is absent from storage (#207698) ...
What Problem This Solves
The SecretRef persistence case reloads saved credentials through normalization. That reload discards an API key when a keyRef exists, so the test can stay green when plaintext was written to SQLite.
User Impact
Check the raw persisted profiles before reloading them. Keep all 16 cases and the existing runtime assertions; production code is unchanged.
Why This Change Was Made
The existing raw-store inspector parses SQLite JSON without credential normalization. Comparing the two saved profiles catches plaintext fields while allowing unrelated top-level metadata.
Evidence