mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
* Enhance secret descriptions in gitleaks.toml * adjust the rule configuration descriptions * missing spaces in gitleaks.toml
25 lines
651 B
Go
25 lines
651 B
Go
package rules
|
|
|
|
import (
|
|
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
|
|
"github.com/zricethezav/gitleaks/v8/config"
|
|
)
|
|
|
|
func ZendeskSecretKey() *config.Rule {
|
|
// define rule
|
|
r := config.Rule{
|
|
RuleID: "zendesk-secret-key",
|
|
Description: "Detected a Zendesk Secret Key, risking unauthorized access to customer support services and sensitive ticketing data.",
|
|
Regex: generateSemiGenericRegex([]string{"zendesk"}, alphaNumeric("40"), true),
|
|
Keywords: []string{
|
|
"zendesk",
|
|
},
|
|
}
|
|
|
|
// validate
|
|
tps := []string{
|
|
generateSampleSecret("zendesk", secrets.NewSecret(alphaNumeric("40"))),
|
|
}
|
|
return validate(r, tps, nil)
|
|
}
|