Richard Gomez cf5334fd61 feat: add curl basic auth rule (#1575) il y a 1 an
..
adafruit.go bd81872eee Make config generation utils public (#1480) il y a 1 an
adobe.go bd81872eee Make config generation utils public (#1480) il y a 1 an
age.go bd81872eee Make config generation utils public (#1480) il y a 1 an
airtable.go bd81872eee Make config generation utils public (#1480) il y a 1 an
algolia.go bd81872eee Make config generation utils public (#1480) il y a 1 an
alibaba.go bd81872eee Make config generation utils public (#1480) il y a 1 an
asana.go bd81872eee Make config generation utils public (#1480) il y a 1 an
atlassian.go bd81872eee Make config generation utils public (#1480) il y a 1 an
authress.go bd81872eee Make config generation utils public (#1480) il y a 1 an
aws.go bd81872eee Make config generation utils public (#1480) il y a 1 an
azure.go 8fb39ba8dc feat(azure): detect Azure AD client secrets (#1199) il y a 1 an
beamer.go bd81872eee Make config generation utils public (#1480) il y a 1 an
bitbucket.go bd81872eee Make config generation utils public (#1480) il y a 1 an
bittrex.go bd81872eee Make config generation utils public (#1480) il y a 1 an
clojars.go bd81872eee Make config generation utils public (#1480) il y a 1 an
cloudflare.go bd81872eee Make config generation utils public (#1480) il y a 1 an
codecov.go bd81872eee Make config generation utils public (#1480) il y a 1 an
cohere.go 1a2f656278 feat: add cohere rule (#1549) il y a 1 an
coinbase.go bd81872eee Make config generation utils public (#1480) il y a 1 an
config.tmpl 5c03fa4a3e refactor(allowlist): use iota for condition (#1569) il y a 1 an
confluent.go bd81872eee Make config generation utils public (#1480) il y a 1 an
contentful.go bd81872eee Make config generation utils public (#1480) il y a 1 an
curl.go cf5334fd61 feat: add curl basic auth rule (#1575) il y a 1 an
databricks.go bd81872eee Make config generation utils public (#1480) il y a 1 an
datadog.go bd81872eee Make config generation utils public (#1480) il y a 1 an
definednetworking.go bd81872eee Make config generation utils public (#1480) il y a 1 an
digitalocean.go bd81872eee Make config generation utils public (#1480) il y a 1 an
discord.go bd81872eee Make config generation utils public (#1480) il y a 1 an
doppler.go bd81872eee Make config generation utils public (#1480) il y a 1 an
droneci.go bd81872eee Make config generation utils public (#1480) il y a 1 an
dropbox.go bd81872eee Make config generation utils public (#1480) il y a 1 an
duffel.go bd81872eee Make config generation utils public (#1480) il y a 1 an
dynatrace.go bd81872eee Make config generation utils public (#1480) il y a 1 an
easypost.go bd81872eee Make config generation utils public (#1480) il y a 1 an
etsy.go 9e06824372 Restrict Etsy keywords (#1491) il y a 1 an
facebook.go bd81872eee Make config generation utils public (#1480) il y a 1 an
fastly.go bd81872eee Make config generation utils public (#1480) il y a 1 an
finicity.go bd81872eee Make config generation utils public (#1480) il y a 1 an
finnhub.go bd81872eee Make config generation utils public (#1480) il y a 1 an
flickr.go bd81872eee Make config generation utils public (#1480) il y a 1 an
flutterwave.go bd81872eee Make config generation utils public (#1480) il y a 1 an
flyio.go 78f7d3f5df feat: create fly.io rule (#1528) il y a 1 an
frameio.go bd81872eee Make config generation utils public (#1480) il y a 1 an
freshbooks.go bd81872eee Make config generation utils public (#1480) il y a 1 an
gcp.go df126a7473 feat(gcp): update api key rule (#1481) il y a 1 an
generic.go aabe381539 Define multiple allowlists per rule (#1496) il y a 1 an
github.go db782603f7 feat(github): add entropy to rule (#1489) il y a 1 an
gitlab.go bd81872eee Make config generation utils public (#1480) il y a 1 an
gitter.go bd81872eee Make config generation utils public (#1480) il y a 1 an
gocardless.go bd81872eee Make config generation utils public (#1480) il y a 1 an
grafana.go bd81872eee Make config generation utils public (#1480) il y a 1 an
harness.go e93a7c0d26 Update Harness rules to add _ and - in the account ID part. (#1503) il y a 1 an
hashicorp.go bd81872eee Make config generation utils public (#1480) il y a 1 an
hashicorp_vault.go aabe381539 Define multiple allowlists per rule (#1496) il y a 1 an
heroku.go bd81872eee Make config generation utils public (#1480) il y a 1 an
hubspot.go bd81872eee Make config generation utils public (#1480) il y a 1 an
huggingface.go bd81872eee Make config generation utils public (#1480) il y a 1 an
infracost.go bd81872eee Make config generation utils public (#1480) il y a 1 an
intercom.go bd81872eee Make config generation utils public (#1480) il y a 1 an
intra42.go bd81872eee Make config generation utils public (#1480) il y a 1 an
jfrog.go bd81872eee Make config generation utils public (#1480) il y a 1 an
jwt.go bd81872eee Make config generation utils public (#1480) il y a 1 an
kraken.go bd81872eee Make config generation utils public (#1480) il y a 1 an
kubernetes.go aabe381539 Define multiple allowlists per rule (#1496) il y a 1 an
kucoin.go bd81872eee Make config generation utils public (#1480) il y a 1 an
launchdarkly.go bd81872eee Make config generation utils public (#1480) il y a 1 an
linear.go bd81872eee Make config generation utils public (#1480) il y a 1 an
linkedin.go bd81872eee Make config generation utils public (#1480) il y a 1 an
lob.go bd81872eee Make config generation utils public (#1480) il y a 1 an
mailchimp.go bd81872eee Make config generation utils public (#1480) il y a 1 an
mailgun.go bd81872eee Make config generation utils public (#1480) il y a 1 an
mapbox.go bd81872eee Make config generation utils public (#1480) il y a 1 an
mattermost.go bd81872eee Make config generation utils public (#1480) il y a 1 an
messagebird.go bd81872eee Make config generation utils public (#1480) il y a 1 an
netlify.go bd81872eee Make config generation utils public (#1480) il y a 1 an
newrelic.go bd81872eee Make config generation utils public (#1480) il y a 1 an
npm.go bd81872eee Make config generation utils public (#1480) il y a 1 an
nuget.go aabe381539 Define multiple allowlists per rule (#1496) il y a 1 an
nytimes.go bd81872eee Make config generation utils public (#1480) il y a 1 an
okta.go bd81872eee Make config generation utils public (#1480) il y a 1 an
openai.go bd81872eee Make config generation utils public (#1480) il y a 1 an
openshift.go bd81872eee Make config generation utils public (#1480) il y a 1 an
plaid.go bd81872eee Make config generation utils public (#1480) il y a 1 an
planetscale.go bd81872eee Make config generation utils public (#1480) il y a 1 an
postman.go bd81872eee Make config generation utils public (#1480) il y a 1 an
prefect.go bd81872eee Make config generation utils public (#1480) il y a 1 an
privateai.go 00bb82153e feat: add PrivateAI rule (#1548) il y a 1 an
privatekey.go bf8a49fc29 Make private key check less greedy and include fifth dash (#1440) il y a 1 an
pulumi.go bd81872eee Make config generation utils public (#1480) il y a 1 an
pypi.go bd81872eee Make config generation utils public (#1480) il y a 1 an
rapidapi.go bd81872eee Make config generation utils public (#1480) il y a 1 an
readme.go bd81872eee Make config generation utils public (#1480) il y a 1 an
rubygems.go bd81872eee Make config generation utils public (#1480) il y a 1 an
scalingo.go bd81872eee Make config generation utils public (#1480) il y a 1 an
sendbird.go bd81872eee Make config generation utils public (#1480) il y a 1 an
sendgrid.go bd81872eee Make config generation utils public (#1480) il y a 1 an
sendinblue.go bd81872eee Make config generation utils public (#1480) il y a 1 an
sentry.go bd81872eee Make config generation utils public (#1480) il y a 1 an
shippo.go bd81872eee Make config generation utils public (#1480) il y a 1 an
shopify.go bd81872eee Make config generation utils public (#1480) il y a 1 an
sidekiq.go bd81872eee Make config generation utils public (#1480) il y a 1 an
slack.go bd81872eee Make config generation utils public (#1480) il y a 1 an
snyk.go bd81872eee Make config generation utils public (#1480) il y a 1 an
square.go 8510d39ffe fix(square): make prefix case sensitive (#1469) il y a 1 an
squarespace.go bd81872eee Make config generation utils public (#1480) il y a 1 an
stopwords.go 128b50f67b style: sort the stopwords (#1289) il y a 2 ans
stripe.go bd81872eee Make config generation utils public (#1480) il y a 1 an
sumologic.go 12034a71c5 refactor(config): temporarily switch to [rules.allowlist] (#1573) il y a 1 an
teams.go bd81872eee Make config generation utils public (#1480) il y a 1 an
telegram.go bd81872eee Make config generation utils public (#1480) il y a 1 an
travisci.go bd81872eee Make config generation utils public (#1480) il y a 1 an
trello.go bd81872eee Make config generation utils public (#1480) il y a 1 an
twilio.go bd81872eee Make config generation utils public (#1480) il y a 1 an
twitch.go bd81872eee Make config generation utils public (#1480) il y a 1 an
twitter.go bd81872eee Make config generation utils public (#1480) il y a 1 an
typeform.go bd81872eee Make config generation utils public (#1480) il y a 1 an
yandex.go bd81872eee Make config generation utils public (#1480) il y a 1 an
zendesk.go bd81872eee Make config generation utils public (#1480) il y a 1 an

readme.go

package rules

import (
"github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils"
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
"github.com/zricethezav/gitleaks/v8/config"
)

func ReadMe() *config.Rule {
// define rule
r := config.Rule{
RuleID: "readme-api-token",
Description: "Detected a Readme API token, risking unauthorized documentation management and content exposure.",
Regex: utils.GenerateUniqueTokenRegex(`rdme_[a-z0-9]{70}`, true),

Keywords: []string{
"rdme_",
},
}

// validate
tps := []string{
utils.GenerateSampleSecret("api-token", "rdme_"+secrets.NewSecret(utils.AlphaNumeric("70"))),
}
return utils.Validate(r, tps, nil)
}