How to encrypt Kafka security configuration passwords at broker and client side.
I am currently storing the Kafka security configurations(password related configs) in Plain-text format in the following ways
- at the Kafka server side in Kafka/config/server.properties
ssl.truststore.password=
ssl.keystore.password=
ssl.key.password=
listener.name.sasl.ssl.scram-sha-256.sasl.jaas.config.password=
the values are Plain-text passwords
- at the client side in application.properties
spring.cloud.stream.kafka.binder.jaas.options.password =
spring.cloud.stream.kafka.binder.configuration.ssl.truststore.password =
the values are Plain-text passwords
but I instead of storing these passwords as Plain-text, I want to store them in encrypted form at both the above places. I am looking for some sample examples for the same as I couldn't find any helpful resources for the same.