Grafana Personal Token
ID |
grafana_personal_token |
Severity |
low |
Vendor |
Grafana |
Family |
API Token |
Description
Grafana is a multi-platform open source analytics and interactive visualization web application. It provides charts, graphs, and alerts for the web when connected to supported data sources.
They expose the API that is used by the frontend to do everything from saving dashboards, creating users and updating data sources.
Security
Any hardcoded Grafana Token is a potential secret reported by this detector.
Accidentally checking-in the token to source control repositories could compromise your Grafana account.
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). API Key revocation can be handled from your Grafana dashboard or with an API call authenticated using a session cookie. See Deleting an API Key.
-
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. |