Skip to content

LS-SENTRY-002: Sentry DSN

Severity MEDIUM
Blast radius Error monitoring data pollution
Rotate at https://sentry.io/settings/account/api/auth-tokens/

If this leaks

Primarily used to submit events to a Sentry project; if it includes a private key, it could allow ingesting forged error events.

What to do

  1. Rotate or revoke the credential at https://sentry.io/settings/account/api/auth-tokens/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

https://[a-f0-9]{32}@[a-z0-9.-]+\.ingest\.(?:[a-z]+\.)?sentry\.io/[0-9]+

Suppress

On one line: # leakscan:ignore LS-SENTRY-002. For the whole project:

disable_rules: [LS-SENTRY-002]