---
title: How to rotate the secrets of your MongoDB Atlas integration
description: This will guide you how to update the password for a MongoDB Atlas databse.
url: /kb/guide/how-to-reset-the-secret-for-your-mongodb-atlas-integration
canonical_url: "https://vercel.com/kb/guide/how-to-reset-the-secret-for-your-mongodb-atlas-integration"
last_updated: 2026-07-16
authors: Marc Brakken
related: []
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

> When you change the MongoDB password, the current one will immediately stop working. All projects that rely on the password will be unable to connect to the database until they are re-deployed.

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 MongoDB database.

## Prerequisites

- You have a MongoDB Atlas database through a Native integration from Vercel Marketplace.
  
- You have access to manage your account's resources, including your MongoDB Atlas integration.
  

## Steps

### Step 1: Go to MongoDB Atlas 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. On the Integrations page, select the **Open in MongoDB Atlas** button.
   

### Step 2: Under “Security” in the left navigation click “Database & Network”.

### Step 3: Select **Edit** on the user in the list. A modal will open.

### Step 3: Select **Edit Password** and then **Autogenerate Secure Password**

### Step 4: Scroll to the bottom of the modal and click **Update User** to save your changes.

### Step 5: Deploy your projects on Vercel

- Go back to your MongoDB Atlas integration on Vercel and confirm the new environment variables are available
  
- Deploy any connected projects in Vercel