Repository navigation
feat(dlp): add Google API key and GCP service-account rules - #465
Merged
blitzcrieg1 merged 1 commit intoNov 25, 2026
Merged
Conversation
Adds google_api_key and gcp_service_account_key to the DLP manifest, with fire and near-miss tests for each. Closes blitzcrieg1#3
This was referenced Nov 25, 2026
Merged
3 tasks
blitzcrieg1
added a commit
that referenced
this pull request
Nov 25, 2026
#474) (#475) Generated by Mistral Vibe. 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.
What and why
Closes #3. The DLP pack had no Google coverage. This adds two rules to
apps/orchestrator/agentmetry/policies/dlp/manifest.yaml, both categorycredentials, severitycritical:google_api_key:AIza+ 35 chars of[0-9A-Za-z_-], not followed by another key character.gcp_service_account_key: the"type": "service_account"marker of a service-account key file. The pattern allows the backslash-escaped quotes, since the scanner matches againstjson.dumps(arguments).Tests in
tests/test_dlp_scanner.pycover a fire and a near-miss for each rule (fake key, markedgitleaks:allow). The README collected-test count (2917 to 2921) and the CHANGELOG are updated.Checks
python -m pytest -q: all pass here excepttest_mcp_proxy_packaged, which needspython -m venvand my machine lacksensurepippython -m ruff check agentmetry testspassesAlso: the issue carries the
bountylabel but no amount. Could you confirm the payout and how you'd like it sent?