test(security): remove secret-like redaction fixture literals - #1997
test(security): remove secret-like redaction fixture literals#1997seonghobae wants to merge 1 commit into
Conversation
|
Warning Review limit reachedNext included review available in 28 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Exact-head verification receipt for
Fresh hosted state is non-terminal: |
|
DESIGN ASSURANCE exact-head admission — The bounded fixture repair preserves runtime redaction semantics and introduces no suppression, but this head is not merge-ready. Fresh hosted evidence is terminal failure for Keep the valid one-file delta and treat the Noema outcome as substantive fail-closed review evidence, not a transient success. Repair or obtain a new exact-head verdict that either removes the confirmed issue or returns CHANGES_REQUESTED consistently; then require terminal CodeQL/coverage/OpenCode and independent review before Ready/ordinary merge. |
There was a problem hiding this comment.
Pull request overview
OpenCode could not approve from deterministic current-head evidence because GitHub Checks have failed.
Findings
1. HIGH Current-head GitHub Checks - Fix failed required checks before approval
- Problem: Failed same-head checks remain for
41e5be557c9587545203a10bb301d7ebd0de9ba2. - Root cause: The model-unavailable evidence fallback is allowed only when peer GitHub Checks are complete and clean.
- Fix: Read and fix the failed check logs below, then rerun the current-head checks.
- Regression test: Keep the model-unavailable fallback gated on an empty failed-check rollup.
Failed checks:
- CodeQL PR/CodeQL compatibility analysis (actions): FAILURE (https://github.com/ContextualWisdomLab/.github/actions/runs/34079059969/job/101622071973)
- CodeQL PR/CodeQL compatibility analysis (python): FAILURE (https://github.com/ContextualWisdomLab/.github/actions/runs/34079059969/job/101622072014)
- CodeQL compatibility analysis (actions) check run: failure (https://github.com/ContextualWisdomLab/.github/actions/runs/34079059969/job/101622071973)
- CodeQL compatibility analysis (python) check run: failure (https://github.com/ContextualWisdomLab/.github/actions/runs/34079059969/job/101622072014)
- Required Noema Review/noema-review: FAILURE (https://github.com/ContextualWisdomLab/.github/actions/runs/34079060227/job/101622121441)
- noema-review check run: failure (https://github.com/ContextualWisdomLab/.github/actions/runs/34079060227/job/101622121441)
Changed-File Evidence Map
flowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Test: test_redact_sensitive_log_json_array.py"]
S1 --> I1["regression suite"]
I1 --> R1["Review risk: Test: test_redact_sensitive_log_json_array.py"]
R1 --> V1["targeted test run"]
OpenCode Review Overview
|
Root cause
GitHub Advanced Security review on #1995 flagged two literal
secret123456789fixtures intests/test_redact_sensitive_log_json_array.pyas Generic API Keys (alerts 445 and 446). These are synthetic redaction inputs, but keeping scanner-shaped literals in protected source creates recurring review/check noise and obscures real secret findings.Repair
The two tests now construct the exact same runtime input from two non-secret-like literal segments. Redaction semantics and expected output are unchanged; only the static source representation changes. No allowlist, scanner suppression, production-path change, or secret masking bypass is introduced.
Exact-head evidence
Exact head remains
41e5be557c9587545203a10bb301d7ebd0de9ba2.34067022633: SUCCESS34067022657: SUCCESS34067022678: SUCCESS34067022616: the prior attempt failed only after both actions and python shards successfully requested their exact-head dispatch and remainedverdict=pending; jobs101580690784and101580690797failed closed rather than manufacturing terminal evidence. The same run is now queued for renewed exact-job processing, so it has no terminal replacement verdict yet.The CodeQL result is the separate canonical recovery boundary in #1902, whose complete current candidate is Ready at exact head
4b025af481f3a4fb0bdb4d400a7e055066a496a2but is not yet protected-main truth. It is not evidence that this redaction repair failed, and the other three suites are not substitutes for CodeQL.Ready admits current-head review; it is not merge, approval, release, or hosted-GREEN evidence. Terminal CodeQL and a qualifying independent review remain merge gates, not Ready prerequisites. After protected-main integration, #1725 must preserve this fix through its normal successor chain. No allowlist, bypass, self-approval, force update, no-op retrigger, or predecessor-evidence transfer is authorized.