Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different behavior observed for 1way vs 2way SSL when deploying pulsar connector NAR File to pulsar cluster #154

Open
praagraw-tibco opened this issue May 3, 2023 · 3 comments

Comments

@praagraw-tibco
Copy link

I am using Cassandra 4 and cdc-apache-cassandra 2.2.3.

I am seeing different behaviour for two way vs one way ssl when trying to deploy pulsar connector NAR file in the Pulsar cluster.
I have my certificates created using JDK (JAVA Key Tool). If am setting value of ssl.provider as "OpenSSL", I am getting exception while deploying pulsar connector NAR File
But for 1way SSL it's getting deployed successfully without any exception.

For 2way SSL, I am using below configuration:

ssl.provider="OpenSSL"
ssl.hostnameValidation="false"
ssl.keystore.password=
ssl.keystore.path=
ssl.truststore.password=
ssl.truststore.path=

For 1way SSL, I am using below configuration:

ssl.provider="OpenSSL"
ssl.hostnameValidation="false"
ssl.truststore.password=
ssl.truststore.path=

Could you please confirm if this is expected?

@aymkhalil
Copy link
Contributor

would you be able to try your 2-way TLS setup with tlsRequireTrustedClientCertOnConnect=true on your brokers/proxies and see if it goes through?

Reference: https://pulsar.apache.org/docs/2.11.x/security-tls-transport/#configure-brokers-1

@praagraw-tibco
Copy link
Author

I tried it out but still am able to see different behavior

@aymkhalil
Copy link
Contributor

@praagraw-tibco looking closer into this, it seems we are configure the mTLS between the connector and Cassandra - not between the connector and the brokers. For the latter:

  • Use Pulsar Admin CLI settings for experimenting if you are running the connector in local mode. Relevant settings can be found if you run but also see here:
./bin/pulsar-admin source localrun

Hope that helps. Please note that those settings are pulsar connector related and not CDC specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants