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




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