Questions tagged [netflix-zuul]

1

votes
0

answer
7

Views

Is there a way to change http request method in netflix zuul routing filter?

I'm trying to trasform http GET method call from legacy api server built with MVC1 pattern to new restful api server without any change of front-end source code using netflix zuul and eureka. I added zuul pre filter transforming legacy url to restful convention url working after PreDecorationFilter...
user2080563
1

votes
2

answer
162

Views

ZuulException (SendErrorFilter) at first call

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 refre...
Nick
0

votes
0

answer
4

Views

Netflix-zuul can't route spring boot microservice api in docker

I'm getting 'There was an unexpected error (type=Internal Server Error, status=500) GENERAL' error when i deploy my zuul-gateway-service in docker container and test it. But in windows, when i run applications in eclipse, everything is working just fine, i can reach services via zuul gateway port an...
H. Girit
1

votes
0

answer
711

Views

How to add roles to Spring Boot security from a Zuul filter

I am developing a Spring Boot REST application that has a custom token authentication system. The token holds the roles for the user as claims. A Zuul proxy routes the traffic to multiple spring boot microservices and I would like to add a filter to the Zuul so that it extracts the roles from the to...
icordoba
1

votes
0

answer
95

Views

Linking up multiple Eureka networks through their own respective Zuul gateways

I have a group of microservices built using Spring Boot and each registered to a Eureka instance. I also have a Zuul gateway built which does authentication / authorization layer for external requests coming into my microservices. External consumers are not allowed to consume my microservices direct...
feicipet
1

votes
0

answer
280

Views

Is it possible for Netflix Ribbon to show log which server was chosen

I'm creating a microservices system and I have Zuul server where I use Ribbon which connects to Eureka(which returns me the available service instances) and perform load-balancing. Everything works great, however I would like to see in the logs which particular instance was chosen by Ribbon. I know...
user2455862
1

votes
0

answer
315

Views

java.lang.RuntimeException: Authorization token is missing

