Repository navigation
Conversation
…eports a value that ends in an ellipsis as a partial value, never dropped Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #1546. Static read only; CI was still pending and I did not run the tests. The change does what it says. The two drops are gone, the partial branch is gated on
|
…ords stay reported Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff. The change is small, matches the stated intent, and drops no new paths.
I did not run the tests myself. |
|
Review of #1546. I read the diff and the surrounding code in
Docs and the CHANGELOG are updated. Test coverage for the generic path is good. |
This was referenced Nov 2, 2026
nc9
added a commit
that referenced
this pull request
Nov 2, 2026
… in a seed table keeps the seed verdict #1546 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
added a commit
that referenced
this pull request
Nov 2, 2026
… family stated exactly; stale comment refreshed #1546 Signed-off-by: Nik Cubrilovic <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
security/leaked-secretsdropped two shapes on structure or surface evidence that cannot prove the value is not a credential. This keeps both (Nik: "we shouldn't be dropping any true positives", via squirrelscan-53).1. Sample-data matches (
seedDataVerdict"skip"). A generic secret in a table of same-keyed rows whose emails are all on reserved domains, or beside two puzzle or generator markers (or one marker inside a same-shaped table), wascontinued. It is now kept and labelled exactly like the matches that were already kept (Possible Demo Login (seed data table), medium), with a hint that says what the evidence was (sample data (reserved-domain emails or sample markers around it): usually not a working login, but the structure cannot prove it, against the existing real-domain hint). The verdicts themselves are unchanged; only the drop is gone.2. Elided values (
isElidedValue). A value of up to 12 characters followed by...or…was dropped insideisImplausibleSecretValue. The drop is removed. The generic path now reports it asPartial Secret Value Visible (elided)at the informational tier, in its ownleaked-secrets-partialcheck (status info, never counted as a leak), value masked like the others. It is not put inleaked-secrets-info, whose message is about expired and session tokens. A longer cut-off token (13 or more characters before the dots) still reports at medium as before. A bare mask (••••,...) is still dropped.Fail closed: no new drop path. The two gates are removed; what was dropped is reported.
Not in scope and untouched:
isJoinedIdentifier. A value likeU...ng...that another gate already drops (the entropy floor) is still dropped by that gate.Tests (
packages/rules/tests/security/leaked-secrets-sample-data.test.ts, 46): each shape has fixtures that must report (reserved-domain tables, puzzle and generator markers, a marker inside a table, the secret's own rows with reserved emails, five elided stubs underpassword,secretandpwd, the rule-level partial check with its masked id); the negatives that must stay out are unchanged (masks, labels, env references, code spans, joined identifiers). Fake shapes are built from parts.Mutants (each separately, the file restored after each): the elided gate restored (2 fail), the seed
continuerestored (5), skip not relabelled (5), the partial branch removed (2), partial lumped with the expired-token check (1), partial at medium (3), the 12-character bound widened (1, after adding a 13+ character case). One survivor, equivalent: withMASK_REdisabled the mask fixtures are still dropped by the generic entropy floor.Gates run: every leaked-secrets test file, one at a time (the corpus suite
tests/security/leaked-secrets.test.ts2,431 tests,tests/leaked-secrets.test.ts, precision, providers, public tiers, critical, samples, confidence, decode and the rest): 0 fail; tsgo; docsmake validate; the changelog guard. Docs: the elided stub line, the sample-data section and the new check; CHANGELOG entry.Hold-list change (security rule): not for merge before Nik decides.
Skill: no change needed.
nik