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

Store metadata when alerting on secrets. #365

Open
aponcedeleonch opened this issue Dec 16, 2024 · 0 comments
Open

Store metadata when alerting on secrets. #365

aponcedeleonch opened this issue Dec 16, 2024 · 0 comments

Comments

@aponcedeleonch
Copy link
Contributor

aponcedeleonch commented Dec 16, 2024

Currently, when secrets are recorded in the database, we are not capturing enough contextual information about them. Enhancing the recorded data can improve usability and visibility, particularly for display on the dashboard.

Record Contextual Information:

  • Include the file name where the secret was detected.
  • Capture the surrounding lines of code or text where the secret appears.
  • This additional context will help users quickly identify and understand where the secret is coming from.

Classify Secrets by Type:

  • Record the type of secret based on the matching regex (e.g., AWS secret, GitHub token, etc.).
  • Since we already know which regex triggered the match, we can use this information to categorize the secret.
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

No branches or pull requests

2 participants