Skip to content

fix: qualify AWS, GitHub, Stripe and OpenAI secret matches (mj359d) - #766

Merged
dafuga merged 3 commits into
mainfrom
fix/mj359d-scanner-qualify
Dec 1, 2026
Merged

dafuga merged 3 commits into
mainfrom
fix/mj359d-scanner-qualify

Conversation

@dafuga

@dafuga dafuga commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Follow-up to PR #764 for mj359dw9sd; supersedes PR #736 (qkvw07hfjt) for the transcript scanner rules without touching PR #719's watchdog types or unit manifest (ownedAwsKeyIds remains on qkvw07 if still desired after #719).

Changes

  • AWS access key ID (ported from qkvw07 / PR fix: stop AWS transcript scanner false positives #736): ignore IDs containing EXAMPLE, ignore presigned URL query params (AWSAccessKeyId=, X-Amz-Credential=), require pairing with a secret access key (and session token for ASIA), and skip the 64-byte chunk overlap prefix in trackerTranscriptScan.ts.
  • GitHub token: validate the 6-char base62 IEEE CRC32 checksum on gh[pousr]_ tokens (github_pat_ passes through).
  • Stripe keys: enforce minimum total lengths (sk_live_/rk_live_/sk_test_/rk_test_ >= 32 chars; whsec_ >= 38 chars).
  • OpenAI API key: ignore all-lowercase hyphenated/word strings (e.g. sk-proj-unit-test-fixture-...).
  • Keeps trackerTranscriptMatches(bytes, offset, samples?) exported signature unchanged so service.projects-sessions-tracker-native-runtime.json is untouched.

Verification on exact head 443fe316d74cfbafae2a20351886a9d37719ddbf

  • Loop mj359d-scanner-qualify: red 49bd555380 -> green 02e3014725, siblings siblings-b5cf257a-ab27-42db-a6ac-a90d60f49320.json (0 confirmed sibling alerting bugs across 10,675 files).
  • bun x vitest run test/services/projects-sessions/tracker-transcript-scan.test.ts: 19/19 passed.
  • bun x eslint on all 3 changed files: 0 errors.
  • harness audit src/services/projects-sessions/tracker-native-runtime-service: 0 violations on changed files.

Checks not run

  • Shared land queue / full suite / hosted CI not waited on because main is currently red (xpv9zt); landing with --match-head-commit per CoS 19:59Z direction to stop ongoing false-positive replays.

@dafuga
dafuga merged commit 9ed3438 into main Dec 1, 2026
2 of 4 checks passed
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