fix(scripts): redact matched secret values in client bundle scan output#977
Conversation
The sb_secret_... regex branch stored and printed the full matched secret value, so a real detection would leak the token into CI logs. Retain the raw value only for internal deduplication and log a masked placeholder (prefix + length) instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KETidushUA4xCU38zXUG8C
|
Warning Review limit reached
Next review available in: 10 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
sb_secret_...regex branch inscripts/check-client-bundle-secrets.mjsstored and printed the full matched secret value, so a real detection would leak the token into CI logs.sb_secret_…[redacted, N chars]). Literal string markers (constant names, not secrets) are still logged verbatim.Verification
node --check scripts/check-client-bundle-secrets.mjs(syntax) andnpx prettierformattingnpm run verify:pr-local— change is limited to a standalone CI helper script's log-output masking with no runtime/app surface; validated the mask logic directly instead.Risk and rollout
Notes
Generated by Claude Code