Skip to content

LS-DB-012: PlanetScale OAuth Token

Severity HIGH
Blast radius Database access and schema control
Rotate at https://app.planetscale.com/

If this leaks

Acts on behalf of the authorizing user, with access to their organizations, databases, and branches.

What to do

  1. Rotate or revoke the credential at https://app.planetscale.com/.
  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

pscale_oauth_[A-Za-z0-9_-]{32,}

Suppress

On one line: # leakscan:ignore LS-DB-012. For the whole project:

disable_rules: [LS-DB-012]