Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --command-config options to kafka::topic to permit topic manageme… #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bovy89
Copy link

@bovy89 bovy89 commented Oct 28, 2024

If kafka has been configured with SASL and self-signed SSL certificates and using zookeeper is not an options (kraft is being used), you need to pass --command-config in order to be able to manage topics.

/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka01.example.com:9093 --command-config /opt/kafka/config/admin.config --describe

/opt/kafka/config/admin.config:

sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="<%= $kafka_admin_user %>" password="<%= $kafka_admin_password %>";
security.protocol=SASL_SSL
sasl.mechanism=PLAIN
<%- if $self_signed_certs { -%>
ssl.truststore.location=<%= $kafka_keystore_path %>
ssl.truststore.password=<%= $jks_password %>
ssl.truststore.type=JKS
<%- } -%>

@bovy89 bovy89 force-pushed the feature/command-config branch 5 times, most recently from 4968df3 to 6799efc Compare October 29, 2024 11:08
…nt if sasl or custom client configuration are required
@bovy89 bovy89 force-pushed the feature/command-config branch from 6799efc to ad6b9c2 Compare October 29, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants