Hello, I'm trying to set up a MongoDB source with ...
# replication-troubleshooting
s
Hello, I'm trying to set up a MongoDB source with TLS in a self-hosted Airbyte environment. I’ve added the MongoDB certificate to the truststore in the workload launcher pod, but I have no way to mount that volume into the connector-sidecar container. As a result, I’m encountering the following error:
Copy code
Configuration check failed
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=mongodb-community-database-1.mongodb-community-database-svc.databases.svc.cluster.local:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}}, {address=mongodb-community-database-2.mongodb-community-database-svc.databases.svc.cluster.local:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}}, {address=mongodb-community-database-0.mongodb-community-database-svc.databases.svc.cluster.local:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}}]
p
You can build custom sidecar Docker image
s
what about the helm chart? I can't add volumes to it
And where can I find the source code of the sidecar?
p
You can patch existing sidecar Docker image, you don't have to do it from scratch
Suggestion was about building custom sidecar with needed certificate
s
But what if I wanted to mount a different certificate?
p
You can build Docker image with all the certificates you need
Ideal solution would be modifying connector to support it