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.
Mitigation / Fix
-
Remove the
Token
from the source code or committed configuration file. -
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.
-
If under a git repository, you may remove unwanted files from the repository history using tools like
git filter-repo
orBFG 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. |