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

Hotrod endpoint doesn't support SASL #137

Open
ctron opened this issue Aug 13, 2019 · 6 comments
Open

Hotrod endpoint doesn't support SASL #137

ctron opened this issue Aug 13, 2019 · 6 comments

Comments

@ctron
Copy link

ctron commented Aug 13, 2019

Setting the username and password, and trying to log in with them using Hotrod, you get an error message that whatever SASL mech you define, it is not support. And the only supported SASL mechs are [].

I think this is due to the fact that the hotrod connector is not configured to use SASL: https://infinispan.org/docs/stable/server_guide/server_guide.html#security_hotrod_auth

@ryanemerson
Copy link
Collaborator

@ctron Hi! Thanks for reporting this issue. There are no plans to add support for this in Infinispan 9.4.x, however we're currently rewriting our image offering for Infinispan 10 which is scheduled for release in October. SASL will definitely be supported in our images from 10.x on.

@ctron
Copy link
Author

ctron commented Aug 14, 2019

So what would be the alternative, not using SASL?

@ryanemerson
Copy link
Collaborator

You could provide your own Infinispan configuration via S2I: https://github.com/jboss-dockerfiles/infinispan/tree/master/server#source-to-image-s2i

@ctron
Copy link
Author

ctron commented Aug 14, 2019

You could provide your own Infinispan configuration via S2I: https://github.com/jboss-dockerfiles/infinispan/tree/master/server#source-to-image-s2i

So are you saying that, using the default image, authentication is simply broken?

@ryanemerson
Copy link
Collaborator

@ctron In the default image, authentication is enabled by default for the rest endpoint but not the HotRod endpoint. As we're current on the .11 patch release, I think it's too late in the lifecycle to change the default behaviour so drastically as it will stop all existing hotrod users client configuration from working when they upgrade to the next image release.

Authentication will work with HotRod if you provide your own configuration file.

This can be achieved by adding the following element to the hotrod endpoint in the /opt/jboss/infinispan-server/standalone/configuration/clustered.xml:

   <authentication security-realm="ApplicationRealm">
      <sasl server-name="myhotrodserver" mechanisms="DIGEST-MD5" qop="auth" />
   </authentication>

Please see https://infinispan.org/docs/stable/server_guide/server_guide.html#security_hotrod_auth for more details.

@ctron
Copy link
Author

ctron commented Aug 16, 2019

I am aware of being able to bring in my own configuration. However that will also mean that, over time, I will need to sync this with newer versions manually vs being able to consume update automatically.

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

No branches or pull requests

2 participants