Skip to content

ARTEMIS-5316 XOAUTH2 SASL mechanism for broker connection #5721

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bstlukasiewicz
Copy link

No description provided.

@@ -536,6 +538,7 @@ private static int parseDefaultVariable(String variableName, int defaultValue) {
allowableConnectorKeys.add(TransportConstants.TRUST_MANAGER_FACTORY_PLUGIN_PROP_NAME);
allowableConnectorKeys.add(TransportConstants.HANDSHAKE_TIMEOUT);
allowableConnectorKeys.add(TransportConstants.CRL_PATH_PROP_NAME);
allowableConnectorKeys.add(TransportConstants.SASL_MECHANISMS);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same issue as before, we should not be adding SASL mechanisms to netty options as AMQP is the protocol that's implementing the SASL bits, others do not so the options should be handled as other AMQP specific options are.


private List<String> getAcceptedMechanisms(List<String> availableMechanisms) {
TransportConfiguration connectorConfig = connection.getConnectorConfig();
if(connectorConfig == null){
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the formatting in this method breaks checkstyle rules which needs to be fixed beyond fixing the bit about not putting the sasl bits into the netty transport options

@@ -115,6 +115,31 @@ public void testConnectsWithPlain() throws Exception {
}
}

@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Testing is insufficient as there are routes through the is applicable code that involved checking if user and passwords are set or not which should be tested.

@jbertram
Copy link
Contributor

jbertram commented Jun 5, 2025

@bstlukasiewicz, do you plan on addressing the issues that Tim identified?

@bstlukasiewicz
Copy link
Author

Yes, I'm working on those issuses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants