Reputation: 179
I am working on a spring boot project where i am using Hazelcast as Cache. I have enabled tcp as join method and i also mentioned some members. The members are able to join. But the problem is other nodes are also able to join apart from the members. can anyone tell me how i can restrict it?
This is my configuration,
@Bean
public Config hazelcastConfig() {
Config config = new Config()
.setClusterName("myCluster");
List<String> members = new ArrayList<>();
members.add("192.168.99.1:5523");
members.add("192.168.99.2:5542");
config.getNetworkConfig().getJoin()
.setMulticastConfig(new MulticastConfig().setEnabled(false))
.setTcpIpConfig(new TcpIpConfig().setEnabled(true).setMembers(members));
config.getNetworkConfig().setPort(5523);
return config;
}
Upvotes: 1
Views: 840
Reputation: 3164
The main approach in the Hazelcast IMDG (community edition) is to configure the different cluster names.
You can also look into Hazelcast Enterprise which has a set of security features (JAAS authentication, TLS, symmetric encryption, ...).
More details in these answers:
Upvotes: 1