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:
- Organization Read Only: Provides read-only access to everything in the organization, including all projects in the organization.
- To audit the Auditing configuration for the project, Organization Owner permission is required.
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.

API Key¶
MongoDB now calls API keys a legacy method and recommends service accounts. DRACO signs in to Atlas with an organization API key:
- Log into MongoDB Atlas and pick your organization in the Organizations menu of the top bar.
- In the sidebar, under Identity & Access, click Applications.
- Click Add new > API Key and enter a description (
DRACO). -
In Organization Permissions choose Organization Read Only and click Next.

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

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

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.