Mongo DB
Setup Instructions
- Ensure MongoDB is configured as a replica set, whether hosted on MongoDB Atlas or deployed locally.
- Create a read-only user with restricted access:
- On MongoDB Atlas: Use the Atlas UI to add a user with the “read any database” role, limiting access to specific clusters as necessary.
- For self-hosted setups: Use the
mongosh
shell to create a user with read permissions on the intended database. Make sure authentication is turned on, and update the mongodb.conf
file to set bindIp
and enable security.authorization
.
- Retrieve the MongoDB connection URI:
- From Atlas: Use the “Connect” option on the dashboard to generate the URI.
- For self-managed instances: Consult MongoDB documentation to construct the proper connection string.
- Set up the MongoDB source in the xGen interface, using the retrieved connection URI and the user credentials.
Essential Configuration Fields
- Type of Cluster (Atlas or Self-hosted)
- MongoDB Connection URI
- Target Database Names (supports multiple)
- User Credentials (Username & Password)
- Authentication Source (required for Atlas)
- Enforce Schema (true/false)
- Optional advanced settings: initial wait time, queue limit, and sample size for discovery