Please, can someone please help me. I am working on a micro-service application using jwt token. I have been able to make the first post request via postman to get the token, but I am having challenge to get the GET request. @RestController @RequestMapping('/users') public class UserController { @Au...
Kunle Ajiboye
1

votes
0

answer
159

Views

Server-side load balancing and Third-Party discovery with Zuul & Consul / Eureka

we are planning to built our next projects using microservices-architecture and we have already defined that we want to use Zuul as API-Gateway. Right now we have to decide which service registry we will use: Consul or Eureka. We want to use server-side load balancing (via Zuul itself). Is it possib...
RaouZ
1

votes
1

answer
445

Views

Streaming file download through Zuul

We are using Zuul as API Gateway. When calling the service directly, the download streams fine, however when calling through Zuul it seems to download the file to zuul first and then stream it from there. This becomes for large file downloads especially when running in GB's, file download starts onl...
Amit
1

votes
0

answer
278

Views

Spring multiple OAuth2 authorization servers with Eureka

I'm currently developing an application with a micro-service architecture back-end using Spring. We are using Zuul+Eureka for load balancing and service discovery and OAuth2 for authorization. Is it possible to route requests to the OAuth2 endpoints on the authorization server through zuul? We want...
J. Leander
1

votes
0

answer
408

Views

Error creating bean with name 'reservationApiGatewayRestController': Unsatisfied dependency expressed through field 'restTemplate' in spring boot

I'm trying to start my application. My REST controller: @RestController @RequestMapping('/reservations') public class ReservationApiGatewayRestController { @Autowired @Qualifier('restTemplate') private RestTemplate restTemplate = new RestTemplate(); @RequestMapping(method = RequestMethod.GET, value...
Mohit Darmwal
1

votes
0

answer
551

Views

Use Web-sockets with Zuul and Spring boot

I am trying to find out a solution in which i can open a web socket on UI and send it to zuul Gateway and same socket should route to micro service. i am using below dependency: org.springframework.cloud spring-cloud-starter-zuul Please let me know if anyone came across the same situation or have an...
Nir
1

votes
0

answer
43

Views

Netflix zuul listening on more than 1 port

I am currently using netflix zuul as a reverse proxy. Is it possible to have netflix zuul listen to more than 1 port and route calls to and from these ports?
Mfswiggs
1

votes
0

answer
63

Views

Zuul Connections not kept alive when using a Client Cert

To be able to support a client cert, I extended ProxyHttpConnectionManager extends DefaultApacheHttpClientConnectionManagerFactory and have overridden newConnectionManager if (disableSslValidation) { try { final SSLContext sslContext = SSLContexts.custom() .loadKeyMaterial((new File(keystore)), ke...
user9560765
1

votes
0

answer
505

Views

Zuul Read Timeout Exception

I have Zuul which is trying to connect to Student Service through Eureka. I have 8 Instances of Student Service registered with Eureka. Zuul is supposed to connect to any one of the Student Service and do load balancing. I am observing when I have less Student Service Instances Response Time is les...
AB90
1

votes
0

answer
60

Views

how to route different version of service registered in eureka

i have various service(all of them registered in eureka server with eureka.instance.metadataMap.versions=v1) runnig now I want to run newer versions of these service(registered with eureka with different version eureka.instance.metadataMap.versions=v2). now how do i route to these versions by giving...
RITESH GUPTA
1

votes
1

answer
30

Views

Saving a previous authentication in Spring

As an authentication, the application (Service-X) uses a third-party internal service (Service-Y), in which all the information about the employees is stored. All internal services of the company use SSO. How to implement the ability to log in to Service-X if Service-Y is unavailable? (If I have alr...
vlavik007
1

votes
1

answer
327

Views

How to ignore a route in zuul?

I have a spring application, in which I use zuul for routing. My routing configuration is like this: zuul: routes: core: path: /core/** url: http://localhost:3002 ui: path: /** url: http://localhost:3003 Now I defined a rest controller in my app, and it should serve the captcah service beside its ro...
Saeed
1

votes
1

answer
170

Views

Spring OAuth2Sso can still login user when authorization server has no access or refresh token

I'm trying to logout users using spring OAuth2. I have a server with the @EnableOAuth2Sso annotation and a different server with the @EnableAuthorizationServer annotation. The Sso server uses the authorization_code flow to sign the user in and has a logout endpoint, which in turn contacts the autho...
J. Leander
1

votes
0

answer
430

Views

Enabling zuul retry breaks Eureka routing on PCF

I'm trying to enable retry capability within a Zuul gateway, and am able to get things working locally, but when I deploy the gateway to PCF, I get the following error when zuul.retryable=true: { 'timestamp': 1524669167094, 'status': 500, 'error': 'Internal Server Error', 'exception': 'com.netflix.z...
jeffaudio
1

votes
1

answer
173

Views

Predefining own load balancing strategy with Zuul in Spring application

I'm trying to experiment with spring cloud stack, mainly with Eureka and Zuul from Netflix. After some time I managed to create Eureka Server along with two separate clients with some rest API which register themselves with that server and another one which I'm using as a server load-balancer to pro...
sh1nen
1

votes
1

answer
244

Views

How to check netflix zuul is redirecting request to appropriate service

Could you please help me with the code snippet which will help to determine whether netflix zuul is redirecting request to appropriate service. I am using spring boot & zuul 1.x. RequestContext.getCurrentContext().getRequest().getRequestURI().toString(); gives me the url which is initiated by browse...
Shekhar Patil
1

votes
1

answer
402

Views

Swagger ui adds an additional /path in the testing page when behind zuul

I have several microservices behind a spring boot application embedding zuul, let's call it 'gateway'. Here's my config file: zuul: prefix: /api routes: api-login: path: /login/** url: http://localhost:8070/the-login/ api-other: ... I want to show the documentation for every service of mine in my ga...
Phate
1

votes
1

answer
288

Views

Set multiple routes for same path in zuul

When I run application I need it to register in multiple Eureka servers. So I am placing a Zuul in front of Eureka and route to both urls at the same time. Is this possible(for me this did not work), if not can anyone suggest a workaround for this. I have tried separating urls with comma and it was...
1

votes
1

answer
317

Views

Connection refused can not use retry when use ribbon

info: spring-cloud.version=Dalston.SR5 spring-boot-starter-parent=1.5.7.RELEASE zuul-core=1.3.0 When one client's status is down(I mean kill it),but zuul can also have cache of instance info, so request will route to down client, but can't have a correct response.so zuul do retry, route request to a...
Hope Dc
1

votes
1

answer
272

Views

Should we use api gateway(such as zuul) between microservices?

There is no doubt that API gateway should be the edge server to outside world.We are wondering that should we use API gateway in the communications between the microservices?
sanigo
1

votes
1

answer
685

Views

spring cloud gateway, Is Request size limit filter is available

I am working in a project with spring-cloud-gateway. I see that the Request Size limitation filter is yet not available. But I need to develop it. Any idea , is it coming ? or should I start my own development. I Know that it is difficult to get any answer, as except the developers there are a few p...
Arpan Das
1

votes
0

answer
237

Views

Springboot Microservices slow responses

My project is developed in Springboot with eureka, zuul, ribbon and It deployed on GCP kubernetes cluster. If I try to rest calls through postman It works fine but take long time(1s-2s) to get the response. I have tried to do a load test for the server. Following shows the result of that load test....
sugeesh
1

votes
0

answer
156

Views

Eureka server not working properly, after while

I have faced some wired issue with Eureka discovery server. My project is developed in Springboot with eureka, zuul, ribbon and It deployed on GCP kubernetes cluster. In the begining it works fine. But after two or three days, some times it is unable to identify the client servers. If I try again an...
sugeesh
1

votes
3

answer
236

Views

Angular 5 - httpClient is not sending headers on request

I have my angular application that is sending http request to my zuul service, my problem is that when I try to send the authorization header, the zuul service is not receiving the header, this is the angular code: obtenerAvisos() { const token = localStorage.getItem('token'); const headers = new Ht...
Alan Gaytan
1

votes
1

answer
249

Views

How to add different different rate limit for Microservice on Jhipster-gateway

How to add different rate limit in Jhipster-gateway? Means for different api end point.
Ravi Rao
1

votes
1

answer
182

Views

zuul + okta +springboot - OKTA redirect uri issue 404

I have Zuul server running on port 8080, a service running on 8082 and I've configured the following in OKTA Login redirect URIs http://localhost:8080/api/service-A/port Logout redirect URIs Login initiated by App Only Initiate login URI http://localhost:8080/login that redirect uri works if I...
Joe
1

votes
0

answer
197

Views

Session management not working with Spring boot and Zuul proxy

I have zuul proxy connected to Spring boot services having sessions. Is Zuul a right fit for such a scenario? Right now on each request in same browser, linked services are creating new sessions on page refresh. I found few links to inject session id through a filter but did not work with Spring bo...
Raj Malhotra
1

votes
0

answer
127

Views

Spring zuul for authorization code grant type

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...
Dhananjay
1

votes
1

answer
176

Views

Handle different URL patterns in Zuul filters

I have two types of URL patterns as below. /gateway/secure/api/user/getUser /gateway/nonsecure/api/user/getUser (Context root of zuul gateway application is gateway) Using zuul filters I'm trying to implement two different logics based on secure and nonsecure URL patterns. I've written a pre-filter...
1

votes
1

answer
159

Views

Authorization Header is missing if request sent via Zuul API Gateway

When i send Authorization Header from rest client(postman), also from browser, to back end springboot(2.0.3v) AuthorizationService (without API Gateway), the 'Authorization' Header will be exists and every flow works fine. But when i send the same Header through API Gateway, The 'Authorization' Head...
vinayak kakkalameli
1

votes
0

answer
148

Views

Spring-boot Zuul: Passing user ID between microservices

I have a Zuul Gateway proxy, where I check the authorization of token received from the user. Now, when this is request is passed on to other microservices to get the user-specific data, the user information needs to be passed from the gateway to the microservice. Right now, I've added the user ID...
Ganesh Satpute
1

votes
1

answer
235

Views

Cross origin error with Docker containers

I'm building an application with Microservices locally and then on docker containers I currently have Eureka, Zuul with Spring Security, a Microservice using Spring boot 2, and an Angular 6 client I parametrized Spring Security on Zuul in order to manage security and CORS, extending 'WebSecurityConf...
veben
1

votes
0

answer
177

Views

How to prevent Zuul from sending errors (HTTP 504 or HTTP 0)

I'm building an application with components like Zuul, Microservices, a web client which calls API through Zuul, ... But Zuul always send a post.SendErrorFilter (HTTP 504) at the first call, not letting time Hibernate to work. 2018-09-18 13:53:38.551 WARN 147492 --- [nio-8762-exec-6] o.s.c.n.z.filt...
veben
1

votes
2

answer
343

Views

How to register non Spring Boot MicroService in Eureka discovery server

I have recently installed a micro service infrastraucture based on Spring Boot + Spring Cloud. My Spring Boot microservices register in my Eureka server and Zuul automaticaly redirects requests to them. I have a Drupal content manager that exposes content through REST interface and I'd like it to ta...
icordoba

View additional questions