Sentry Token

ID

sentry_token

Severity

high

Vendor

Sentry

Family

API Token

Description

Sentry is a crash reporting platform that provides you with "real-time insight into production deployments with info to reproduce and fix crashes". It notifies you of exceptions or errors that your users run into while using your app, and organizes them for you on a web dashboard.

Tokens are used to authenticate the requests to the API that it provides to interact with the service.

Security

Any hardcoded Sentry Token is a potential secret reported by this detector.

Accidentally checking-in the key to source control repositories could compromise the Sentry account and data, leading to leaks in your software applications handled by Sentry.

Examples

SENTRY='ryxEbwSEfEhf5rsG7HcaXDy_--Gf4H.GbYsPRfB4bEhZp3bm9mnJGMNgz6UajtcJ'

Mitigation / Fix

  1. Remove the Token from the source code or committed configuration file.

  2. Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). Go to your dashboard to revoke the token.

  3. If under a git repository, you may remove unwanted files from the repository history using tools like git filter-repo or BFG Repo-Cleaner. You may follow the procedure listed here for GitHub.

You should consider any sensitive data in commits with secrets as compromised.

Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.