spring-cloud-gateway
spring-cloud-gateway copied to clipboard
An API Gateway built on Spring Framework and Spring Boot providing routing and more.
- Use BiPredicate for return type check in doDiscover. - Replace hardcoded scheme checks with Set in isSecure.
This PR refactors the logic for adding headers in the `appendXForwarded` and `appendForwarded` methods. Additionally upon reviewing both the original and refactored code, I noticed that in `appendXForwarded`, the result...
I would like to set header 'Retry-After' in the response header when the request is refused by Redis rate limiter. I tried to implement own filter to add 'Retry-After' header....
**Describe the bug** Hello, I'm experiencing an issue with Spring Cloud Gateway where the `http_client_requests_active_seconds_count` metric does not decrease when an inbound HTTP request is cancelled by the client. This...
**Description** Recently, I upgrade my SpringCloudGateway service from v4.1.5 to v4.2.0. Also upgraded SpringBoot from v3.3.5 to v3.4.2. Whenever I do deployment my service generates warning ``` {"timestamp":"2025-02-08T10:37:22.014Z","source":"io.netty.util.concurrent.AbstractEventExecutor","thread":"reactor-http-epoll24", "level":"WARN", "stack_trace":"java.lang.IllegalStateException:...
**Is your feature request related to a problem? Please describe.** The current RetryGatewayFilterFactory does not use any randomness to the jitter factor in the backoff calculation (its a constant value)....
**Is your feature request related to a problem? Please describe.** No. Feature is not related to a problem **Describe the solution you'd like** In the same vain as _spring.cloud.gateway.requests_ it...
Spring Boot 3 requires more _auto-configuration imports_ files for test (slice) auto-configuration. Issue [2729](https://github.com/spring-cloud/spring-cloud-gateway/issues/2729) was incomplete. Currently [spring-cloud-gateway-mvc](https://github.com/spring-cloud/spring-cloud-gateway/blob/v4.2.0/spring-cloud-gateway-mvc/src/main/resources/META-INF/spring.factories) and [spring-cloud-gateway-webflux](https://github.com/spring-cloud/spring-cloud-gateway/blob/v4.2.0/spring-cloud-gateway-webflux/src/main/resources/META-INF/spring.factories) still use the legacy auto-configuration which is not supported anymore....
### Feature Request: TLS/SSL Configuration for Spring Cloud MVC Gateway **Description:** Currently, Spring Cloud Reactor Gateway provides properties to configure TLS and SSL settings for the HTTP client. However, Spring...
**Describe the bug** Upgrade `spring-cloud-starter-gateway-mvc` from `4.1.2` to `4.2.0`, an `InvalidMediaTypeException` occurred in the _gateway_ application. For details, we have a Web UI which sends Ajax request with `mimeType =...