REST client and Hazelcast group name/password

303 views
Skip to first unread message

anat...@gmail.com

unread,
Jun 6, 2016, 1:03:42 PM6/6/16
to Hazelcast
When connecting via native Java client 3.6.x, it needs to have a name/password pair that matches one listed on the cluster side.

<group>
      <name>dev</name>
       <password>dev-pass</password>
</group>

If there is no match, the client will fail with "com.hazelcast.client.AuthenticationException: Invalid credentials!".

When connecting via REST client it seems to work fine without any credentials at all.

I do not see any examples in the Hazelcast REST documentation making use of these credentials. I was expecting something like "curl -u dev:dev-pass ..."

Does this "authentication" feature exist for REST client? Is there any security associated with REST client?

Thank you for your response.

Noctarius

unread,
Jun 6, 2016, 1:05:56 PM6/6/16
to Christoph Engelbert - Hazelcast
Hey,

No there is no security feature in the REST API. That’s the main reason why it is disabled by default and why we don’t recommend to use it. Imagine the REST API as a last resort option if there’s no native client for your programming language.

Chris

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/7e0297e4-e5fb-41ec-8387-09f61af0bf33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages