Skip to content

feat(dlp): OpenAI project/service-account/admin key rule (rebased #482, fixes #478) - #483

Merged
blitzcrieg1 merged 2 commits into
masterfrom
contrib/pr-482
Nov 25, 2026
Merged

blitzcrieg1 merged 2 commits into
masterfrom
contrib/pr-482

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

Rebased version of #482 by @bewfordq: new openai_project_api_key rule covering sk-proj-/sk-svcacct-/sk-admin-, 4 tests incl. near-miss, README recounted to 2984 locally (dlp + readme-claims green). Closes #482. Closes #478.

bewfordq and others added 2 commits November 25, 2026 18:57
sk-proj-, sk-svcacct- and sk-admin- keys broke the generic sk- rule's
alnum run at the first hyphen, so leaks produced no DLP finding even
though redaction.py already scrubbed them. Adds a dedicated rule and
four tests (22 passed).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
@blitzcrieg1
blitzcrieg1 merged commit 6491035 into master Nov 25, 2026
10 checks passed
@blitzcrieg1
blitzcrieg1 deleted the contrib/pr-482 branch November 25, 2026 17:10
blitzcrieg1 added a commit that referenced this pull request Nov 25, 2026
Generated by Mistral Vibe.

Co-authored-by: Mistral Vibe <[email protected]>
blitzcrieg1 added a commit that referenced this pull request Nov 26, 2026
…mbined #488 #489) (#495)

* feat(dlp): detect OpenRouter and Groq API keys

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]>

* feat(dlp): detect Replicate, Perplexity and xAI API keys

* docs: changelog entry for the five provider key DLP rules (#488, #489)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>

---------

Co-authored-by: bewfordq <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
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.

dlp: OpenAI project/service-account keys (sk-proj-, sk-svcacct-, sk-admin-) have no DLP rule

2 participants