netflix-zuul

Spring zuul for authorization code grant type

允我心安 提交于 2019-12-08 06:11:08
问题 I have been trying to build a spring distributed application that works on JWT. Github repo - https://github.com/dhananjay12/spring-microservice-demo Service Description product-service : A simple downstream service having protected routes jwt-resoure-server : A jar that when included in downstream services make it a resourceserver that extract jwt token and set it in security contex. eureka-service : Discovery service zuul-server : Edge server Okta is my auth server I have set oauth grant

Spring Cloud Zuul Monitor/CircuitBreaker All Routes via Hystrix

[亡魂溺海] 提交于 2019-12-08 05:12:57
问题 I am using Spring Cloud and @EnableZuulProxy Is it possible to monitor all routes configured in application.yml using hystrix via /hystrix.stream? In the example below I would like to have a simple way to monitor all request made to the down stream product service. I understand that I can do this on the product service itself, but is it possible to monitor Zuul request. This would be useful for any down stream services that are not owned (third party) and cannot be annotated with the

Zuul not forwarding requests to other micro-services

无人久伴 提交于 2019-12-08 05:06:47
问题 I am using spring boot micro-services. I have configured eureka, zuul proxy and another microservice(account). If I am calling from account directly it is working fine. account and zuul server both showing on eureka. When I try to hit using zuul proxy it is getting status code 200OK but not getting any result Below is my configuration for zuul Zuul.yml server: port: 8076 eureka: client: registerWithEureka: true fetchRegistry: true serviceUrl: defaultZone: http://localhost:8078/eureka/

ZuulException (SendErrorFilter) at first call

安稳与你 提交于 2019-12-08 05:02:59
问题 I am building an application by Spring Cloud ,Spring Boot and Docker. Entire application is working fine. I have couple of micro-services. Each of the project is running on Docker. When I try to consume my micro-services through Zuul API Gateway I am getting an error for the 1st call. But if I refresh the browser it's working fine. The error is given below-- 2019-03-10 04:54:55.440 WARN [netflix- zuul-api-gateway- server,1855093598d4f99c,1855093598d4f99c true] 1 --- [nio-8765-exec-1] o.s.c.n

Spring Boot Zuul hateoas REST response has direct service links in resource

两盒软妹~` 提交于 2019-12-08 04:54:53
问题 I have Zuul + Eureka + Spring Boot Service Endpoint + Hateoas response configuration. When I access the service through Zuul Gateway, the resource links in the response are direct links to the service endpoints, shouldn't they be the Gateway links? What am i missing here? Gateway Endpoint : http://localhost:8762/catalog/products/10001 Direct Service Endpoint : http://localhost:8100/products/10001 application.properties for Zuul spring.application.name=zuul-server eureka.client.service-url

Spring Cloud Zuul Reverse Proxy doesnt fetch data from CouchDB when URL encoded

依然范特西╮ 提交于 2019-12-08 03:30:54
问题 (UPDTED) I created a Spring cloud Reverse proxy using spring-cloud-starter-zuul to forward all pouchDB-CouchDB requests through my proxy. and it forward all requests that are like http://10.16.33.221:8080/couchdb/** . Here is my application.properties file zuul.routes.couchdb.url=http://10.16.32.85:5984/ ribbon.eureka.enabled=false server.port=8080 10.16.32.85:5984 is CouchDB address. The problem occurred when pouchDB - CouchDB sync requests are forwarding. I found some URL-encoded Options

Uploading large files via Zuul

偶尔善良 提交于 2019-12-07 02:49:24
问题 I've faced a problem uploading big files through zuul. I'm using apache-commons file upload(https://commons.apache.org/proper/commons-fileupload/) to stream large files as well as I use zuul on the front. In my Spring Boot application I have disabled upload provided by Spring to use the one from apache commons: spring: http: multipart: enabled: false Controller looks like that: public ResponseEntity insertFile(@PathVariable Long profileId, HttpServletRequest request) throws Exception {

Zuul not forwarding requests to other micro-services

梦想与她 提交于 2019-12-06 15:35:44
I am using spring boot micro-services. I have configured eureka, zuul proxy and another microservice(account). If I am calling from account directly it is working fine. account and zuul server both showing on eureka. When I try to hit using zuul proxy it is getting status code 200OK but not getting any result Below is my configuration for zuul Zuul.yml server: port: 8076 eureka: client: registerWithEureka: true fetchRegistry: true serviceUrl: defaultZone: http://localhost:8078/eureka/ instance: hostname: localhost health-check-url-path: /actuator/health status-page-url-path: /actuator/info

Spring Zuul: Dynamically disable a route to a service

半城伤御伤魂 提交于 2019-12-06 12:05:47
问题 I'm trying to disable a Zuul route to a microservice registered with Eureka at runtime (I'm using spring boot). This is an example: localhost/hello localhost/world Those two are the registered microservices. I would like to disable the route to one of them at runtime without shutting it down. Is there a way to do this? Thank you, Nano 回答1: Alternatively to using Cloud Config, custom ZuulFilter can be used. Something like (partial implementation to show the concept): public class

Combining Netflix Zuul with Netflix Hystrix

被刻印的时光 ゝ 提交于 2019-12-06 06:44:51
问题 I'm a big fan of the Open Source project of Netflix. They made some really cool stuff. I have set up a Zuul and that is working fine. Created all kind of filters and those are dynamically loaded and run. What I now try to do is use Hystrix inside a filter. What I see is that if everything when fine it all works. But when there is a exception inside the run() method Zuul is catching it instead of Hystrix. So the getFallback() is never called. I shared my code Github. Somebody has any idea how