Spotify Keys
ID |
spotify_keys |
Severity |
low |
Vendor |
Spotify |
Family |
API Token |
Description
Spotify is a proprietary audio streaming and media services provide. It is one of the largest music streaming service providers. Its API allows to gather metadata about music content or personal data about a user.
Security
Any hardcoded Spotify Key is a potential secret reported by this detector.
Accidentally checking-in the key to source control repositories could compromise your Spotify account.
Examples
SPOTIFY_CLIENT_ID = os.environ["SPOTIFY_CLIENT_ID"] SPOTIFY_KEY = 'gbh5f5aet8xv9tz3kud9ga5ahykjbshq'
Mitigation / Fix
-
Remove the
Key
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. |