Skip to content

MongoDB Atlas Authentication

MongoDB Atlas provider uses HTTP Digest Authentication with API key pairs consisting of a public key and private key.

Required Permissions

MongoDB Atlas API keys require appropriate permissions to perform security checks:

The public IP address of the DRACO server (ask your DRACO operator) must be added to the IP Access List of the MongoDB Atlas organization API key. Turning off "Require IP Access List for the Atlas Administration API" in Organization Settings also removes this requirement, but lets the key be used from any address; keep the access list. This setting is enabled by default.

Warning

To ensure the check organizations_api_access_list_required passes, enable the API access list for the organization and add the execution IP to the organization's IP Access List. When running checks from DRACO, add our IP to the IP Access List.

Organization Settings

API Key

MongoDB now calls API keys a legacy method and recommends service accounts. DRACO signs in to Atlas with an organization API key:

  1. Log into MongoDB Atlas and pick your organization in the Organizations menu of the top bar.
  2. In the sidebar, under Identity & Access, click Applications.
  3. Click Add new > API Key and enter a description (DRACO).
  4. In Organization Permissions choose Organization Read Only and click Next.

    Create API Key

  5. Save Credentials: copy the public key and the private key; Atlas shows the private key only once.

    Save Credentials

  6. Add the IP access list entry in the same dialog: click Add Access List Entry, enter the public IP address DRACO uses to reach the internet, click Save, then Done. Organizations created in the Atlas UI accept API calls only from addresses on this list.

    Organization Settings

Only the database auditing check needs Organization Owner, which gives full control of the organization: add it to the key only if you need that check.