Skip to content

Improve secrets classification evidence gates#1371

Open
MAUROCERON wants to merge 1 commit into
UnitOneAI:mainfrom
MAUROCERON:improve/secrets-classification-gates-1105
Open

Improve secrets classification evidence gates#1371
MAUROCERON wants to merge 1 commit into
UnitOneAI:mainfrom
MAUROCERON:improve/secrets-classification-gates-1105

Conversation

@MAUROCERON
Copy link
Copy Markdown

Summary

Implements #1105 by strengthening secrets-management secret classification so reviewers reduce public-by-design false positives while catching encoded Kubernetes Secret and modern provider-token false negatives.

Changes

  • Adds modern provider token patterns for OpenAI project keys, Google API keys, Stripe restricted keys, Slack app-level tokens, npm, Hugging Face, SendGrid, Twilio, and GCP service-account JSON private-key fields.
  • Adds a Public-by-Design Keys classification table for Stripe publishable keys, Firebase Web API keys, Sentry public DSNs, Algolia search-only keys, and Google Maps browser keys.
  • Adds encoded secret handling for Kubernetes Secret data: blocks and large credential-adjacent base64 blobs, with decode-and-rescan guidance that never prints decoded values.
  • Adds high-entropy non-secret filters for SRI hashes, digests, commit SHAs, lockfile hashes, and UUIDs.
  • Requires detect-secrets baseline audit/freshness evidence, not only baseline presence.
  • Adds edge-case fixtures covering public client keys, encoded DB URLs, encoded service-account JSON, modern token prefixes, digest/UUID false positives, and poisoned baselines.

Validation

Bounty Info

  • I have read and agree to the CONTRIBUTING.md bounty terms.
  • Preferred payment method: Payment details can be provided privately after maintainer acceptance.

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.

1 participant