Skip to content

Enhanced Secrets Redaction Support - More Patterns 🔑#48

Merged
GrantBirki merged 9 commits into
mainfrom
more-patterns
May 20, 2024
Merged

Enhanced Secrets Redaction Support - More Patterns 🔑#48
GrantBirki merged 9 commits into
mainfrom
more-patterns

Conversation

@GrantBirki

@GrantBirki GrantBirki commented May 20, 2024

Copy link
Copy Markdown
Contributor

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

@nobe4 nobe4 left a comment

Copy link
Copy Markdown
Contributor

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)

Comment thread lib/patterns/default.rb Outdated
Co-authored-by: nobe4 <nobe4@users.noreply.github.com>
@GrantBirki GrantBirki merged commit 770cf01 into main May 20, 2024
@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

2 participants