Expand my Community achievements bar.

SOLVED

how to replicate to kafka using jks .

Avatar

Level 4

I am working on replicating data to Kafka using ssl trust store . I would like to know as to what would be the best way to accomplish this .

1 Accepted Solution

Avatar

Employee Advisor

For that case you need to store the certificate somewhere;  I would recommend to store it at runtime in the repository and not to deploy it via OSGI. But that's probably the simplest part in replicating data to Kafka

9 Replies

Avatar

Employee Advisor

What do you mean with "replicating data to Kafka", do you want to use the AEM replicating mechanism or just run code in AEM which is able to submit data to Kafka?

Avatar

Community Advisor

@AEMnewbie ,

 

IfKafka accepts JSON, then you can try to use sling models as API endpoint  and post the data to store it in the required format.

Otherwise activeMQ is onemore thought.

 

 

Avatar

Level 4

But how would i setup the authentication part in this case ?

Avatar

Employee Advisor

Do you need to use a client-side certificate for authorization? Or is a simple user/password mechanism, which you need to transmit over an encrypted connection?

Avatar

Employee Advisor

For that case you need to store the certificate somewhere;  I would recommend to store it at runtime in the repository and not to deploy it via OSGI. But that's probably the simplest part in replicating data to Kafka

Avatar

Level 4

@Jörg_Hoh Is there a code snippet for this kind of implementation that i can take a look at?

Avatar

Employee Advisor

Simplest approach: Store the certificate as asset and protect it using ACLs.