SECRET-SCAN: Enable the support for Generic secret key regex #500
Labels
difficulty: 2
hacktoberfest
Hacktoberfest is on!
help wanted
Extra attention is needed
priority: high
scope: cli
Everything related to the CLI
type: enhancement
New feature or request
Description
The current
secret-scan
package and rulesets doesn't support generic secret key detection. The existing generic secret key rules like JWT, Cloudflare is breaking the other rulesets when tested. You need to fix this bug and provide the support for future generic secret key ruleset.Scope of Work
You need to strictly work on the following directories/files mentioned. If any other changes are required for other files, you should tag us in the comment section for discussion before proceeding further.
packages/secret-scan
packages/secret-scan/src/rules
packages/secret-scan/src/index.ts
packages/secret-scan/src/types/index.d.ts
Cloudflare
(this one is pure Generic Secret Key Regex) and fix it.Some additional information
packages/secret-scan/src/denylist.ts
: This file basically makes the rule allowed for scanning. You need to import the rules and then append indenylist
to make them scannable.packages/secret-scan/src/generateKey.ts
: You can generate the secret keys/strings from your regex in the terminal.The text was updated successfully, but these errors were encountered: