How to make MongoDB sink connector work with SSL on a Openshift deployment

Solution Verified - Updated -

Issue

  • There is no documentation online available on how to make MongoDB sink connector work with SSL on an Openshift deployment. Probably this is because RedHat does not offer a MongoDB sink connector class, as this class com.mongodb.kafka.connect.MongoSinkConnector is offered by MongoDB, and therefore is not supported by RedHat. We are documenting this issue, as the procedures described here may be useful to MongoDB and Debezium users
  • There is some documentation here about setting a standalone Debezium connector with SSL, and the proposed solution is this one:
export KAFKA_OPTS="\
-Djavax.net.ssl.trustStore=<your path to truststore> \
-Djavax.net.ssl.trustStorePassword=<your truststore password> \
-Djavax.net.ssl.keyStore=<your path to keystore> \
-Djavax.net.ssl.keyStorePassword=<your keystore password>"

Environment

  • Openshift 4.x
  • AMQ Streams 2.x cluster
  • KafkaConnect and KafkaConnector objects
  • MongoDB instance accepting SSL connections
  • MongoDB client and server PKCS12 files, having all the required certificates

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content