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.
Copy link to headingPrerequisites
- 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.
Copy link to headingSteps
Copy link to headingStep 1: Go to MongoDB Atlas from your integration
- From your Vercel dashboard, go to the Integrations tab.
- Next to the integration, select the Manage button. Native integrations appear with a
billablebadge. - On the Integrations page, select the Open in MongoDB Atlas button.
Copy link to headingStep 2: Under “Security” in the left navigation click “Database & Network”.

Copy link to headingStep 3: Select Edit on the user in the list. A modal will open.

Copy link to headingStep 3: Select Edit Password and then Autogenerate Secure Password


Copy link to headingStep 4: Scroll to the bottom of the modal and click Update User to save your changes.
Copy link to headingStep 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