Skip to content

MongoDB Atlas

MongoDB Atlas is MongoDB's managed database service; one connector covers one Atlas organization.

  • What DRACO uses: Organization and project settings for posture scans.
  • What for: Compliance checks and posture dashboards.

Add it in Connectors > Add connector: pick MongoDB Atlas, then choose what DRACO collects and what it may change. Add more later with Add a part on its connector page. See Connectors for how connectors, sign-in and tags work.

Parts

Part What DRACO uses Access Permissions
Posture MongoDB Atlas read An organization API key with Organization Read Only, with DRACO's public IP address in its API access list. Optional: Organization Owner (full control of the organization) only for the database auditing check.

This guide walks you through the requirements of MongoDB Atlas and how to connect it in DRACO.

Prerequisites

Before you begin, make sure you have:

  1. A MongoDB Atlas organization with API Access enabled.
  2. An Organization ID (24-character hex string).
  3. An API Key pair (public and private keys) with appropriate permissions:
  4. Organization Read Only: Provides read-only access to everything in the organization, including all projects in the organization. This permission is sufficient for most security checks.
  5. Organization Owner: Required to audit the Auditing configuration for projects. Database auditing tracks database operations and security events, including authentication attempts, data definition language (DDL) changes, user and role modifications, and privilege grants. This configuration is essential for security monitoring, forensics, and compliance. Without Organization Owner permission, the projects_auditing_enabled check cannot retrieve the audit configuration status.

For detailed instructions on creating API keys, see the MongoDB Atlas authentication guide.

Warning

If Require IP Access List for the Atlas Administration API is enabled in the organization settings, add the IP address of the host running DRACO (or the public IP of DRACO) to the organization IP Access List or Atlas will reject every API call. Manage this under Settings → Organization Settings → Security. See step 7 of the authentication guide for detailed instructions, and refer to the DRACO egress IPs when using DRACO.

Connect the provider in DRACO

Step 1: Add the Provider

  1. Open Connectors, click Add connector and pick MongoDB Atlas: the wizard opens at Link a Provider.

  2. Enter your Organization ID (24 hex characters). This value is visible in the Atlas UI under Organization Settings.

  3. (Optional) Add a friendly alias to identify this organization in dashboards.

Step 2: Provide API Credentials

  1. Click Next to open the credentials form.
  2. Paste the Atlas Public Key and Atlas Private Key generated in the Atlas console.

Step 3: Test the Connection and Start Scanning

  1. Click Authenticate, then Check connection to ensure DRACO can reach the Atlas API.
  2. When the connection works, launch the first scan (Run now or On a schedule). The provider appears in the list with its connection status.

Every authentication option in detail: MongoDB Atlas authentication.