opensearch-connector-for-apache-kafka icon indicating copy to clipboard operation
opensearch-connector-for-apache-kafka copied to clipboard

Options for SSL

Open arnitolog opened this issue 1 year ago • 22 comments

Hello, we have ssl enabled for REST on the Opensearch side. So, need somehow specify ssl options on the connector side. In the elasticsearch connector there were options like:

elastic.security.protocol: "SSL"
elastic.https.ssl.truststore.location: "/tmp/kafka/cluster.truststore.p12"
elastic.https.ssl.truststore.password: "${file:/tmp/strimzi-connect.properties:ssl.truststore.password}"
elastic.https.ssl.truststore.type: "PKCS12"
elastic.https.ssl.enabled.protocols: "TLSv1.3"

is there any possibility to do the same in Opensearch connector?

arnitolog avatar Sep 21 '22 02:09 arnitolog

@arnitolog yes it is possible to add.

willyborankin avatar Oct 17 '22 06:10 willyborankin

@willyborankin do you have any example how to do this?

arnitolog avatar Oct 17 '22 17:10 arnitolog

@arnitolog this feature needs to be added

willyborankin avatar Nov 24 '22 13:11 willyborankin

@willyborankin I have made changes to support @arnitolog request in the class OpensearchClient. I added a new constructor using the proposed properties. It's tested against a cluster of OpenSearch nodes. Can I create a pull request?

eaudet avatar Dec 10 '22 20:12 eaudet

Also looking for this fix, would appreciate the PR

@willyborankin I have made changes to support @arnitolog request in the class OpensearchClient. I added a new constructor using the proposed properties. It's tested against a cluster of OpenSearch nodes. Can I create a pull request?

jake1098 avatar Dec 13 '22 00:12 jake1098

@willyborankin I have made changes to support @arnitolog request in the class OpensearchClient. I added a new constructor using the proposed properties. It's tested against a cluster of OpenSearch nodes. Can I create a pull request?

@eaudet Sure your are welcome :-)

willyborankin avatar Dec 13 '22 15:12 willyborankin

@willyborankin I have made changes to support @arnitolog request in the class OpensearchClient. I added a new constructor using the proposed properties. It's tested against a cluster of OpenSearch nodes. Can I create a pull request?

@eaudet also looking for the fix, thanks. Meanwhile, did you add just those proposed properties which are related to trustore, or will you also include keystore setting such as below?

elastic.https.ssl.keystore.location
elastic.https.ssl.keystore.password 
elastic.https.ssl.keystore.type
elastic.https.ssl.key.password
elastic.https.ssl.protocol

wannajob avatar Dec 14 '22 22:12 wannajob

@willyborankin I have made changes to support @arnitolog request in the class OpensearchClient. I added a new constructor using the proposed properties. It's tested against a cluster of OpenSearch nodes. Can I create a pull request?

@eaudet also looking for the fix, thanks. Meanwhile, did you add just those proposed properties which are related to trustore, or will you also include keystore setting such as below?

elastic.https.ssl.keystore.location
elastic.https.ssl.keystore.password 
elastic.https.ssl.keystore.type
elastic.https.ssl.key.password
elastic.https.ssl.protocol

It does not work without trust store. You need to provide both trust and key store

willyborankin avatar Dec 18 '22 18:12 willyborankin

@willyborankin I have made changes to support @arnitolog request in the class OpensearchClient. I added a new constructor using the proposed properties. It's tested against a cluster of OpenSearch nodes. Can I create a pull request?

@eaudet also looking for the fix, thanks. Meanwhile, did you add just those proposed properties which are related to trustore, or will you also include keystore setting such as below?

elastic.https.ssl.keystore.location
elastic.https.ssl.keystore.password 
elastic.https.ssl.keystore.type
elastic.https.ssl.key.password
elastic.https.ssl.protocol

It does not work without trust store. You need to provide both trust and key store

yeah, that is what i want to confirm

wannajob avatar Dec 19 '22 20:12 wannajob

did anyone manage to get this done

akash092 avatar Jan 30 '23 22:01 akash092

Looks like no. I will create an internal issue for our team.

willyborankin avatar Mar 01 '23 09:03 willyborankin

@willyborankin do you have any updates?

arnitolog avatar May 10 '23 13:05 arnitolog

Is there any news about SSL parameters? We have OpenSearch cluster with authentication and SSL too. Thanks.

