Category: Datasources
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Connecting Appsmith to an Encrypted/Tls Enabled External Mongodb Instance

Issue

I am trying to connect my self-hosted AppSmith instance to an external MongoDB instance that requires TLS and encryption. I have the necessary certificate and key files, and have configured the mongod.conf file and URI connection string to use them. However, AppSmith times out when trying to connect to MongoDB and never provides the certificate. I have searched for solutions, but have not found a definitive answer. I need help configuring the AppSmith .env file to properly provide the certificate and key files for authentication to MongoDB.

Resolution

Unfortunately, it seems that AppSmith currently does not support SSL connections to MongoDB when using the tlsCertificateKeyFile parameter. We have a feature request for this: https://github.com/appsmithorg/appsmith/issues/18409

If you are interested in this feature, please add a comment with your use case to the GitHub issue to help us prioritize it.