Questions tagged [spring-cloud-gateway]
Spring Cloud Gateway is an API Gateway library on top of the Spring reactive ecosystem. Use this tag when encountering issues with Spring Cloud Gateway components.
spring-cloud-gateway
1,284
questions
0
votes
3
answers
180
views
How to secure microservice websocket endpoint with Spring Cloud Gateway?
I have a microservice architecture based project, for which I have added Spring Cloud Gateway in front. My plan is to centralize security in the gateway. I have added OIDC and OAuth 2 for ...
0
votes
1
answer
49
views
How to use Spring Cloud API Gateway (MVC) to create filter that dynamically obtains a value with addRequestParameter?
In Spring Cloud API Gateway (MVC), I am trying to filer a GET request that dynamically creates a request param (query string)?
Original request path to API Gateway with path param:
v1/sample-resource/...
0
votes
0
answers
85
views
Spring Cloud Gateway + Spring Security + Spring Boot 3
We're migrating all our microservices to Spring Boot 3.
Zuul to be migrated to Spring Boot3. Hence Spring-cloud will be the new API Gateway.
Zuul was acting like a resource server(used JWTs + OAuth2) ...
0
votes
0
answers
38
views
Spring cloud gateway : Returns 200 to an api call but no response in body
When I hit URL through postman, [localhost:8090/api/v1] I get 200 but no response in body and when I check the logs of the service which was hit through gateway it shows nothing, which means it didn't ...
0
votes
0
answers
35
views
Spring Gateway routes not applied to multiple SecurityWebFilterChains
---> .csrf((c) -> {c.disable();}) for the /api/** security filter chain caused the following to happen for an unknown reason:
The issue is not having the gateway route filters and resources ...
0
votes
0
answers
19
views
How to access same request in prefilter and postfilter in Spring Cloud Gateway?
We're moving from zuul to Spring Cloud Gateway. Storing all the request and response details in a table using pre-filter and post-filter implementation.
Following is the implementation in zuul
...
0
votes
0
answers
37
views
spring cloud webflux with http2
I have a spring cloud webflux application, I want my application to work on the http2 protocol.
I create a certificate and keys through Keystore explorer, add them to the configuration of my gateway ...
0
votes
0
answers
32
views
Problems with the authentication route using spring cloud gateway with oauth
I'm having problems with the authentication route using spring cloud gateway with oauth.I have 3 simple authentication services, which have a gateway, an oauth configuration service and the user. When ...
0
votes
1
answer
104
views
Http Connection Management In Spring Cloud Gateway / Reactor Netty
We use Spring Cloud Gateway (Spring Boot 2.0) to route(POST) request to different external customer REST endpoint (along with filters).
Most of the time routing is ok in production, only certain times ...
1
vote
1
answer
56
views
Getting IllegalStateException and ClassNotFoundException: jakarta.servlet.Filter While Using Keycloak Service with Spring Cloud Gateway
I am currently working on routing api which uses Spring Cloud Gateway library. I also want to use Keycloak for authentication purposes, but I failed to implement a proper Keycloak configuration for my ...
0
votes
0
answers
62
views
What is the difference between K8 resources springCloudGateway and gateway api?
VMware provided springCloudGateway kind resources to kubernates. Which can be defined as kind in yml config file for dynamic routing with many features.
Kubernates introduce gateway api as rules, ...
0
votes
0
answers
31
views
PrematureCloseException in netty http client
We are using Spring Cloud Gateway (spring boot 2.7.X, JDK 11) to route request. To fetch/pass OAuth2.0 token before routing, filter is added to fetch it from OAuth2.0 provider, to make secure call to ...
0
votes
1
answer
31
views
Spring gateway dependency causing clientRegistrationRepository cannot be null
The issue is coming because of spring gateway starter mvc, i am using webflux because gateway needs webflux and i am using okta for oauth2.0 implementation.
I created the same project demo with same ...
1
vote
1
answer
41
views
Is there a method in Spring Boot to access the data of a received OAuth2-token?
Currently I am building a Spring Cloud Gateway-application, which should act as an API-gateway between an Angular Frontend and some downstream-services.
So far, the frontend logs into the gateway, ...
0
votes
0
answers
36
views
Spring Cloud Gateway on AWS
Somehow, I'm having trouble getting Spring Cloud Gateway to work on AWS. It works fine locally, but after deployment to AWS, it doesn't. I think I need another pair of eyes on this.
I have a simple ...