-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Draft: Feature/config verification #2311
base: main
Are you sure you want to change the base?
Conversation
…ture/config-verification
I think we'll need a way to reference test secrets for this and to be able to run tests easily. Also, if we port any existing detectors we will need a way to specify raw and rawv2 field mapping to the regexes. That part would only be needed for porting detectors, not for new ones. |
We could add something like an
|
I really like this idea! What do you think about using an existing templating engine instead of string replacement? I ask because there are weird edge-cases other libraries have already solved (like.. |
I also strongly support at least investigating the use of an existing template engine. Also, does your draft handle verification indeterminacy yet? |
I have a preference for keeping things simple until the need arises for an external library. Do you have an example of an edge case?
No. As stated in the description this draft is for enhancing the existing custom config. It is not meant to be a replacement for the existing detectors. |
Description:
Gives users the ability to perform custom detector verification without having to spin up a verification server. With this feature TruffleHog makes the requests straight to the provider server much like a regular built-in detector.
ex config:
Checklist:
make test-community
)?make lint
this requires golangci-lint)?