martinsagan avatar Jun 05 '23 14:06 martinsagan

@willyborankin Could you please provide an update regarding this Issue? SSL encryption really is an important feature to have.

XLAQO avatar Nov 24 '23 11:11 XLAQO

@XLAQO we made it through fluentbit, or you can try it through fluentd if dont have K8s

martinsagan avatar Nov 24 '23 11:11 martinsagan

Any news about the SSL support for the connector? Somebody managed to use it with the code of @eaudet ?

ageorget avatar Apr 09 '24 08:04 ageorget

First off, thanks guys for maintaining an open-source sink connector for OpenSearch; it's really useful! @willyborankin

Was there any progress made in the support of SSL? It would be super appreciated on our side.

qlecorre avatar Apr 25 '24 14:04 qlecorre

First off, thanks guys for maintaining an open-source sink connector for OpenSearch; it's really useful! @willyborankin

Was there any progress made in the support of SSL? It would be super appreciated on our side.

Hi @qlecorre, it looks like no one are willing to add this functionality :-). It will take some time but I will add it.

willyborankin avatar Apr 29 '24 08:04 willyborankin

Thanks @willyborankin, it's much appreciated!

qlecorre avatar Apr 29 '24 13:04 qlecorre

https://github.com/willyborankin Can I take this up?

On Mon, 29 Apr 2024 at 16:25, Quentin Le Corre @.***> wrote:

Thanks @willyborankin https://github.com/willyborankin, it's much appreciated!

— Reply to this email directly, view it on GitHub https://github.com/Aiven-Open/opensearch-connector-for-apache-kafka/issues/106#issuecomment-2082744803, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC53FOTOCIANFCCR2HAFSV3Y7ZC5JAVCNFSM6AAAAAAQRULQNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSG42DIOBQGM . You are receiving this because you are subscribed to this thread.Message ID: <Aiven-Open/opensearch-connector-for-apache-kafka/issues/106/2082744803@ github.com>

fadhilijuma avatar Apr 29 '24 13:04 fadhilijuma

https://github.com/willyborankin Can I take this up? On Mon, 29 Apr 2024 at 16:25, Quentin Le Corre @.***> wrote: Thanks @willyborankin https://github.com/willyborankin, it's much appreciated! — Reply to this email directly, view it on GitHub <#106 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC53FOTOCIANFCCR2HAFSV3Y7ZC5JAVCNFSM6AAAAAAQRULQNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSG42DIOBQGM . You are receiving this because you are subscribed to this thread.Message ID: <Aiven-Open/opensearch-connector-for-apache-kafka/issues/106/2082744803@ github.com>

Thank you , @fadhilijuma! But I already started to work on it.

willyborankin avatar Apr 29 '24 13:04 willyborankin

Okay thanks for the great work.

On Mon, Apr 29, 2024 at 4:53 PM Andrey Pleskach @.***> wrote:

https://github.com/willyborankin Can I take this up? … <#m_-9080845024341341216_> On Mon, 29 Apr 2024 at 16:25, Quentin Le Corre @.***> wrote: Thanks @willyborankin https://github.com/willyborankin https://github.com/willyborankin, it's much appreciated! — Reply to this email directly, view it on GitHub <#106 (comment) https://github.com/Aiven-Open/opensearch-connector-for-apache-kafka/issues/106#issuecomment-2082744803>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC53FOTOCIANFCCR2HAFSV3Y7ZC5JAVCNFSM6AAAAAAQRULQNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSG42DIOBQGM . You are receiving this because you are subscribed to this thread.Message ID: </issues/106 https://github.com/Aiven-Open/opensearch-connector-for-apache-kafka/issues/106 /2082744803@ github.com>

Thank you , @fadhilijuma https://github.com/fadhilijuma! But I already started to work on it.

— Reply to this email directly, view it on GitHub https://github.com/Aiven-Open/opensearch-connector-for-apache-kafka/issues/106#issuecomment-2082818715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC53FOU4NE3SKUQL7S4LLODY7ZGFDAVCNFSM6AAAAAAQRULQNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSHAYTQNZRGU . You are receiving this because you were mentioned.Message ID: <Aiven-Open/opensearch-connector-for-apache-kafka/issues/106/2082818715@ github.com>

fadhilijuma avatar Apr 29 '24 13:04 fadhilijuma