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

Kafka Oidc-Provider Auth-Gateway Example #119

Open
rishabhsinhaa opened this issue Dec 6, 2022 · 1 comment
Open

Kafka Oidc-Provider Auth-Gateway Example #119

rishabhsinhaa opened this issue Dec 6, 2022 · 1 comment

Comments

@rishabhsinhaa
Copy link

Can anyone please provide an example for using oidc-provider as the auth-gateway using the kafka-proxy

@somerek
Copy link

somerek commented Oct 26, 2023

Hi. I run it like this:
make clean build plugin.oidc-provider && build/kafka-proxy server --sasl-enable --sasl-plugin-enable --sasl-plugin-mechanism "OAUTHBEARER" --sasl-plugin-command build/oidc-provider --sasl-plugin-param "--credentials-file=/path/to/service-account.json" --bootstrap-server-mapping "kafka:9092,0.0.0.0:19092"
And service-account.json:

{
  "grant_type": "password",
  "client_id": "kafka",
  "client_secret": "kafka-secret",
  "username": "bob",
  "password": "bob-password",
  "token_url": "http://keycloak:8080/auth/realms/kafka-authz/protocol/openid-connect/token",
  "scopes": ["openid", "offline_access"]
}

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

No branches or pull requests

2 participants