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

[GR-36719] Automatically register the Sasl provider. #4279

Merged
merged 1 commit into from
Oct 1, 2022

Conversation

graalvmbot
Copy link
Collaborator

The Sasl service does not conform to the JCA and therefor is not automatically registered by our SecurityServicesFeature. This service uses SaslClient#createSaslClient and SaslServer#createSaslServer methods as a means of instantiating different implementations of the service. However, we cannot use these methods directly for reachability handlers, as the Sasl service is used through a facade class: javax.security.sasl.Sasl

This PR adds the special handling required to automatically register the Sasl provider when used through javax.security.sasl.Sasl

Copy link
Collaborator

@zakkak zakkak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM, Thanks @gradinac

@zakkak
Copy link
Collaborator

zakkak commented Sep 15, 2022

@gradinac it looks like this one slipped through the cracks :)

@graalvmbot graalvmbot force-pushed the gradinac/GR-36719/sasl-provider branch from 185db19 to 4e55e6e Compare September 27, 2022 10:29
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 27, 2022
@gradinac
Copy link
Contributor

@zakkak thank you for looking into this one! :) It had been gathering dust for a bit, I've rebased it and added internal tests, I'll look into merging it to master now :)

@graalvmbot graalvmbot force-pushed the gradinac/GR-36719/sasl-provider branch 3 times, most recently from 7fbd490 to 15ba587 Compare September 28, 2022 09:59
@graalvmbot graalvmbot force-pushed the gradinac/GR-36719/sasl-provider branch from 15ba587 to a7cb207 Compare September 28, 2022 16:59
@graalvmbot graalvmbot closed this Oct 1, 2022
@graalvmbot graalvmbot deleted the gradinac/GR-36719/sasl-provider branch October 1, 2022 22:29
@graalvmbot graalvmbot merged commit 8061aaa into master Oct 1, 2022
@cmtoan
Copy link

cmtoan commented Jan 24, 2024

I have the probleme of build native
here
to use "-H:AdditionalSecurityProviders=software.amazon.msk.auth.iam.internals.IAMSaslClientProvider"

Do you know how to solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement. oracle-emp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants