Skip to content

fix(security): preserve exact CI evidence while redacting provider secrets - #1242

Open
seonghobae wants to merge 5 commits into
mainfrom
bolt-regex-optimization-9726133996050986471
Open

fix(security): preserve exact CI evidence while redacting provider secrets#1242
seonghobae wants to merge 5 commits into
mainfrom
bolt-regex-optimization-9726133996050986471

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

What\n\n- consolidate provider-prefixed token redaction into one compiled expression\n- redact documented Stripe sk_test_ and sk_live_ secret prefixes\n- redact opaque AWS/Azure values only when a sensitive assignment or JSON key supplies context\n- preserve unlabeled 40-character commit SHAs and other fixed-length audit evidence\n- remove the generated pr_body.txt artifact and unsupported performance claim\n\n## Why\n\nLength-only 40/88-character patterns erased exact Git identities and other legitimate CI evidence. That weakens protected-review traceability while still failing to distinguish opaque credentials reliably.\n\n## Verification\n\nExact head 9bdfcbdaf4d079de3b346e1584dd505c5043afd3:\n\n- full Python: 1,394 passed, 1 skipped, 16 subtests\n- statement/branch coverage: 100% (8,345 statements, 3,212 branches)\n- production docstrings: 100%\n- focused security boundary: 37 passed\n- Python compilation and git diff --check: pass\n\n## Standards and evidence\n\nSee docs/doctoring/ci-log-evidence-redaction.md for the OWASP, AWS, Azure, and Stripe source-backed boundary and APA 7th references.\n\nNo real credential or organization data is stored in fixtures or documentation.

@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 37 minutes

Limit 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.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f0359ef5-ea88-42c0-a38b-6147cf5e12ca

📥 Commits

Reviewing files that changed from the base of the PR and between 885f2cd and 9bdfcbd.

📒 Files selected for processing (4)
  • CHANGELOG.md
  • docs/doctoring/ci-log-evidence-redaction.md
  • scripts/ci/redact_sensitive_log.py
  • tests/test_opencode_security_boundaries.py
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bolt-regex-optimization-9726133996050986471

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

devin-ai-integration[bot]

This comment was marked as resolved.

@seonghobae seonghobae changed the title ⚡ Bolt: 정규표현식 평가 병합 최적화 fix(security): preserve exact CI evidence while redacting provider secrets Aug 23, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

Open in Devin Review

Comment thread scripts/ci/redact_sensitive_log.py

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 9bdfcbdaf4d079de3b346e1584dd505c5043afd3.
  • 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:

Changed-File Evidence Map

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Changed file: CHANGELOG.md"]
  S1 --> I1["repository behavior"]
  I1 --> R1["Review risk: Changed file: CHANGELOG.md"]
  R1 --> V1["required checks"]
  Evidence --> S2["Docs: ci-log-evidence-redaction.md"]
  S2 --> I2["operator or user guidance"]
  I2 --> R2["Review risk: Docs: ci-log-evidence-redaction.md"]
  R2 --> V2["docs review"]
  Evidence --> S3["CI script: redact_sensitive_log.py"]
  S3 --> I3["review and security gate shell path"]
  I3 --> R3["Review risk: CI script: redact_sensitive_log.py"]
  R3 --> V3["bash -n plus Strix self-test"]
  Evidence --> S4["Test: test_opencode_security_boundaries.py"]
  S4 --> I4["regression suite"]
  I4 --> R4["Review risk: Test: test_opencode_security_boundaries.py"]
  R4 --> V4["targeted test run"]
Loading

@opencode-agent

Copy link
Copy Markdown
Contributor

OpenCode Review Overview

  • Head SHA: 9bdfcbdaf4d079de3b346e1584dd505c5043afd3
  • Workflow run: 32647540192
  • Workflow attempt: 1
  • Gate result: REQUEST_CHANGES (approval step)

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 9bdfcbdaf4d079de3b346e1584dd505c5043afd3.
  • 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:

Changed-File Evidence Map

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Changed file: CHANGELOG.md"]
  S1 --> I1["repository behavior"]
  I1 --> R1["Review risk: Changed file: CHANGELOG.md"]
  R1 --> V1["required checks"]
  Evidence --> S2["Docs: ci-log-evidence-redaction.md"]
  S2 --> I2["operator or user guidance"]
  I2 --> R2["Review risk: Docs: ci-log-evidence-redaction.md"]
  R2 --> V2["docs review"]
  Evidence --> S3["CI script: redact_sensitive_log.py"]
  S3 --> I3["review and security gate shell path"]
  I3 --> R3["Review risk: CI script: redact_sensitive_log.py"]
  R3 --> V3["bash -n plus Strix self-test"]
  Evidence --> S4["Test: test_opencode_security_boundaries.py"]
  S4 --> I4["regression suite"]
  I4 --> R4["Review risk: Test: test_opencode_security_boundaries.py"]
  R4 --> V4["targeted test run"]
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant