Skip to content

Add DLP rules for Google / GCP credentials #3

Done

Description

@blitzcrieg1

The DLP pack covers AWS, GitHub, Slack, bearer tokens, private keys, and SSN, but not Google. GCP keys are extremely common in agent workflows.

Task

Add rules to apps/orchestrator/agentmetry/policies/dlp/manifest.yaml: a Google API key (AIza[0-9A-Za-z_-]{35}) and a GCP service-account marker. Category credentials, severity critical. No Python needed, just follow the YAML shape of the existing github_pat rule.

Acceptance criteria

  • A test in apps/orchestrator/tests/test_dlp_scanner.py proving the Google key matches and a benign string doesn't.
  • Use a fake key and mark the line gitleaks:allow.
  • pytest green.

Good first PR, regex only, no Python.

Activity

  1. added
    good first issue
    dlp-rule
    on Jul 14, 2026
  2. blitzcrieg1 commented on Aug 3, 2026

    @blitzcrieg1
    OwnerAuthor

    Heads up, the DLP manifest moved on master:

    policies/dlp/manifest.yaml                        (old)
    apps/orchestrator/agentmetry/policies/dlp/manifest.yaml   (new)
    

    Nothing about the task changes, only the path. I have updated the issue body above.

    Why it moved: those manifests are configuration the package needs in order to run, and pip install agentmetry was shipping without them. DLP scanning was silently inert for anyone who installed instead of cloning, which is close to the worst possible failure for a secret scanner. They now live inside the package so the wheel actually carries them.

    If you already have a branch open, it was a plain git mv, so a rebase on master should carry your edits across:

    git fetch origin && git rebase origin/master

    The test file is unchanged at apps/orchestrator/tests/test_dlp_scanner.py, though the constant at the top of it now points at the new location.

    Sorry for the churn, and thanks for picking this up.

  3. added
    bounty
    on Nov 24, 2026
  4. surendraSinghKamboj commented on Nov 25, 2026

    @surendraSinghKamboj
    Contributor

    Thanks for merging #465 and for landing the corpus cases from #466 as #468.

    When you have a moment: the issue carries the bounty label, so if there is any information about a payout, or about being listed in CONTRIBUTORS.md, I would appreciate hearing it. Happy to pick up other maintenance issues if any are open for contributors.

  5. blitzcrieg1 commented on Nov 25, 2026

    @blitzcrieg1
    OwnerAuthor

    Already handled: this issue is closed as fixed by #465 (google_api_key + gcp_service_account_key, with benign near-miss tests), and you are listed in CONTRIBUTORS.md (PR #471, merged today) with #465, #468, #472 and #474. On payout: the bounty program (#454) pays recognition now (CONTRIBUTORS.md, release notes, rule naming) and cash only when a funding round lands (NLnet NGI and similar are earmarked for exactly these contributions). When a round lands, the amounts per tier get posted in Discussions and bounty-tagged issues closed by merged PRs are paid in merge order. Thanks for shipping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountydlp-rulegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions