question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kafka security config params not being picked up from env vars (channel config)

See original GitHub issue

Describe the bug

Kafka configuration on the channel does not get picked up when using environment variables.

This seems to be a variant of https://github.com/quarkusio/quarkus/issues/9947

When using channel specific configuration (e.g. MP_MESSAGING_INCOMING_<channel>_SASL_JAAS_CONFIG) it doesn’t get picked up. But it works when using e.g. the YAML file.

Expected behavior

Should work with environment variables as well.

Actual behavior

Does not work.

How to Reproduce?

  • Create a working configuration using Kafka configuration in the channel section
  • Convert to env-vars according to the micro-profile specification

Output of uname -a or ver

Linux brocken 5.15.13-200.fc35.x86_64 #1 SMP Wed Jan 5 16:39:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version “11.0.13” 2021-10-19 OpenJDK Runtime Environment 18.9 (build 11.0.13+8) OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.6.3.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ctroncommented, Jan 31, 2022

Hm, indeed I experiences this with env-vars. Not sure about env-files. Will correct the title.

0reactions
cescoffiercommented, May 1, 2022

Closing, as we would need a reproducer.

I used a similar code for a devoxx university about Kafka I gave 2 weeks ago. and everything worked OOTB.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kafka security config params not being picked up from env file
Describe the bug Not all Kafka security options are being picked up when using a .env file. We need this as we use...
Read more >
Kafka Connect Security Basics | Confluent Documentation
When the Connect worker starts up it instantiates all ConfigProvider implementations specified in the worker configuration. All properties prefixed with config.
Read more >
Kafka 3.3 Documentation
We provide three configuration files as parameters. The first is always the configuration for the Kafka Connect process, containing common configuration such as ......
Read more >
Apache Kafka Reference Guide - Quarkus
Injecting @Channel("prices") or having @Incoming("prices") does not automatically configure the application to consume messages from Kafka.
Read more >
Configuring Strimzi (0.32.0)
When deploying Kafka, the Cluster Operator automatically sets up and renews TLS ... see Configuring the Cluster Operator with environment variables.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found