---
title: How to rotate the secrets of your Supabase integration
description: Rotate Supabase API keys, JWT secrets, and database passwords.
url: /kb/guide/how-to-reset-the-secrets-of-your-supabase-integration
canonical_url: "https://vercel.com/kb/guide/how-to-reset-the-secrets-of-your-supabase-integration"
published: 2025-12-07
last_updated: 2026-07-16
authors: TMO
related: []
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---
<!-- docsgraph:related -->
## Related pages

> **For AI agents:** Follow these links to understand how this page connects to the rest of the Vercel ecosystem. For the full cross-link map (inbound, outbound, prerequisites, and semantic neighbors), see the .graph.md link below.

- [Rotating Environment Variables](https://vercel.com/docs/environment-variables/rotating-secrets?from=related) — Safely rotate API keys, tokens, and other secrets in your Vercel environment variables.
- [Secrets Rotation](https://vercel.com/docs/integrations/create-integration/secrets-rotation?from=related) — Learn how to implement secrets rotation in your integration to allow users to rotate credentials securely.
- [How to rotate the secrets of your Upstash integration](https://vercel.com/kb/guide/how-to-reset-the-secrets-of-your-upstash-integration?from=related) — Rotate Upstash API keys, JWT secrets, and database passwords.
- [How to rotate the secrets of your Redis integration](https://vercel.com/kb/guide/how-to-reset-the-secret-for-your-redis-integration?from=related) — This will guide you how to update the password for a Redis databse.
- [How to rotate the secrets of your Hypertune integration](https://vercel.com/kb/guide/how-to-reset-the-secrets-of-your-hypertune-integration?from=related) — Rotate Hypertune API keys with zero-downtime.
- [Key rotation](https://vercel.com/docs/kms/concepts/key-rotation?from=related) — How Vercel KMS stages a pending signing key, schedules its activation, and retires the previous key so already-issued to
- [How to rotate the secrets of your Neon integration](https://vercel.com/kb/guide/how-to-reset-a-secret-for-a-neon-integration?from=related) — This will guide you how to update the password for a Neon project.
- [Rotate Installation Credential](https://vercel.com/docs/rest-api/marketplace/rotate-installation-credential?from=related)
- [How to rotate the secrets of your MongoDB Atlas integration](https://vercel.com/kb/guide/how-to-reset-the-secret-for-your-mongodb-atlas-integration?from=related) — This will guide you how to update the password for a MongoDB Atlas databse.
- [Update Resource Secrets](https://vercel.com/docs/rest-api/marketplace/update-resource-secrets?from=related)

Full cross-link map for this page: [/kb/guide/how-to-reset-the-secrets-of-your-supabase-integration.graph.md](/kb/guide/how-to-reset-the-secrets-of-your-supabase-integration.graph.md)
<!-- /docsgraph:related -->


Secret rotation is a security best practice that limits the exposure window if a credential is compromised. You might rotate secrets when:

- A team member with access to credentials leaves
  
- You suspect a credential has been exposed
  
- Your security policy requires periodic rotation
  

These steps will guide you on updating the password for your Supabase database.

### Prerequisites

\- You have a Supabase database through a Native integration from Vercel Marketplace.

\- You have access to manage your account's resources, including your Supabase integration.

### Steps

#### Go to Supabase from your integration

1\. From your Vercel dashboard, go to the Integrations tab.

2\. Next to the integration, select the Manage button. Native integrations appear with a billable badge.

3\. Find and select the database that has secrets you want to rotate.

4\. Select the Open in Supabase button.

#### Rotate JWT secret key

1\. Go to **Project Settings**

2\. Go to **JWT Keys**

3\. Locate the **Legacy JWT Secret** section

4\. Select **Change legacy JWT secret**

5\. Select **Generate a random secret,** then type: `I understand and wish to proceed` in the confirmation field and select the **Generate random secret** button.

> Changing the JWT secret will invalidate all existing user sessions. Users will need to log in again.

#### Rotate Postgres password

1\. Go to **Database settings**

3\. Select **Reset database password**

4\. Select **Generate a password & Reset password**

> All database connections will be terminated when you reset the password. Your application will lose database connectivity until you redeploy with the new password.

### Rotate Supabase secret key

1\. Go to **Project Settings**

2\. Go to **API Keys**

3\. Select **New secret key**

4\. Enter a name and select **Create API key**

5\. Select the three dots next to the old key

6\. Select **Delete the API key**, enter the name and confirm

### Redeploy in Vercel

1\. From your Vercel [dashboard](https://vercel.com/dashboard), select your project

2\. Go to the **Deployments** tab

3\. Find your latest production deployment

4\. Select the three dots and select **Redeploy**