prometheus-kafka-adapter icon indicating copy to clipboard operation
prometheus-kafka-adapter copied to clipboard

Support TLS in addition to Mutual TLS

Open rmadamson opened this issue 2 years ago • 1 comments

In main.go, on line 38, all three configuration options must be specified in order to set the appropriate kafka ca certificate location parameter. Mutual TLS requires all three, but regular TLS (where the brokers don't authenticate the clients over TLS) does not work unless you create a bogus client certificate and keypair (that isn't used).

An easy fix would be to set those TLS options if the kafka security protocol is either ssl or sasl_ssl

rmadamson avatar Aug 03 '23 16:08 rmadamson

@rmadamson do you feel like contributing this change to the repo?

palmerabollo avatar Aug 31 '23 23:08 palmerabollo