Repository navigation
feat(dlp): OpenAI project/service-account/admin key rule (rebased #482, fixes #478) - #483
Merged
Merged
Conversation
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
added a commit
that referenced
this pull request
Nov 25, 2026
Generated by Mistral Vibe. Co-authored-by: Mistral Vibe <[email protected]>
This was referenced Nov 26, 2026
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]>
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.
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.