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

HTTPS support for gossip #66

Open
andersflemmen opened this issue Oct 9, 2020 · 2 comments
Open

HTTPS support for gossip #66

andersflemmen opened this issue Oct 9, 2020 · 2 comments

Comments

@andersflemmen
Copy link

As far as I can see, it is not possible for the client to use HTTPS when getting gossip. Any chance that this will be supported?

URL url = new URL("http://" + gossipSeed.endpoint.getHostString() + ":" + gossipSeed.endpoint.getPort() + "/gossip?format=json");

@msemys
Copy link
Owner

msemys commented Oct 9, 2020

will add on the next release.

starting from esjc v2.3.0 you could workaround it by adding custom endpoint discoverer:

class CustomizedClusterEndpointDiscoverer implements EndpointDiscoverer {
  ...
  ...
}

EventStoreBuilder.newBuilder()
  .clusterNodeUsingGossipSeeds(cluster -> cluster
      .gossipSeedEndpoints(asList(new InetSocketAddress("localhost", 1001)))
      .maxDiscoverAttempts(-1))
  .endpointDiscovererFactory((settings, scheduler) -> new CustomizedClusterEndpointDiscoverer(settings.clusterNodeSettings, scheduler))
.build();

@andersflemmen
Copy link
Author

Thanks, appreciate it!

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

No branches or pull requests

2 participants