Yelp / detect-secrets

An enterprise friendly way of detecting and preventing secrets in code.
Apache License 2.0
3.62k stars 450 forks source link

Feature: don't treat all JWT as secrets/credentials #688

Open spockz opened 1 year ago

spockz commented 1 year ago

Any file containing something looking like a JWT (based on it has 2 dots, and the first two segments are base64encoded JSON) is reported as a secret/credential.

It should be possible to detect or configure the plugin to allow certain types of JWT.

We use JWT also for exchanging signed information and this is not secret data so these tokens are not secrets. However, our tooling is now generating many false positives which drowns the true positives.