Set Kafka producer properties to enable encryption


I’m using Hendrik Saly’s kafka-end-2-end-encryption. To use this approach the lib has to be added to the classpath, and the serializer has to be overwritten via produver properties. The code doesn’t look like it is possible to pass custom properties to the producer.

It would be great if the current properties were used as default and could be overwritten by a config file or

Which implementation would you prefer:

  1. Properties file as cli argument
  2. Extending the config file
  3. Using