# Leaked Supabase Access Token? Revoke It Now

> Supabase management token exposed in a repo or log? Revoke it, check projects and keys, then rotate project secrets. Step-by-step guide.

Source: https://leakwatch.net/secrets/supabase-management-api-token

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  Supabase Management API Token

Databases & keys · Secret guide

# Leaked Supabase Management API Token: what to do in the first hour

Critical severityChecked liveLast verified November 5, 2026 · 5 min read

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:

```text
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

1.  **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.
2.  **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.
3.  **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.
4.  **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.
5.  **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.
6.  **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.
7.  **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](/blog/i-accidentally-pushed-an-api-key-to-github).

Not sure what else leaked from the same repository? [Run a free scan](/).

[Not sure what else leaked? 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.

## Related

-   [PlanetScale API Token](/secrets/planetscale-api-token)
-   [Database Connection String](/secrets/database-connection-string)
-   [JDBC Connection String](/secrets/jdbc-connection-string)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with Supabase.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
