Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced Secrets Redaction Support - More Patterns 🔑 #48

Merged
merged 9 commits into from
May 20, 2024

Conversation

GrantBirki
Copy link
Member

@GrantBirki GrantBirki commented May 20, 2024

Enhanced Secrets Redaction Support - More Patterns 🔑

This pull request adds more regex patterns to redact new types of secrets.

The follow secrets will now be redacted by this gem when using the default configuration:

  • Slack webhooks
  • Slack workflow webhooks
  • Slack tokens
  • Vault tokens
  • RubyGems tokens

@GrantBirki GrantBirki added the enhancement New feature or request label May 20, 2024
@GrantBirki GrantBirki self-assigned this May 20, 2024
Copy link
Contributor

@nobe4 nobe4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍
If possible that would be nice to include a reference for each pattern, pointing to the official doc showcasing the format.

E.g. https://developer.hashicorp.com/vault/tutorials/tokens/tokens?variants=vault-deploy:hcp#token-prefix

(note that in this page, it lists more possible vault prefixes, so your vault example is incomplete)

lib/patterns/default.rb Outdated Show resolved Hide resolved
Co-authored-by: nobe4 <nobe4@users.noreply.github.com>
@GrantBirki GrantBirki merged commit 770cf01 into main May 20, 2024
9 checks passed
@GrantBirki GrantBirki deleted the more-patterns branch May 20, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants