Closed machuecos closed 6 months ago
Hi machuecos! 👋
Welcome, and thank you for opening your first issue in the repo!
Please wait for triaging by our maintainers.
As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. Sponsorship link
If you plan to raise a PR for this issue, please take a look at our contributing guide.
Hi, please share the contents of your config file (/kafka-ui/config.yml
)
Further user feedback is requested. Please reply within 7 days or we might close the issue.
Hi @Haarolean:
config.yml: |-
auth:
type: disabled
kafka:
clusters:
- bootstrapServers: my-strimzi-kafka-bootstrap.strimzi.svc:9093
name: strimzi
management:
health:
ldap:
enabled: false
Thanks for the additional feedback! We'll get back to your issue soon.
The error in your logs is about possibly missing bootstrapServers
property. But your config looks valid, so here's a thing to try: does it work (or does the error change to some other one) if you get rid of the rest of the env vars?
Remove this:
- name: KAFKA_CLUSTERS_0_PROPERTIES_SSL_TRUSTSTORE_LOCATION
value: /ssl/kafka.truststore.jks
- name: KAFKA_CLUSTERS_0_PROPERTIES_SSL_KEYSTORE_LOCATION
value: /ssl/kafka.keystore.jks
and see what happens.
Further user feedback is requested. Please reply within 7 days or we might close the issue.
The error in your logs is about possibly missing
bootstrapServers
property. But your config looks valid, so here's a thing to try: does it work (or does the error change to some other one) if you get rid of the rest of the env vars? Remove this:- name: KAFKA_CLUSTERS_0_PROPERTIES_SSL_TRUSTSTORE_LOCATION value: /ssl/kafka.truststore.jks - name: KAFKA_CLUSTERS_0_PROPERTIES_SSL_KEYSTORE_LOCATION value: /ssl/kafka.keystore.jks
and see what happens.
Same error:
App with default connection:
And logs with exception:
Thanks for the additional feedback! We'll get back to your issue soon.
For anyone stumbling to this issue: if you use (m)TLS on broker side, and configure properties such as KAFKA_CLUSTERS_0_PROPERTIES_SSL_TRUSTSTORE_LOCATION
in kafka-ui
, make sure to also configure KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL: SSL
.
For me, the underlying issue behind this error stacktrace was that brokers only allowed secure connections. While appropriate keys were passed correctly to kafka-ui
, they were not used because the security.protocol=ssl
kafka property was not set in client. Just passing keys is not enough, that's common for kafka clients afaik.
This was also visible in info logs for client when kafka-ui
started, which mentioned that properties such as ssl.trustore.location
etc were set, but not used "yet".
Issue submitter TODO list
main
-labeled docker image and the issue still persists thereDescribe the bug (actual behavior)
I have been following the documentation to provide the
truststore.jks
andkeystore.jks
to be able to connect to the Kaka cluster via SSL https://docs.kafka-ui.provectus.io/configuration/helm-charts/configuration/ssl-example#create-secret exactly the same steps but Kafka-UI is not able to up the application in the pod and I get an error in loop.Expected behavior
No response
Your installation details
Steps to reproduce
Follow the steps from the documentation (SSL Example section): https://docs.kafka-ui.provectus.io/configuration/helm-charts/configuration/ssl-example#create-secret
Screenshots
Logs
Additional context
No response