Repository navigation
Prevent plaintext provider keys in generated models config - #84613
VibhorGautam wants to merge 2 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 1, 2026, 5:42 AM ET / 09:42 UTC. Summary PR surface: Source +6, Tests +34. Total +40 across 2 files. Reproducibility: yes. at source level: current main returns no source marker for a non-SecretRef plaintext source Review metrics: 1 noteworthy metric.
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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land one maintainer-selected generated-credential fix that removes prompt-visible provider secrets from root and plugin catalog outputs while preserving runtime provider auth and upgrade behavior. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main returns no source marker for a non-SecretRef plaintext source Is this the best way to solve the issue? Unclear as the final fix: the helper boundary is plausible for the plaintext source path, but the full generated-credential cluster still needs real generated-file/auth proof and maintainer branch selection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cf2efbe5d515. Label changesLabel justifications:
Evidence reviewedPR surface: Source +6, Tests +34. Total +40 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 PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
@VibhorGautam thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
Thanks for the focused patch. We’re consolidating this security-sensitive generated-catalog work under #88562 and the maintainer-owned direction in #87166. This branch handles only plaintext values present in the source-provider snapshot and represents them as Closing this narrower competing implementation so one current-main fix can define the marker/provenance contract and cover both generated outputs. #88562 and #11829 remain open for the underlying behavior. Thank you for the useful source-snapshot regression case. |
Summary
Fixes #11829
Verification
Real behavior proof
Behavior addressed: The models-config snapshot path serialized the source provider apiKey value (a resolved plaintext credential) directly into the generated models.json file.
Real environment tested: macOS 15.4.1, Node 22.15, local repo checkout at dc1f31b with FS_SAFE_PYTHON_MODE=auto and Python 3.14 (FS_SAFE_PYTHON).
Exact steps or command run after this patch:
Evidence after fix:
Observed result after fix: The snapshot planner substitutes
secretref-managedfor any resolved provider credential. All four values above are extracted live from the generated models.json structure during the local run. The three assertions that gate apiKey redaction fail without the patch; all twelve assertions pass with it.What was not tested: Full integration run against a live cloud provider or production-configured deployment.