Skip to content

feat(dlp): OpenRouter, Groq, Replicate, Perplexity, xAI key rules (combined #488 #489) - #495

Merged
blitzcrieg1 merged 3 commits into
masterfrom
contrib/pr-488-489
Nov 26, 2026
Merged

blitzcrieg1 merged 3 commits into
masterfrom
contrib/pr-488-489

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

Combines @bewfordq's #488 and #489 (same manifest region, both conflicted with master after #483/#493). Cherry-picked both, resolved README count (3004 collected, dlp + readme-claims green locally: 49 passed), CHANGELOG entry added. Closes #488. Closes #489.

bew and others added 3 commits November 26, 2026 21:06
Same bug class as #483: OpenRouter keys (sk-or-v1-...) break the generic
sk-[a-zA-Z0-9]{20,} rule's alnum-only run at the hyphen after "sk", and Groq
keys (gsk_...) don't match any existing prefix at all. Both leaked silently
with zero findings. Adds dedicated rules for each, next to the other
provider-specific sk- exceptions.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
@blitzcrieg1
blitzcrieg1 merged commit 15ab5b2 into master Nov 26, 2026
10 checks passed
@blitzcrieg1
blitzcrieg1 deleted the contrib/pr-488-489 branch November 26, 2026 19:13
blitzcrieg1 added a commit that referenced this pull request Nov 26, 2026
#497)

Generated by Mistral Vibe.

Co-authored-by: Mistral Vibe <[email protected]>
blitzcrieg1 added a commit that referenced this pull request Nov 27, 2026
…507)

PR #495 added DLP rules for OpenRouter, Groq, Replicate, Perplexity and
xAI keys, but the capture scrubbers did not know those shapes, so a key
captured in a command or in nested arguments was stored as sent. Add the
five patterns to both the recorder and the hook scrub lists (the mirror
test keeps them in sync) and scrub the full command before truncating to
COMMAND_MAX_LEN so a token cut at the storage cap cannot survive half
masked. README collected-test count 3034 -> 3044.

Generated by Mistral Vibe.

Co-authored-by: Mistral Vibe <[email protected]>
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.

2 participants