How to onboard MongoDB Atlas (Posture) ↗
Overview
Integrate Cloud Security with your MongoDB Atlas account to gain comprehensive visibility into any data and posture risk existing in your MongoDB Atlas environment. This integration enables automated scanning of all assets in MongoDB Atlas, including data classification and risk assessment.
Prerequisites
- You are an administrator.
- You have the following information:
- Organization ID
- Service account client ID
- Service account client secret
- You have created a service principal and granted it permissions.
Add configuration details
- Go to Settings > Data Sources & Integrations and then on the Data Sources & Integrations screen, click + Add New.
- On the Add Data Sources or Integrations page, click Show More > Database and then click on the MongoDB Atlas (Posture) card and then click Add.\
Alternatively, you can enter “Mongo” in the Search Sources filter field, and then click on the MongoDB Atlas (Posture) card > Add as mentioned above. - In the MongoDB Atlas (Posture) Instance screen, enter the following:
- Display Name
- MongoDB Atlas Organization ID
- Client ID
- Client Secret
- Optional: If your MongoDB Atlas account is protected by network policies, turn on the toggle, then select the required regions for each cloud provider (AWS, Azure, GCP).
- Click Next.
Establish a connection
- In the IP List, select the IPs from the regions that you had selected that you want to whitelist. A tooltip shows the selected regions for the cloud platforms you are using.
- A script is generated that needs to be run in the MongoDB Atlas account.
Set up your MongoDB Atlas connection
- Open your MongoDB console in a new tab.
- Copy or download the script provided in step 2 above and run it in the MongoDB CLI.
- Proceed to verifying the connection.
Verify the connection
- Click Verify Connection.\
NOTE: Keep the screen open for the duration of the connection verification. - Once you see the Instance Created Successfully message on the screen, you can click Close.
- You can now go back to the Data Sources & Integrations screen and MongoDB Atlas (Posture) should appear in the list with relevant details such as Vendor and Instances Status. To see more details, click on the row and a pane opens with further account details such as connection status and more.