Violeta Georgieva
4c8a1d6051
Fix memory leak in NettyWriteResponseFilter.wrap ( #2019 )
...
NettyWriteResponseFilter.wrap never releases the original poolable
buffer in case of DefaultDataBufferFactory.
Related to https://github.com/reactor/reactor-netty/issues/1359
2020-11-02 12:05:54 -05:00
Olga Maciaszek-Sharma
652a44bc4d
Get overrideScheme from isSecure(). ( #2003 )
2020-10-27 12:20:50 +01:00
Marcin Grzejszczak
5ef66ac8f1
Fixed the build
2020-10-26 12:05:47 +01:00
Marcin Grzejszczak
d4a114c012
Updated autoconfiguration setup
2020-10-26 11:16:55 +01:00
spencergibb
f09d8b2c5d
Allows gateway metrics prefix to be customized.
...
Fixes gh-1981
2020-10-09 15:51:20 -04:00
spencergibb
7e77a9110a
Merge branch 'disable-builtin-filters-predicates' into 2.2.x
2020-09-25 20:49:38 -04:00
Bruno Silva
d8e53f1188
Allows filters and predicates to be disabled by a property.
...
This is achieved by three new annotations:
- @ConditionalOnEnabledFilter
- @ConditionalOnEnabledGlobalFilter
- @ConditionalOnEnabledPredicate
properties are :
- spring.cloud.gateway.filter.<name>.enabled
- spring.cloud.gateway.global-filter.<name>.enabled
- spring.cloud.gateway.predicate.<name>.enabled
Where name is the snake case version of the class name minus the suffix.
So, `RemoveCachedBodyFilter` has `<name>` of `remove-cached-body` and
`PathRoutePredicateFactor has a `<name>` of `path.
Fixes gh-72
2020-09-25 20:47:37 -04:00
spencergibb
5e0baf5480
Closes connection on retry.
...
see gh-1866
2020-09-25 15:26:22 -04:00
Idan Gadot
0056beff25
Fix broken link to filters unit tests
...
A note about GatewayFilter factories contained a broken link to unit tests.
fixes gh-1960
2020-09-25 14:22:46 -04:00
spencergibb
1cfe3f9636
fixes import order
2020-09-15 14:05:00 -04:00
spencergibb
e4fc804fc2
Gets ReactorServiceInstanceLoadBalancer from context factory.
...
Along with https://github.com/spring-cloud/spring-cloud-commons/issues/825 this should eliminate the use of `BeanFactoryUtils.beanNamesForTypeIncludingAncestors()` during loadbalancing.
Fixes gh-1941
2020-09-15 14:03:48 -04:00
spencergibb
fa0ffd0a2b
Adds BooleanOpSpec.not()
...
This allows to negate specific predicates rather than just the previous predicate.
Fixes gh-1932
2020-09-15 14:03:47 -04:00
Haytham Mohamed
f961b3625e
add actuator endpoint to expose RouteDefinitions ( #1942 )
...
Fixes gh-1911
2020-09-15 14:03:39 -04:00
spencergibb
3aa207463c
Continues migration from -core to -server
...
See gh-1807
2020-09-15 10:50:57 -04:00
spencergibb
d25673fe7d
formatting
2020-09-14 17:08:47 -04:00
spencergibb
d5c67218be
Adds null check
2020-09-14 17:08:27 -04:00
Joris Kuipers
00926981ca
Match headers in spring-cloud-gateway-mvc case-insensitively
...
Fixes gh-1930
2020-09-14 16:55:36 -04:00
spencergibb
52930d2458
Don't refresh routes on management context events.
...
Previously, the RouteRefreshListener reset the routes cache on all ContextRefreshedEvents. If actuator is run on a seperate port, to ContextRefreshedEvents are published. This adds a check to only reset the cache if the event does not come from the management context.
Fixes gh-1928
2020-09-14 16:52:28 -04:00
Spencer Gibb
676866cfcf
Migrates from spring-cloud-gateway-core to spring-cloud-gateway-server. ( #1807 )
...
spring-cloud-starter-gateway now depends on spring-cloud-gateway-server.
spring-cloud-gateway-core now depends on spring-cloud-gateway-server and prints a deprecation message if users are depending on spring-cloud-gateway-core directly.
2020-09-08 16:34:00 -04:00
buildmaster
24c4f7c4da
Bumping versions to 2.2.6.BUILD-SNAPSHOT after release
2020-08-28 20:14:17 +00:00
buildmaster
ae65677098
Going back to snapshots
2020-08-28 20:14:17 +00:00
buildmaster
8902e012f7
Update SNAPSHOT to 2.2.5.RELEASE
2020-08-28 20:12:13 +00:00
spencergibb
169530433e
Returns always true predicate if predicates are empty.
...
This handles a rare case where a user bypasses the many checks to ensure that the predicates aren't empty.
Fixes gh-1915
2020-08-28 11:29:25 -04:00
spencergibb
b3a69dbcb4
Avoids possible null value in Principal.getName()
...
Changes to get the Principal first via map, the return the name or empty if null.
Fixes gh-1854
2020-08-28 11:07:09 -04:00
spencergibb
147861bd32
Bumps s-c-build to 2.3.2.BUILD-SNAPSHOT
2020-08-03 13:26:24 -04:00
buildmaster
ea6d775445
Bumping versions to 2.2.5.BUILD-SNAPSHOT after release
2020-07-31 21:13:25 +00:00
buildmaster
8d01548b23
Going back to snapshots
2020-07-31 21:13:25 +00:00
buildmaster
5d0cf34231
Update SNAPSHOT to 2.2.4.RELEASE
2020-07-31 21:11:08 +00:00
spencergibb
73d934ee66
formatting
2020-07-28 14:14:36 -04:00
spencergibb
7705613b4a
Instanceof check to avoid class cast exception
...
See gh-1873
2020-07-28 14:14:23 -04:00
Artem Yakshin
e13db63e58
Fixes grafana dashboard panels datasource
...
fixes gh-1664
2020-07-28 13:37:37 -04:00
Mihhail Verhovtsov
8c1a3b6777
Document that is SCGW is built on top of WebFlux rather than MVC.
...
The statement on spring.io that "This project provides a library for building an API Gateway on top of Spring MVC." seems to be misleading. Despite there being a subproject that uses Spring MVC, the gateway part that is widely known (e.g. via Spring Cloud Starter Gateway) uses WebFlux.
Fixes gh-1841
2020-07-28 13:27:56 -04:00
Ruslan Akhundov
5467827905
Fixes memory leak when rewriting gzipped response body.
...
Fixes gh-1766
2020-07-28 13:22:49 -04:00
Lyth
001c74dcb6
Adds support for multiple headers with the same name.
...
Fixes gh-1775
Fixes gh-1776
2020-07-28 13:18:40 -04:00
Mete Alpaslan Katırcıoğlu
1f00f23e0d
Allows duplicate X-Forwarded-For headers.
...
Fixes gh-826
Fixes gh-1760
2020-07-28 13:18:40 -04:00
Nikita Konev
9ddfb8b703
fix double encoding websocket upgrade url ( #1731 )
2020-07-28 13:18:33 -04:00
spencergibb
93a87dc507
Fixes hop by hop filter property name.
...
Fixes gh-1709
2020-07-28 12:51:07 -04:00
Been24
04433c50d6
Update spring-cloud-gateway.adoc
...
')' expected
Fixes gh-1768
2020-07-28 12:51:07 -04:00
Ryan Baxter
5bd57916f0
Merge pull request #1836 from ryanjbaxter/circuitbreaker-status-code
...
Add the ability to trip the circuit breaker based on returned status code
2020-07-21 15:08:17 -04:00
Ryan Baxter
ef32cb7e9b
Filtering the status codes just once
2020-07-21 14:52:46 -04:00
Ryan Baxter
87e8892fe4
Add the ability to trip the circuit breaker based on returned status code.
2020-07-14 10:53:00 -04:00
Marcin Grzejszczak
d165617d92
Migrated to docs.spring.io & updated sc-build
2020-06-04 13:51:55 +02:00
buildmaster
2df5dde632
Bumping versions to 2.2.4.BUILD-SNAPSHOT after release
2020-05-28 18:17:06 +00:00
buildmaster
e8364edac6
Going back to snapshots
2020-05-28 18:17:06 +00:00
buildmaster
922eb8eedf
Update SNAPSHOT to 2.2.3.RELEASE
2020-05-28 18:15:16 +00:00
spencergibb
b5e2ec5944
Adds message to timeout for resilience4j circuite breaker timeout.
...
Fixes gh-1729
2020-05-21 13:57:42 -04:00
spencergibb
a3c0dec92e
formatting
2020-05-21 13:39:32 -04:00
fangfeikun
e0a78c81f1
Releases body after sending modified body to downstream fails.
...
Fixes gh-1520
2020-05-19 16:14:19 -04:00
Andrew Fitzgerald
16944d61d0
Adds a filter to replace the host header
...
fixes gh-530
fixes gh-1344
2020-05-19 16:12:51 -04:00
tooSun
eedcceee20
Fix spring.codec.max-in-memory-size configuration is invalid for ReadBodyPredicateFactory. Fixes # 1658 ( #1686 )
...
* Fix spring.codec.max-in-memory-size configuration is invalid for ReadBodyPredicateFactory.
Co-authored-by: huangluob <huangluob@newland.com.cn >
Fixes gh-1658
2020-05-19 16:06:36 -04:00