8000
Skip to content

Detect basic-auth credentials in URLs - #2224

Open
rylena wants to merge 1 commit into
gitleaks:masterfrom
rylena:fix-basic-auth-url-secret
Open

Detect basic-auth credentials in URLs#2224
rylena wants to merge 1 commit into
gitleaks:masterfrom
rylena:fix-basic-auth-url-secret

Conversation

@rylena
@rylena rylena commented Jul 30, 2026
Copy link
Copy Markdown

Summary

  • add a default basic-auth-url rule for HTTP(S) URLs that embed userinfo credentials
  • include allowlists for common placeholders and variable interpolation
  • regenerate config/gitleaks.toml

Fixes #2214

Verification

  • go generate ./...
  • go test ./cmd/generate/config/...
  • go run . dir /tmp/gitleaks-basic-auth.txt --no-banner --no-color --redact=0 --verbose (confirmed a basic-auth-url finding; command exits 1 when leaks are found)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

http Basic-Auth secret not detected

1 participant

0