netflix-zuul

Zuul and Consul integration issue

只谈情不闲聊 提交于 2019-12-22 01:29:55
问题 I have problem setting up Spring Cloud application with Zuul and Consul service discovery. I have Consul server agent installed and running locally: ./src/main/bash/local_run_consul.sh When I run Spring Boot application with @EnableZuulProxy annotation I get the following error: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.netflix.zuul.filters.RouteLocator]: Factory method 'routeLocator' threw exception; nested exception is

Spring plan for Zuul 2

二次信任 提交于 2019-12-21 05:41:12
问题 I've heard that Zuul 2 is released. Are there any plan of updating Spring for it? I can't wait. I applied Spring cloud to build a microservice system and think they are awesome. So, Zuul 2 makes me feel excited. 回答1: As far as I can tell Zuul 2 has not been released. We are in the process of releasing Zuul 2 as open source. Once it is released... That being said, given enough lead time, we plan on integrating zuul 2 in the beginning of 2017. 回答2: There's now spring-cloud-gateway . Which is

Spring plan for Zuul 2

亡梦爱人 提交于 2019-12-21 05:41:02
问题 I've heard that Zuul 2 is released. Are there any plan of updating Spring for it? I can't wait. I applied Spring cloud to build a microservice system and think they are awesome. So, Zuul 2 makes me feel excited. 回答1: As far as I can tell Zuul 2 has not been released. We are in the process of releasing Zuul 2 as open source. Once it is released... That being said, given enough lead time, we plan on integrating zuul 2 in the beginning of 2017. 回答2: There's now spring-cloud-gateway . Which is

Simple Reverse Proxy with Spring Boot and Netflix Zuul

巧了我就是萌 提交于 2019-12-21 05:37:09
问题 I'm looking to implement a simple reverse proxy with Spring Boot that is: Easy to add routes Ability to add custom authentication on a per route basis Add additional headers as needed I've looked at the facilities provided by the @EnableZuulProxy annotation but it seems too heavyweight as I don't have a desire to use Eureka, Ribbon, or Hystrix. However, @EnableZuulServer is a bit light on configuration. Would anyone be able to provide an example of what I'm after? Is Netflix Zuul the right

Microservice to Microservice calls, authorization from a queue message

烈酒焚心 提交于 2019-12-20 19:05:57
问题 Context: I'm creating a cloud platform to support multiple applications with SSO. I'm using Keycloak for authentication and Netflix Zuul for authorization (API Gateway) thru Keycloak Spring Security Adapter . Each microservice expect an Authorization header, which contains a valid JWT, from which it will take the username (sub) to process the request. Each microservice-to-microservice call should go thru Netflix Zuul first, passing the Authorization header to maintain a stateless validation.

Zuul reverse proxy with Keycloak server

家住魔仙堡 提交于 2019-12-20 14:42:45
问题 I'm configuring a Spring Cloud (Angel.SR6) application using the Zuul reverse proxy utility, in order to hide the internal service ports. My zuul (edge) service is published in the 8765 port and my organizations service is in the 8083 one. Everything goes smoothly when I access the application with no security, http://localhost:8765/organization/organizations returns the JSON with all the organizations. However, now I want to integrate a Keycloak SSO (OAuth2) server for authorization purposes

Zuul reverse proxy with Keycloak server

元气小坏坏 提交于 2019-12-20 14:38:03
问题 I'm configuring a Spring Cloud (Angel.SR6) application using the Zuul reverse proxy utility, in order to hide the internal service ports. My zuul (edge) service is published in the 8765 port and my organizations service is in the 8083 one. Everything goes smoothly when I access the application with no security, http://localhost:8765/organization/organizations returns the JSON with all the organizations. However, now I want to integrate a Keycloak SSO (OAuth2) server for authorization purposes

Zuul - Api Gateway Authentication

守給你的承諾、 提交于 2019-12-20 08:37:57
问题 I want to introduce Zuul through Spring Cloud as an API Gateway in front of a few services. I have some design doubts around Authentication. The Authentication would be handled by Spring Security, which comes before Zuul in the servlet filter chain. My concern: the Gateway would sit in front of many services some services may expose endpoints which do not require authentication some services may expose endpoints which need a Session Id and some with a token", an arbitrary opaque value (for

Overriding Zuul Filter SendErrorFilter

主宰稳场 提交于 2019-12-19 11:16:38
问题 The class org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter handles error responses. I would like to override this filter to do a custom response instead of the ZuulException while forwarding etc. How can I replace this with my own version? Just write and register? Would that do it or is there something else needed? 回答1: all you need to do is create a ZuulFilter and expose it as an @Bean . It needs to be in order before SendErrorFilter which is set to 0 . You might need to

Refresh of Zuul configuration when using Spring Config Service

a 夏天 提交于 2019-12-19 10:49:27
问题 We have a Zuul proxy (wraped with Spring Cloud/Boot) deployed that fetches configuration from the Spring Config Server. Every time I do changes in the routes I restart Zuul application and I wonder if there is a better approach that can be taken (like refresh of Zuul config information)? :) Thank you, 回答1: You can issue a refresh command via rest: curl -X POST http://<host>:<port>/refresh I wrote a simple bash script that commits all my changes to the config file in the Git repository and