Skip to main content
Customer-provided MongoDB: the origin stack uses MongoDB; the customer can plug in MongoDB Atlas, Atlas with PrivateLink, or a self-hosted MongoDB cluster. If your origin stack uses MongoDB as its document store, your customer can supply their own MongoDB deployment and the compiler will emit a deployment stack that talks to it instead of provisioning a default-shipped MongoDB. MongoDB Atlas is the most common manifestation - a managed multi-cloud cluster - but it is not the only one. Self-hosted MongoDB on Kubernetes or on VMs is equally supported.

What the customer provides

FieldPurpose
Connection stringA mongodb:// or mongodb+srv:// URI for the cluster. The SRV form is typical for Atlas; the standard form is typical for self-hosted.
Database nameThe database the appliance’s services should connect to.
UsernameThe MongoDB user the appliance authenticates as.
Password (or workload-identity reference)The credential for the database user. Atlas Workload Identity is supported where the customer has it configured.
CA certificate (optional)The trust anchor for the cluster’s TLS certificate. Atlas uses a public CA by default; customers using private peering or self-hosted MongoDB may need to supply a custom CA.
The customer creates the cluster (or chooses an existing one), creates the database user with the privileges your application needs, and configures network access so the appliance can reach the cluster.

What changes in the deployment stack

When customer-provided MongoDB is selected, the compiler:
  • Drops the default-shipped MongoDB instance from the deployment stack (no cluster provisioning, no automated backups, no scaling configuration).
  • Wires the appliance’s services to the customer’s connection string and database.
  • Injects the customer’s credentials as secrets the services read at startup.
Your application code does not change. The connection URI changes; the queries the application emits do not.

What the customer takes on

When your customer brings their own MongoDB, they own:
  • Cluster provisioning and tier sizing.
  • Network access configuration so the appliance can reach the cluster. For Atlas this is an IP allowlist, PrivateLink, or VPC peering. For self-hosted MongoDB this is typically VPC/security-group configuration.
  • Backup configuration, including continuous backups and point-in-time recovery (Atlas tier feature, or the customer’s own backup tooling for self-hosted).
  • Patching, version upgrades, and major-version migrations.
  • High-availability, replica-set topology, and cross-region replication.
  • Monitoring and alerting on the MongoDB side.

What stays your responsibility

  • All application-level concerns: data model, query performance, application-managed migrations, index strategy.
  • Your services continue to be observable through Tensor9’s normal mechanisms.
  • Operations commands that operate on the appliance’s services still work normally. Operations commands cannot reach into your customer’s MongoDB.

Deployment notes

Atlas (public endpoint) - the path of least friction. The appliance reaches the Atlas cluster over the public internet, authenticated by user/password and gated by an Atlas IP allowlist that includes the appliance’s egress. Atlas + PrivateLink - the recommended production posture when the customer is on Atlas. PrivateLink removes the public-internet route to the cluster entirely; the appliance reaches Atlas via a private endpoint in the customer’s VPC. Self-hosted MongoDB - the customer runs MongoDB themselves (commonly on Kubernetes via the MongoDB Operator, or on VMs/bare metal). The appliance treats it like any other MongoDB endpoint - only the connection string changes. The customer owns operations, backup, and upgrades. In all three cases, read preferences and write concerns stay defined by your application; the customer’s deployment must support whatever your application requires.

Authentication and rotation

The username and password (or workload-identity reference) are stored as Customer-Supplied Secrets - Tensor9 has no visibility into the underlying value. The appliance reads them at startup. Two rotation paths:
  • Static password: rotate the database-user password in Atlas (or the customer’s MongoDB) and update the secret in the customer’s secret store; restart the affected services.
  • Atlas Workload Identity: the appliance authenticates to Atlas using a customer-supplied OIDC token; the underlying token is refreshed by the identity provider on its own cadence, so no service restart is needed for credential rotation.

Where this fits

This page is one of the services covered by Customer-Provided Services. Partner documentation: Atlas Private Endpoints, Atlas database user setup, MongoDB Kubernetes Operator.