Skip to content

fix(check): secrets verified-vs-unverified + semgrep fixture noise → 1.26.0 - #101

Merged
sandstream merged 1 commit into
mainfrom
fix/scanner-noise-reduction
Jun 24, 2026
Merged

sandstream merged 1 commit into
mainfrom
fix/scanner-noise-reduction

Conversation

@sandstream

Copy link
Copy Markdown
Owner

Why

kit check on kit itself was RED — but the triage found zero real security issues. The red was its own test fixtures:

  • secrets scan failed critical on 16 unverified Postgres example strings (trufflehog verified-live = 0) in tests/docs/dev-compose.
  • semgrep failed on 16 findings, all test-fixture fake keys (AWS/JWT/generic the secret-scanner tests feed it) + a ${{ secrets.SONAR_TOKEN }} reference + low-severity docker/regexp warns.

Failing a clean repo on its own fixtures is the #1 security-tool adoption blocker (#50). This makes the board honest: green = no real findings, not "fixtures suppressed."

Changes

  • Secrets scan: verified-live → critical fail; unverified → warn. Only a secret trufflehog confirmed works blocks the gate ("rotate now"); secret-shaped-but-unconfirmed strings are surfaced to review ("0 verified-live — review for test/example data"). New pure, fixture-tested classifyTrufflehogFindings.
  • .semgrepignore: *.test.ts + .github/. Test fixtures = intentional fake secrets (tests aren't shipped). Workflow YAML is covered by kit gha-audit (GitHub Actions hardening — static YAML lint (SHA-pinning, pwn-request) #60); semgrep only FP'd there on ${{ secrets.* }}.

Result on kit

  • secrets: critical fail → warn (0 verified-live)
  • semgrep: fail (16) → warn (7 genuine low: docker-compose hardening recs + dynamic-regexp)
  • No real finding suppressed. Remaining warns are legitimate "review, not block" items.

Verify

  • scoped tsc clean; check-security tests 19/19 (incl. classifyTrufflehogFindings + classifySocketResult).

🤖 Generated with Claude Code

…se → 1.26.0

Stops kit's own security board failing on noise (the #1 adoption blocker):

- secrets scan: only a VERIFIED-LIVE secret (trufflehog confirmed it works) is a
  critical fail; unverified secret-shaped strings (test fixtures, example conn
  strings, docs) are a warn to review. New pure classifyTrufflehogFindings.
- .semgrepignore: exclude *.test.ts (intentional fake-secret fixtures) and
  .github/ (covered by kit gha-audit #60; only FP'd on ${{ secrets.* }} refs).

On kit itself: secrets critical-fail -> warn (0 verified-live), semgrep
fail(16) -> warn(7 genuine low). Zero real findings were suppressed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit bc9df0c into main Jun 24, 2026
16 checks passed
@sandstream
sandstream deleted the fix/scanner-noise-reduction branch June 24, 2026 05:24
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