LS-DB-009: Supabase Service Key¶
| Severity | HIGH |
| Blast radius | Full database compromise (bypasses access control) |
| Rotate at | https://supabase.com/dashboard/project/_/settings/api |
| Validation | jwt_ok |
--verify |
none (JWT role and expiry decoded locally) |
If this leaks¶
Bypasses row-level security and grants full read/write access to the entire Postgres database behind the Supabase project.
What to do¶
- Rotate or revoke the credential at https://supabase.com/dashboard/project/_/settings/api.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\.[A-Za-z0-9_-]{50,}\.[A-Za-z0-9_-]{20,}
Suppress¶
On one line: # leakscan:ignore LS-DB-009. For the whole project:
disable_rules: [LS-DB-009]