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

Feature Request: API for detecting secrets for sources other than files #713

Open
1 of 2 tasks
JLLeitschuh opened this issue Sep 30, 2023 · 1 comment
Open
1 of 2 tasks
Labels
request The issue is a request for a new feature or plugin. triaged The issue has been reviewed but has not been solved yet.

Comments

@JLLeitschuh
Copy link

  • I'm submitting a ...

    • bug report
    • feature request
  • What is the current behavior?

The current API and implementation is heavily reliant upon the expectation that this project will be used to scan a filesystem. However, it may be useful to find secrets that have in some string that may only exist in memory.

  • What is the expected behavior?

It would be great if you could scan a given string you have in memory and determine if that string contains a secret.

  • What is the motivation / use case for changing the behavior?

This would allow this library to be used to detect secrets in context outside of just a filesystem, but more generally as a secret detection library.

@lorenzodb1 lorenzodb1 added the pending The issue still needs to be reviewed by one of the maintainers. label Nov 17, 2023
@lorenzodb1 lorenzodb1 added triaged The issue has been reviewed but has not been solved yet. request The issue is a request for a new feature or plugin. and removed pending The issue still needs to be reviewed by one of the maintainers. labels May 16, 2024
@issabayevmk
Copy link

Hi @lorenzodb1. Can you please check my pull request #836 which introduces API for calling detect-secrets from python scripts. It has following features:

  • Get list of supported plugins
  • Scan string with all plugins or specified plugins
  • Scan file with all plugins or specified plugins
  • Scan git repo with options to scan all files or only git tracked repos. Also with all plugins or specified plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request The issue is a request for a new feature or plugin. triaged The issue has been reviewed but has not been solved yet.
Projects
None yet
Development

No branches or pull requests

3 participants