#kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

#kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

alex.decastro
Dear flinkers,
I'm consuming from a kafka broker in a server that has ssl authentication enabled? How do I config my consumer to compy with it?

Many thanks
Alex
Reply | Threaded
Open this post in threaded view
|

Re: #kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

rmetzger0

On Wed, Feb 8, 2017 at 4:40 PM, alex.decastro <[hidden email]> wrote:
Dear flinkers,
I'm consuming from a kafka broker in a server that has ssl authentication
enabled? How do I config my consumer to compy with it?

Many thanks
Alex



--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/kafka-ssl-how-to-enable-ssl-authentication-for-a-new-kafka-consumer-tp11532.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: #kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

alex.decastro
Thanks Robert.
As a beginner Flinker, hot to tell my Flink app (in Intellij say) where the flink-conf.yaml is.  

Alex

Reply | Threaded
Open this post in threaded view
|

Re: #kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

alex.decastro
In reply to this post by alex.decastro
I found a similar question and answer at #stackoverflow
http://stackoverflow.com/questions/37743194/local-flink-config-running-standalone-from-ide

Verify?
Reply | Threaded
Open this post in threaded view
|

Re: #kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

rmetzger0
I've added another answer on SO that explains how you can pass a custom configuration object to the execution environment.

On Thu, Feb 9, 2017 at 11:09 AM, alex.decastro <[hidden email]> wrote:
I found a similar question and answer at #stackoverflow
http://stackoverflow.com/questions/37743194/local-flink-config-running-standalone-from-ide

Verify?



--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/kafka-ssl-how-to-enable-ssl-authentication-for-a-new-kafka-consumer-tp11532p11539.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: #kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

alex.decastro
 Cool, thanks. Just checked it.

One last question:

if the server hosting my Kafka broker has only SSL enabled, but not SASL (Kerberos) how to go about enabling connection authentication between client consumer and broker?

Same for data transfer?
Reply | Threaded
Open this post in threaded view
|

Re: #kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

Tzu-Li (Gordon) Tai
Hi Alex,

Kafka authentication and data transfer encryption using SSL can be simply done be configuring brokers and the connecting client.

You can take a look at this: https://kafka.apache.org/documentation/#security_ssl.

The Kafka client that the Flink connector uses can be configured through the `Properties` configuration provided when instantiating `FlinkKafkaConsumer`. You just need to set values for these config properties: https://kafka.apache.org/documentation/#security_configclients.

Note that SSL truststore / keystore locations must exist on all of your Flink TMs for this to work.

Hope this helps!

- Gordon
Reply | Threaded
Open this post in threaded view
|

Re: #kafka/#ssl: how to enable ssl authentication for a new kafka consumer?

tunm4
I aslo meet this problem. Can you share me solutions?
Thank you so much!