---
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"
published: 2025-12-07
last_updated: 2026-07-16
authors: Marc Brakken
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.
- [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.
- [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 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.
- [How to rotate the secrets of your Supabase integration](https://vercel.com/kb/guide/how-to-reset-the-secrets-of-your-supabase-integration?from=related) — Rotate Supabase API keys, JWT secrets, and database passwords.
- [Password Protection](https://vercel.com/docs/deployment-protection/methods-to-protect-deployments/password-protection?from=related) — Require visitors to enter a password before they can view your deployments.
- [Update Resource Secrets](https://vercel.com/docs/rest-api/marketplace/update-resource-secrets?from=related)
- [Rotate Installation Credential](https://vercel.com/docs/rest-api/marketplace/rotate-installation-credential?from=related)
- [How to rotate the secrets of your Clerk integration](https://vercel.com/kb/guide/how-to-reset-the-secrets-of-your-clerk-integration?from=related) — Rotate Clerk API keys

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


> 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