Repository navigation
fix(rules): ignore credential key-name constants - #1241
WilliamK112 wants to merge 4 commits into
Conversation
Signed-off-by: Ching-Wei Kang <[email protected]>
|
Reviewed head: e8f7d90 Verdict: looks good. Thanks for this. CI is green, the DCO sign-off is present, there is no new runtime dependency, and the CHANGELOG bullet is under Low
Notes for the maintainer
|
Signed-off-by: Ching-Wei Kang <[email protected]>
|
Reviewed head: cab862f Thanks @WilliamK112. Verdict: no code change since the last review; ready for a maintainer merge decision. The only new commit on this branch is a merge of main (
Still open from the earlier pass (low, optional): one test with a key longer than the lookbehind budget and a value equal to its truncated form, to lock in the fallback. Verdict: pending maintainer review (this PR changes secret-detection behaviour). |
|
Reviewed head: 3f2bc70 Thanks @WilliamK112. Verdict: pending maintainer review, because this changes secret-detection behaviour. No code change since the last reviewed head. The only new commit is a merge of main ( Still open from the first review (low, optional): one test with a key longer than the lookbehind budget and a value equal to its truncated form, to lock in the fallback. Conventions: DCO is present on every commit, no new runtime dependency, CHANGELOG bullet is under |
|
@WilliamK112 this is approved and ready to merge, but v0.0.140 just shipped and the PR now conflicts with |
|
Update-branch (merge of main, no rebase): head e8a3b5b = merge commit, parents 3f2bc70 (approved) and 660dcfc (main tip). Non-CHANGELOG patch unchanged: git patch-id --stable a40e180f0df9c7a821836c473baf5119c43efc35 for both, same file list. CHANGELOG bullet under [Unreleased]; released sections equal their tags. Pin for merge once checks are green: e8a3b5b. |
Signed-off-by: Nik Cubrilovic <[email protected]>
e8a3b5b to
67c1d88
Compare
|
Update-branch (merge of main, no rebase): head 67c1d88 = merge commit, parents 3f2bc70 (approved) and 421dbf0 (main tip). Non-CHANGELOG patch unchanged: git patch-id --stable a40e180f0df9c7a821836c473baf5119c43efc35 for both, same file list; CHANGELOG bullet under [Unreleased]. Pin for merge once checks are green: 67c1d88. |
|
Landed, thank you @WilliamK112. Your commit is on main under your name as 37fe29f, shipped in v0.0.141 via the stacked release PR #1272 (the stack was rebase-merged, which is why this PR shows as closed rather than merged). Ignoring credential key-name constants removes a whole class of false positives from the leaked-secrets check. (Nik) |
Summary
Validation
bun run scripts/test-suites.ts --run rules(8,118 passed, 25 existing todos)bun test packages/rules/tests/security/leaked-secrets-precision.test.ts(23 passed)bun run --filter @squirrelscan/rules typecheckbun run docs:checkbash scripts/test-changelog-extraction.shdetect-secrets-hook --baseline .secrets.baselinegit diff --checkFixes #1228
Docs: updated the leaked-secrets rule page. Skill: none.