How to connect to managed MongoDB, Kafka or OpenSearch, and lock it down

Skip to main content
Print

How to connect to managed MongoDB, Kafka or OpenSearch, and lock it down

Click View connection details to copy the server, port, username, password and a ready-made connection string, and download the CA certificate if your client needs it. Then add your servers under Trusted Sources: with none listed, any address can connect.

Applies to: managed MongoDB, Kafka and OpenSearch.

Connection details

  1. Open your database service and click View connection details.
  2. Copy the Host, Port, Database, Username and Password, or the Connection string. OpenSearch also shows its Dashboards address.
  3. Click Download CA certificate if your client asks for one.
  • MongoDB: mongosh with the connection string, TLS on.
  • Kafka: SASL_SSL, PLAIN mechanism, your username and password, trusting the CA certificate.
  • OpenSearch: https with your username and password, e.g. curl -u <user> "https://<server>:<port>/_cluster/health".

Lock it down with Trusted Sources

  1. Open Trusted Sources.
  2. Enter your server’s IPv4 address or range and click Allow address. Changes apply within a minute.

Removing the last allowed address opens the database to every address again.

New password

Regenerate password creates a new secure password and shows it in Connection details. Update your applications.

Your data

Keep your own exports of anything important, and export before cancelling: the cluster is deleted with the service.

Table of Contents

Get your website online with PD Hosting

UK hosting, domains and support from a real team. From a first site to a full server.

Terms and Conditions  ·  Privacy Policy

PD Hosting is the trading name of Projektif Digital Ltd, registered in England and Wales, company number 12482555.