netflix-zuul

Basic Authentication service called By Zuul

末鹿安然 提交于 2019-12-01 07:24:18
问题 I'm Zuul as edge server. so all request pass by this edge server. I have a micro-service A. all web services of A are protected by Basic Authentication. How can we call the services of A b passing by Zuul proxy? Should I add header for messages? 回答1: Ideally the requester would have the token in the request. If you want to have Zuul add the authentication token then you can create a ZuulFilter and use: context.addZuulRequestHeader("Authorization", "base64encodedTokenHere"); Doing this would

Zuul unable to route traffic to service on kubernetes

二次信任 提交于 2019-12-01 06:51:28
We have Zuul and Eureka both up and running on our kubernetes cluster. Zuul is registered with Eureka. I start up a new service called "Resource-Service" this correctly boots up and registers with Eureka, all services are up. When I attempt to hit Zuul endpoint to access "Resource-service" I get the following error. Seems like Zuul can not map to Resource-service even though resource service is registered with eureka. So how does zuul know where to route requests for "Resource-service" if not through a registered service in eureka? Note: I have tried this with Docker-compose and was able to

Spring-Cloud Zuul breaks UTF-8 symbols in forwarded multipart request filename

拈花ヽ惹草 提交于 2019-12-01 06:42:16
this is first time for me on SO, so please be patient for my first question. I think i have some kind of configuration problem, but after a day of experiments i'm stuck. Our application is based on Spring-Cloud [Brixton release]. We have configuration like this: Portal (web application serving angular-based web-ui), which has zuul proxy with single route configured to our gateway service, like so: zuul: ignoredServices: '*' prefix: /api routes: api-proxy: path: /** serviceId: api-gateway which has another Zuul configured and relays requests to inner bussiness logic services: zuul:

Zuul unable to route traffic to service on kubernetes

梦想的初衷 提交于 2019-12-01 04:58:42
问题 We have Zuul and Eureka both up and running on our kubernetes cluster. Zuul is registered with Eureka. I start up a new service called "Resource-Service" this correctly boots up and registers with Eureka, all services are up. When I attempt to hit Zuul endpoint to access "Resource-service" I get the following error. Seems like Zuul can not map to Resource-service even though resource service is registered with eureka. So how does zuul know where to route requests for "Resource-service" if not

Spring-Cloud Zuul breaks UTF-8 symbols in forwarded multipart request filename

南楼画角 提交于 2019-12-01 04:11:07
问题 this is first time for me on SO, so please be patient for my first question. I think i have some kind of configuration problem, but after a day of experiments i'm stuck. Our application is based on Spring-Cloud [Brixton release]. We have configuration like this: Portal (web application serving angular-based web-ui), which has zuul proxy with single route configured to our gateway service, like so: zuul: ignoredServices: '*' prefix: /api routes: api-proxy: path: /** serviceId: api-gateway

Error when Zuul routing to a HTTPS url

橙三吉。 提交于 2019-11-30 23:31:02
I have a Spring Boot application (recently enabled it for HTTPS + self signed certificate) which is registered in Eureka and visible in the Eureka dashboard. We have a Zuul Filter layer which gets the user request and then passes it on to the Spring Boot application. This was working fine until the app was accessible via HTTP. But, once i enabled HTTPS, the zuul routing is failing. Here is the Zuul route configuration in my yaml file. Should my Zuul Route configuration have any special configuration for HTTPS enabled URL/App ? zuul: routes: ms: path: /app/** stripPrefix: true ms: ribbon:

Error when Zuul routing to a HTTPS url

梦想的初衷 提交于 2019-11-30 18:08:36
问题 I have a Spring Boot application (recently enabled it for HTTPS + self signed certificate) which is registered in Eureka and visible in the Eureka dashboard. We have a Zuul Filter layer which gets the user request and then passes it on to the Spring Boot application. This was working fine until the app was accessible via HTTP. But, once i enabled HTTPS, the zuul routing is failing. Here is the Zuul route configuration in my yaml file. Should my Zuul Route configuration have any special

Zuul/Ribbon/Hystrix not retrying on different instance

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 13:05:37
Background I'm using Spring cloud Brixton.RC2, with Zuul and Eureka. I have one gateway service with @EnableZuulProxy and a book-service with a status method. Via configuration I can emulate work on the status method by sleeping a defined amount of time. The Zuul route is simple zuul.routes.foos.path=/foos/** zuul.routes.foos.serviceId=reservation-service I run two instances of the book-service . When I set the sleeping time below the Hystrix timeout threshold (1000ms) I can see requests going to both instance of the book services. This works well. Problem I understand that if the Hystrix

Zuul and Ribbon integration

可紊 提交于 2019-11-30 12:01:06
I have trouble understanding the connection between Zuul and Ribbon. I think I got Zuul clear. It's a reverse proxy I can contact to reach one of my several instances of a service. It will pick the right server using a round-robin algorithm or whatever you configure it to do. It's a traditional load-balancer. To know the instances available it can use a registry like Eureka. But I've got more trouble with Ribbon. It's sold as a client-side load balancer but what does it mean ? It doesn't need an external server ? Ribbon is embedded in the client the same way an Eureka client is ? If so how

Why is ZUUL forcing a SEMAPHORE isolation to execute its Hystrix commands?

女生的网名这么多〃 提交于 2019-11-30 05:18:38
I noticed Spring-Cloud ZUUL forces the execution isolation to SEMAPHORE instead of the THREAD defaults (as recommended by Netflix). A comment in org.springframework.cloud.netflix.zuul.filters.route.RibbonCommand says: we want to default to semaphore-isolation since this wraps 2 others commands that are already thread isolated But still I don't get it :-( What are those two other commands? Configured this way, Zuul can only sched load but does not allow for timing out and let the client walk away. In short, even if the Hystrix timeout is set to 1000ms, clients will only be released once the