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
23 lines
644 B
Go
23 lines
644 B
Go
package rules
|
|
|
|
import (
|
|
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
|
|
"github.com/zricethezav/gitleaks/v8/config"
|
|
)
|
|
|
|
func Airtable() *config.Rule {
|
|
// define rule
|
|
r := config.Rule{
|
|
Description: "Uncovered a possible Airtable API Key, potentially compromising database access and leading to data leakage or alteration.",
|
|
RuleID: "airtable-api-key",
|
|
Regex: generateSemiGenericRegex([]string{"airtable"}, alphaNumeric("17"), true),
|
|
Keywords: []string{"airtable"},
|
|
}
|
|
|
|
// validate
|
|
tps := []string{
|
|
generateSampleSecret("airtable", secrets.NewSecret(alphaNumeric("17"))),
|
|
}
|
|
return validate(r, tps, nil)
|
|
}
|