Closed ThomasDangleterre closed 2 years ago
The correct configuration was :
"connect.producer.security.protocol": "SSL",
"connect.producer.ssl.key.password":
"connect.producer.ssl.keystore.location": "/etc/config/kafka.keystore.p12",
"connect.producer.ssl.keystore.password":
"connect.producer.ssl.keystore.type": "PKCS12",
"connect.producer.ssl.truststore.location": "/etc/config/kafka.truststore.jks",
"connect.producer.ssl.truststore.password":
@Thomas-Dangleterre I wanted to reply but you resolved it on your own. But it is strange what you observed.
When the broker is running on TLS, the connector needs its series of ssl.xxxxx
properties set for its bootstrap server connection. In addition, the series of producer.ssl.xxxx
and consumer.ssl.xxxx
properties just need to be set for the sink and source connectors, respectively. And that should be sufficient. https://docs.confluent.io/platform/current/kafka/encryption.html#kconnect-long
Hi,
I have created a connector thanks to debezium that successfully connect to my broker with ssl. We can see in producer and consumer ssl properties correctly initialized :
But the properties of the sap hana connector producer in source mode are not being passed well :
It seems like only the bootstrap server is present in producer's config so I'm getting this warning :
Bootstrap broker <broker-host> - (id: -1 rack: null) disconnected [org.apache.kafka.clients.NetworkClient]
even tho the connection to SAP Hana database seems up :Returning 100 records for IncrColTableQuerier{...
I have tried many ways to override those properties, as environnement variables directly and also on connector's configuration when creating it.
Could you please tell me if there is a way to use SSL in the producer config ?