Skip to content

Add option for env variable for kafka_saslJaasConfig - #276

Open
brunnjf wants to merge 1 commit into
obsidiandynamics:masterfrom
brunnjf:env-saslJaasConfig
Open

brunnjf wants to merge 1 commit into
obsidiandynamics:masterfrom
brunnjf:env-saslJaasConfig

Conversation

@brunnjf

@brunnjf brunnjf commented May 13, 2021

Copy link
Copy Markdown

#30 added SASL support. Currently, in order to configure SASL plain, I think the best practice for kafdrop would be to configure the appropriate login module in the sasl.jaas.config property in kafka.properties. Something like...

sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="USER" password="PASSWORD";

This unfortunately puts user/pw information in plaintext in a file when running directly from a JAR.

Due to the nature of SpringBoot configuration, the change in this PR has the side effect of enabling configuration of the user/pw in the environment (kafka_saslJaasConfig) and through a command line argument (--kafka.saslJaasConfig) as is currently supported for brokers (kafka_brokerConnect/--kafka.brokerConnect).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant