-
Notifications
You must be signed in to change notification settings - Fork 51
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
IAMLoginModule should be marked to be initialized at runtime #1204
Comments
This should have a "good-first-issue" label applied. |
Looking into the aforementioned issue, it is related to another SDK that this extension is primarily focused on ( Given that AWS has numerous SDKs, some more maintained than others, I don't believe this extension should handle all of them. While some SDKs may use I'd like to hear your thoughts on this. @gsmet, any thoughts? |
I believe this issue exists because of the |
I'm a bit lost about how to proceed with this issue. I couldn't find the I'm willing to submit a PR, it's just that I'm not sure about what we can do here 😅 |
Actually, this might be an issue with a previous AWS API version. I'm no expert but maybe it's only relevant for v1 of the API. Looks like Quarkus might be using v2 now. If this is the case, then the issue can probably be closed. Can someone confirm? |
IAMSaslClientProvider
lookup fails when running with Quarkus native. This is due to the mechanism name registration depending on classloader hashcode values. The issue arises because by default Quarkus initializes all classes at build time rather than runtime, so the static block insoftware.amazon.msk.auth.iam.IAMLoginModule
runs at build time, and that registers the mech name with a hashcode value, which is different to the one computed at runtime.The issue can easily be solved by making sure that
software.amazon.msk.auth.iam.IAMLoginModule
is runtime initialized. This should really be done by the Quarkus Amazon integration, but until then the following workaround can be passed to a native buildMore details in quarkusio/quarkus#39548
The text was updated successfully, but these errors were encountered: