Replies: 2 comments 2 replies
-
You should find more info about it in the doc here https://strimzi.io/docs/operators/latest/deploying#assembly-oauth-security-str where there is a section dedicated to the usage of Kubernetes service account. @mstruk maybe you can help more here? |
Beta Was this translation helpful? Give feedback.
1 reply
-
There is a concrete example of how to configure it: https://strimzi.io/docs/operators/latest/deploying#:~:text=Configuring%20fast%20local%20JWT%20token%20validation%20with%20Kubernetes%20service%20accounts |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m exploring the possibility of implementing OAuth-based authentication in Strimzi Kafka using Kubernetes service accounts (SA). Specifically, I would like to authenticate Kafka clients using JWT tokens issued by Kubernetes service accounts, and validate these tokens against the Kubernetes JWKS endpoint.
Key Questions:
Use Case:
I am aiming to authenticate Kafka clients based on JWT tokens issued to Kubernetes service accounts. The goal is for Kafka to use these tokens for client authentication, with validation being handled through the Kubernetes OAuth/JWKS mechanism.
Context:
Strimzi Version: v0.45.0
Kubernetes Version: v1.28.4
I tried something like this in kafka spec:
But the request to the Kubernetes JWKS endpoint (https://kubernetes.default.svc/openid/v1/jwks) was rejected with a 403 Forbidden error due to authentication issues. The error message indicated that the request was being made by an unauthorized user (system:anonymous), as Kubernetes service account tokens were not properly authorized for accessing the endpoint.
If you allow that with some role bindings, getting :
If this feature is not currently supported, are there any recommended workarounds or alternative approaches to achieve this functionality in Strimzi?
Beta Was this translation helpful? Give feedback.
All reactions