Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 30, 2026, 9:21 AM ET / 13:21 UTC. Summary PR surface: Source +35, Tests +47. Total +82 across 2 files. Reproducibility: yes. for source-level reproduction: current main persists source env SecretRef ids into generated Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the narrow provider-scoped audit fix after current-head checks complete, allowing the merge to resolve #87723. Do we have a high-confidence way to reproduce the issue? Yes for source-level reproduction: current main persists source env SecretRef ids into generated Is this the best way to solve the issue? Yes. Provider-scoped source marker suppression is narrower than the issue's keyword heuristic suggestion and preserves warnings for arbitrary all-caps strings and cross-provider marker reuse. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against a17c7a56da25. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +35, Tests +47. Total +82 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 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer note: this PR is now marked |
f386257 to
c4a5fd6
Compare
c4a5fd6 to
c897450
Compare
|
Closing to keep my open queue focused — open ~6 days without maintainer review and needs a rebase (behind ~1900) for the stale-base node checks. #87723 has a single 👍 and no active discussion. Happy to reopen and refresh if a maintainer wants the secrets-audit UX fix landed. Thanks! |
Fixes #87723
Summary
models.providers.*.apiKeyenv SecretRefs from source config as provider-scoped generatedmodels.jsonmarkersPLAINTEXT_FOUNDonly when the generated marker matches that source providerReal behavior proof
Behavior addressed:
secrets auditdistinguishes source-managed generated env markers inmodels.jsonfrom plaintext provider keys without broadening the all-caps heuristic.Real environment tested: Linux source checkout at
ffd4a801454a4dfc1929faa13c61dc9b3d62cbe5with dependencies installed viapnpm install --frozen-lockfile.Exact steps or command run after this patch:
git diff --check; one-shotnode --import tsxscript that writes temporaryopenclaw.jsonandagents/main/agent/models.json, then callsrunSecretsAuditfor same-provider and cross-provider marker cases.Evidence after fix: terminal output copied from the one-shot audit proof:
{"sameProviderSuppressed":true,"crossProviderStillWarns":true}Observed result after fix: the matching source-managed
CUSTOM_PROVIDER_API_KEYmarker is not reported as plaintext for its provider, while the same marker under an unrelated provider still reportsPLAINTEXT_FOUND.What was not tested: full
src/secrets/audit.test.tsdid not complete locally within the bounded verification window; CI should run the committed Vitest regression tests.Verification
git diff --checknode --import tsx - <<'EOF' ... EOF, output shown abovenode scripts/run-vitest.mjs run src/secrets/audit.test.ts -t "source-managed custom env apiKey markers|custom env apiKey marker suppression" --reporter=verbose; stopped after it ran over two minutes with no output on this host