A Supabase management token is a personal access token for Supabase’s Management API. It is the credential the Supabase CLI and related tools use to act as you, not as one project. Whoever holds it can list the organizations and projects you can reach, create or delete projects, and read the API keys that belong to each project. Those project keys are what the rest of your application trusts, so the management token is the key to all of them. Revoke it first, then review every project it could touch.
Check your GitHub account for leaked secrets — free
- Provider
- Supabase
- Severity
- Critical
- Impact
- Cloud infrastructure access
- Checked live by LeakWatch
- Yes
What a Supabase Management API Token looks like
Supabase personal access tokens for the management API start with sbp_, followed by a long run of lowercase letters, digits and some punctuation:
sbp_…XXXX Supabase management token (masked)
The sbp_ prefix is the detail to check. It is different from the project keys that Supabase issues for each database and API, which are the values an application puts in its environment. Those project keys are secrets too, and some of them, such as the service role key, bypass row-level security entirely. A management token sits one level above them: it can read those project keys through the API. If you find an sbp_ value, treat it as the most serious Supabase credential you can have leaked.
How Supabase management tokens get leaked
- Shell history and terminal output. A token pasted into a command, such as an export line used to set up the CLI, saved in the history file or printed on a shared screen.
- Repositories and scripts. A deploy or migration script that carries the token so that it can run unattended.
- CI variables echoed in logs. A pipeline that prints its environment, or a debug step that shows the request headers sent to the management API.
- MCP and editor configuration. A tool configuration file for an AI assistant or editor integration that stores the token in plain text, then gets committed.
- Shared snippets. A token pasted into a bug report, a forum thread or a tutorial when a command failed.
What to do in the first hour
- Revoke the token. Open the account settings on Supabase, find the access tokens section, locate the token and delete it. Do this before you clean the code, because the token works until you delete it.
- Make a replacement for each tool that still needs one, and store it in a secret manager or the environment of the process that uses it. Prefer a separate token per tool, so the next revocation is smaller.
- List the projects. Review every organization and project on the account. Look for projects you did not create and for new members or changed settings.
- Check project keys. Assume the API keys of each project may have been read. Rotate the service role key and the database password for projects that hold sensitive data, then update the applications that use them.
- Review database access. Check network restrictions and any connection pooler settings. A new database role or an unexpected connection from an unfamiliar address is a sign to look more closely.
- Check the logs. Use the project logs and the account’s activity records for the period since the exposure. Look for management API calls you did not make.
- Clean the repository. Remove the value from current files and from any tool configuration, add those files to
.gitignore, and rewrite history if the repository was public. The full sequence is in I accidentally pushed an API key to GitHub.
Not sure what else leaked from the same repository? Run a free scan.
Revoke it at Supabase
Personal access tokens belong to your account, not to a project, and they are managed from the access tokens area of your account settings in the Supabase dashboard. Each token is shown once when it is created, so keep a copy somewhere safe for your replacement. Deleting a token ends its access immediately for the Management API, and any tool that still uses it will start to fail with an authorization error. Scoped tokens can be created with narrower permissions, which is a good choice for automation. We could not confirm the exact menu wording and placement in the current interface, so check the page yourself and do not rely on an older screenshot. If you cannot find the token in your account, it may have been created from another account you can access, so check that too.
How LeakWatch detects it
The rule is called “Supabase Management API Token”. It looks for the prefix sbp_ followed by 40 characters from the set of lowercase letters, digits, underscores and hyphens, with a word boundary before the prefix and a quote, space, semicolon or line end after the value. The severity is critical, with the infrastructure and cloud impact class, because the token reaches every organization and project on the account. This type is checked live: LeakWatch can check whether a detected token is still valid with a read-only request that lists your projects. It does not create, change or delete anything, and it keeps only the number of projects, not the database hosts that the listing also returns.
LeakWatch can check whether a detected key is still active with a read-only request to Supabase. It never reads your data or spends your credits.
FAQ
Is a management token the same as the project API keys?
No. The management token acts for your account across projects through the Management API, while each project has its own keys for the database and the REST and auth endpoints. A leaked management token makes the project keys readable, so revoke it first and then rotate the project keys that matter.
If the live check says the token is invalid, am I safe?
Not necessarily. An invalid result means the token did not work at the time of the check. It does not show who used it before, and it does not change the project keys it may already have read. Review the activity and rotate the sensitive project keys either way.
Will revoking the token break my deployments?
Only the tools that use it. Replace the token in each one and confirm they work, then move on. Deployments that use project keys from the environment are not affected by revoking the management token, although a later key rotation will need to be deployed too.