Helm chart configuration to authenticate via Azure OAuth2 #3550
-
Hi everybody, I'm trying to configure kafka-ui to authenticate via OAuth2, but I can't find an example for Azure using the Helm chart as most of the documentation is about docker. kafka-console-consumer --bootstrap-server kafka-bootstrap:9094 \
--topic my_topic --group my_group \
--consumer-property 'security.protocol=SASL_SSL' \
--consumer-property 'sasl.mechanism=OAUTHBEARER' \
--consumer-property 'sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required clientId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" clientSecret="***" scope="https://management.core.windows.net/.default";' \
--consumer-property 'sasl.login.callback.handler.class=org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerLoginCallbackHandler' \
--consumer-property 'sasl.oauthbearer.token.endpoint.url=https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/v2.0/token' How can I translate this in the YAML configuration? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi, please take a look here. |
Beta Was this translation helpful? Give feedback.
-
Please take a look at this example, you'll get an idea how to format your properties. |
Beta Was this translation helpful? Give feedback.
@ccontino84 take a look here. You can either use a yaml config map (I strongly recommend yaml over env properties) or env properties way.
Here's some example of a config map with env vars.