-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow for custom oauth settings #5483
Comments
Wouldn't it be better to make the Strimzi OAuth library work with your setup? Our idea for it is to make it usable with any OAuth 2 server. So maybe the things you need there might be needed by others as well. (of course I do not know your setup, so it is hard to say how much unique it is) I also wonder whether I like the idea of having some |
Yeah I should mention I do apologize as this is very bespoke requirements. The annoying thing here is it's hard to expect a lot of setups/groups/organizations/companies to conform to a certain standard, especially around authorization/authentication. That said, I think as you mention custom auth here is probably the best way to go, just so it's usable for everyone in the community, and can help these random edge-cases. Of course, I also think if someone is going down the custom auth route, it should be fully expected that they're off-roading, and I think the only expectation there should be that your properties are passed through. Especially seeing as, you'll have to bundle a custom image already in order to get your custom classes on the classpath. I'll write a proposal for this :) |
How are you handling this today with Strimzi's OAuth @scholzj ? I see that if Strimzi OAuth is declared, we override the I assume operator and the other listeners still use cert-based authn/z, and the OAuthKafkaPrincipalBuilder supports both? |
Read the code a bit more of |
Well, the difference is that that is our own principal builder which is written and tested to handle this. That might not apply for any custom builder a user provides. |
Submitted a proposal: strimzi/proposals#41 |
Fixed in #6162 |
Is your feature request related to a problem? Please describe.
Our Kafka setup integrates with our environments, which has a bespoke security setup. It uses OAuth2, but we need to be able specify our own callbacks and principals.
Describe the solution you'd like
Allow the ability to specify in the oauth2 listener config:
Describe alternatives you've considered
Another idea here, which is probably more ideal, is to simply allow for custom authentication section, and is up to the user to specify their listener config. I don't see this as being too egregious, as there already is a section for custom authorization.
Additional context
Happy to contribute!
The text was updated successfully, but these errors were encountered: