Set Kafka producer properties to enable encryption

Hi,
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 System.properties.

Which implementation would you prefer:

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

Reagards,
Sven

Since there was no response, I chose the solution that needs only minimal code changes. You can find the Commit here.

What do you think?