Skip to content

LS-PREFECT-001: Prefect API Key

Severity HIGH
Blast radius Workflow orchestration compromise
Rotate at https://app.prefect.cloud/my/api-keys

If this leaks

Allows running and modifying flows and reading blocks, which store other credentials.

What to do

  1. Rotate or revoke the credential at https://app.prefect.cloud/my/api-keys.
  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

\bpnu_[A-Za-z0-9]{36}\b

Suppress

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

disable_rules: [LS-PREFECT-001]