These are chat archives for spring-cloud/spring-cloud

5th
Jul 2017
Roi Ezra
@ezraroi
Jul 05 2017 07:15
Hi, is there a way to do zone aware loading balancing with Consul. Looks like only Eureka is currently supporting this
Dave Syer
@dsyer
Jul 05 2017 07:22
Consul is a consensus based system
Does it even make sense to do that across physical zones
Roi Ezra
@ezraroi
Jul 05 2017 08:35
we use it as our service discovery system and we have data center for each availability zone.
consul has built in support for different data centers especially for such use cases
Dave Syer
@dsyer
Jul 05 2017 08:51
I guess maybe it has built in support for service discovery in such settings then?
Sorry, I'm not really a consul user. Maybe when they wake up you can get more help from the US.
Roi Ezra
@ezraroi
Jul 05 2017 08:52
sure, thanks.. after checking the code of the ConsulServerList.. looks like a small change there will fix this
it is asking consul for all healthy instances.. and consul answers services in the current dc, looks like the consul server list should iterate over all data centers... this should work as it is being used by the ZoneAwareLoadBalancer
borgato tommaso
@tommasoborgato_twitter
Jul 05 2017 11:37
Hi All... I am looking for some documentation on how to secure a swarm of microservices accessed through a gateway service.... after user login, I need user infontonbe available to all microserices behind the gatway with something like a JWT tocken ... any suggestion where to start reading?
Dieter Hubau
@Turbots
Jul 05 2017 11:57
hey @tommasoborgato_twitter I found this one to be very clear: http://blog.monkey.codes/how-to-use-jwt-and-oauth-with-spring-boot/
this has examples containing a zuul proxy with an OAuth2 authorization server + some API application
its heavily based on this earlier blogpost, which explains it a bit more in text: http://stytex.de/blog/2016/02/01/spring-cloud-security-with-oauth2/
Grzegorz Poznachowski
@poznachowski
Jul 05 2017 13:42
Hi, is there a way to get url attribute from @FeignClient instance? What's more is there a way to change that url attribute programatically ? What I want to achieve is to be able to substitute that value for testing with Wiremock.
borgato tommaso
@tommasoborgato_twitter
Jul 05 2017 17:45
Thank you