Richard Gomez ef8223700a fix(atlassian): reduce false-positives for v1 pattern (#1892) il y a 8 mois
..
1password.go 23cb69fba4 feat(rules): Add 1Password secret key detection (#1834) il y a 9 mois
adafruit.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
adobe.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
age.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
airtable.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
algolia.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
alibaba.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
asana.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
atlassian.go ef8223700a fix(atlassian): reduce false-positives for v1 pattern (#1892) il y a 8 mois
authress.go 83e99bacf1 feat(report): allow user-defined templates (#1650) il y a 1 an
aws.go d29ee55171 Reduce aws-access-token false positives (#1876) il y a 8 mois
azure.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
beamer.go 973c794cf0 chore(rules): include fps in reference (#1471) il y a 1 an
bitbucket.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
bittrex.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
clickhouse.go 9bc725786d Adding clickhouse scanner (#1826) il y a 10 mois
clojars.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
cloudflare.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
codecov.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
cohere.go 1a2f656278 feat: add cohere rule (#1549) il y a 1 an
coinbase.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
config.tmpl 4451b455f3 feat(config): define multiple global allowlists (#1777) il y a 9 mois
confluent.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
contentful.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
curl.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) il y a 10 mois
databricks.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
datadog.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
definednetworking.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
digitalocean.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
discord.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
doppler.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
droneci.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
dropbox.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
duffel.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
dynatrace.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
easypost.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
etsy.go 83e99bacf1 feat(report): allow user-defined templates (#1650) il y a 1 an
facebook.go d88bc094f7 facebook keyword il y a 1 an
fastly.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
finicity.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
finnhub.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
flickr.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
flutterwave.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
flyio.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
frameio.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
freemius.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
freshbooks.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
gcp.go f6193bc92c feat(gcp): increase rule entropy (#1840) il y a 9 mois
generic.go 782f310478 Archive support (#1872) il y a 8 mois
github.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) il y a 10 mois
gitlab.go 107a41827b Add support for GitLab Runner Tokens (Routable) (#1820) il y a 10 mois
gitter.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
gocardless.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
grafana.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
harness.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
hashicorp.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
hashicorp_vault.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) il y a 10 mois
heroku.go 6f251eef65 Added Heroku API Key New Version (#1883) il y a 8 mois
hubspot.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
huggingface.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
infracost.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
intercom.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
intra42.go 455ae0aab7 More rule fixes (#1586) il y a 1 an
jfrog.go f0d4499064 Add comma as operator for GenerateSemiGenericRegex (#1679) il y a 1 an
jwt.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
kraken.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
kubernetes.go 6f967cad68 fix(kubernetes): remove slow element from pat (#1848) il y a 9 mois
kucoin.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
launchdarkly.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
linear.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
linkedin.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
lob.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
mailchimp.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
mailgun.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
mapbox.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
mattermost.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
maxmind.go 3e8cd2d1ab Add MaxMind license key rule (#1771) il y a 10 mois
meraki.go 3fdaefdaa3 fix(meraki): restrict keyword case (#1722) il y a 1 an
messagebird.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
netlify.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
newrelic.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
npm.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
nuget.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) il y a 10 mois
nytimes.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
octopusdeploy.go 43fae355e6 feat(rules): create Octopus Deploy api key (#1602) il y a 1 an
okta.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
openai.go ddcc75371f implement new openai regex pattern (#1780) il y a 10 mois
openshift.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
perplexity.go 7fb21a4e61 feat(rules): Add Perplexity AI API key detection (#1825) il y a 9 mois
plaid.go 782f310478 Archive support (#1872) il y a 8 mois
planetscale.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
postman.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
prefect.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
privateai.go 00bb82153e feat: add PrivateAI rule (#1548) il y a 1 an
privatekey.go 3fa5a3a954 Minor false positive improvements (#1758) il y a 11 mois
pulumi.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
pypi.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
rapidapi.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
readme.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
rubygems.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
scalingo.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
sendbird.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
sendgrid.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
sendinblue.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
sentry.go 3fa5a3a954 Minor false positive improvements (#1758) il y a 11 mois
settlemint.go f6966057f5 feat: add settlemint api keys detection (#1663) il y a 1 an
shippo.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
shopify.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
sidekiq.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
slack.go 9708e65c25 A first attempt adding hooks.slack.com/triggers/ (#1792) il y a 10 mois
snyk.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
sonar.go 818e32f7a4 Add Sonar rule (#1756) il y a 11 mois
sourcegraph.go c6424a6fc3 added sourcegraph token rule (#1736) il y a 1 an
square.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
squarespace.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
stopwords.go e97695b852 feat(generic-api-key): exclude keywords (#1587) il y a 1 an
stripe.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
sumologic.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
teams.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
telegram.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
travisci.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
trello.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
twilio.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) il y a 1 an
twitch.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
twitter.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
typeform.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
yandex.go c11adc91ad Generate comprehensive secret samples (#1484) il y a 1 an
zendesk.go c11adc91ad Generate comprehensive secret samples (#1484) 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}`, false),
Entropy: 2,
Keywords: []string{
"rdme_",
},
}

// validate
tps := utils.GenerateSampleSecrets("api-token", "rdme_"+secrets.NewSecret(utils.AlphaNumeric("70")))

fps := []string{
`const API_KEY = 'rdme_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';`,
}
return utils.Validate(r, tps, fps)
}