MongoDB Atlas Portal

Create an integration to manage access to a MongoDB Atlas UI instance and its resources

MongoDB Atlas is a fully-managed cloud database service that automates database administration tasks for MongoDB. It supports multiple cloud providers and offers advanced features like real-time analytics and security controls. Atlas simplifies database management, allowing organizations to focus on application development with a scalable, flexible database solution that adapts to changing needs and workloads.

Through this integration, Apono helps you securely manage access to your MongoDB Atlas UI Organizations and Projects.



Prerequisites

ItemDescription
Apono ConnectorOn-prem connection serving as a bridge between a MongoDB Atlas instance and Apono:
Atlas Command Line Interface (Atlas CLI)Command line interface that enables quickly provisioning and managing Atlas database deployments from the terminal.
MongoDB Atlas InfoInformation for the MongoDB Atlas UI resources to be integrated:
  • Cluster name
  • Organization ID
Users in Mongo Atlas PortalAll users requesting access to Organizations or Projects must already exist in the Mongo Atlas Organizations. Otherwise, the grant will fail.

When users are granted access, they can log in with their regular account through OIDC or with a username and password.


Create an API key

You must create an API key with the Organization User role for the Apono connector.

Follow these steps to create the API key:

  1. In the Atlas CLI, create the API key. The following command will return the public and private API keys in the response.

    ⚠️

    Be sure to replace <ORGANIZATION_ID> with the organization ID of the MongoDB Atlas UI to integrate.

    atlas organizations apiKeys create --role ORG_OWNER --desc apono_connector --orgId <ORGANIZATION_ID>
    
  2. Using the keys from the previous step, create a secret for the MongoDB Atlas UI instance:


    // Replace #PUBLIC_KEY and #PRIVATE_KEY with the actual key values.
    
    "public_key": "#PUBLIC_KEY"
    "private_key": "#PRIVATE_KEY"
    

You can now integrate your MongoDB Atlas UI resources.



Integrate MongoDB Atlas UI resources

Follow these steps to complete the integration:

  1. On the Catalog tab, click Mongo Atlas Portal. The Connect Mongo Atlas Portal page appears.
  2. From the dropdown menu, select a connector.

    💡

    If the desired connector is not listed, click + Add new connector and follow the instructions for creating a connector (AWS, Azure, GCP, Kubernetes).


  1. Under Select resource types, select one or multiple resource types for Apono to discover in all instances of the environment.
  2. Click Next. The Complete setup page appears.
  3. Enter a unique, alphanumeric, user-friendly Integration Name. This name is used to identify this integration when constructing an Access Flow.
  4. Enter the Organization Id of the MongoDB Atlas UI instance to connect.
  5. Enter the Cluster Name of the MongoDB Atlas UI instance to connect.
  6. Under Secret Store, associate the secret:
  7. Click Connect.

Now that you have completed this integration, you can create access flows that grant permission to your MongoDB Atlas UI Organizations and Projects.