Can I create and use a custom Authorizer? #4174
-
Hi -- We are planning to stand up a cluster to leverage Azure AD to issue and validate JWT Tokens. We have been able to deploy Kafka into an AKS test cluster, using the OAuth capabilities in Strimzi. Thank you for the documentation and examples that helped us figure how to do this. For reference, our YAML looks like this:
The next step is to enforce authorization. While I am not 100% of this, I suspect we will likely need to create a custom authorizer (due to the security requirements). On one hand it seems like this would be possible if I do the following:
At this point, I realize it might not be possible. Looking at the allowable types in kafka crd, there are only simple, opa, and keycloak. Regardless of what I have coded in my server.properties and docker image, each of these selections will force the a certain type of authorizer (just as the docs suggest). I guess my question is, is there any way to provide a custom authorizer into my cluster? Thank you. Rob |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is not possible right now. But in the past I had some thoughts about having a But it would be great if you could also (if possible) describe a bit more detail about why you need custom authorizer and why are the ones we support not sufficient. Just to make sure this isn't something what we can for example implement in our authorizer instead. |
Beta Was this translation helpful? Give feedback.
It is not possible right now. But in the past I had some thoughts about having a
custom
authorizer supported in the CRD which would just let you specify the authorizer class and additional config and let you use it (after you add the JAR to the container images). That might cover the simple situation ... but would probably not work if your authorizer needs some special configs or mount some special volumes etc. So if there is some interest for it and if this would work for you, I'm sure we can open an enhancement for it and add it. It would not be so complicated.But it would be great if you could also (if possible) describe a bit more detail about why you need custom authorizer and why a…