Skip to content

LS-HEROKU-001: Heroku API Key

Severity HIGH
Blast radius Deployment pipeline and secrets compromise
Rotate at https://dashboard.heroku.com/account/applications
--verify GET https://api.heroku.com/account

If this leaks

Allows deploying apps, reading config vars (which hold other secrets) and running one-off dynos.

What to do

  1. Rotate or revoke the credential at https://dashboard.heroku.com/account/applications.
  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

\bHRKU-[A-Za-z0-9_\-]{58,60}\b

Suppress

On one line: # leakscan:ignore LS-HEROKU-001. For the whole project:

disable_rules: [LS-HEROKU-001]