Commit Graph

99 Commits

Author SHA1 Message Date
Jaime Sanchez
3bc2267f32 Support token relay clientRegistrationId on properties
Signed-off-by: Jaime Sánchez <jaimesf@gmail.com>
2025-05-15 10:39:25 +02:00
spencergibb
beab6a8a3e Merge branch '4.2.x' 2025-03-28 15:20:44 -04:00
spencergibb
8f534ebfa7 polishing modifyresponsebody.adoc 2025-03-28 15:13:58 -04:00
spencergibb
afd4e0a9ff Merge branch '4.1.x' into 4.2.x 2025-03-28 15:08:04 -04:00
Spencer Gibb
55b3cd0c51 Fixes routing issue with path filters and static uri (#3747)
* Fixes routing issue with path filters and static uri

The problem arises from when MvcUtils.setRequestUrl is called depending on if the route was created via config, using `http(uri)` or having it set in a before filter.

To fix this, the uri is now always set in a before filter and the `http(uri)` methods are deprecated in favor of a BeforeFilterFunctions.uri() method.

A new DefaultHandlerSupplier was created to use an updated HandlerDiscoverer.Result that has fields for lowerPrecedenceFilters and higherPrecedenceFilters as the `http()` family of Handler methods need associated filters.

This results in a more consistent handling of the request url attribute.

Existing methods and constructors are deprecated.

Fixes gh-3736
2025-03-28 14:59:19 -04:00
Ryan Baxter
5456d6dda7 Merge branch '4.2.x' 2025-03-20 10:49:44 -04:00
Ryan Baxter
fe3ea71723 Merge branch '4.1.x' into 4.2.x 2025-03-20 10:10:39 -04:00
Ryan Baxter
c21ea8858c Merge pull request #3713 from JoeCqupt/main
RetryGatewayFilterFactory RetryConfig support Jitter & Timeout
2025-03-20 10:10:08 -04:00
spring-builds
0c1b54926d Bumping versions 2025-03-20 09:57:45 +00:00
spring-builds
0ee6a5d6da Going back to snapshots 2025-03-18 23:49:59 +00:00
spring-builds
263e813558 Update SNAPSHOT to 4.2.1 2025-03-18 23:46:46 +00:00
spring-builds
014a8511e4 Bumping versions 2025-03-18 18:52:12 +00:00
spencergibb
6ce73c6ec7 Changes property to spring.cloud.gateway.forwarded.by.enabled
Defaults to false.

See gh-2658
2025-03-17 16:59:19 -04:00
spencergibb
f6f90df404 For lb: scheme, put associated filters last.
This makes sure the lb filter runs after path modifying filters like stripPrefix.

See gh-3443
2025-03-17 16:17:07 -04:00
spencergibb
5cf94a4987 For lb: scheme, put associated filters last.
This makes sure the lb filter runs after path modifying filters like stripPrefix.

See gh-3443
2025-03-17 16:15:20 -04:00
spencergibb
c1c741d022 For lb: scheme, put associated filters last.
This makes sure the lb filter runs after path modifying filters like stripPrefix.

See gh-3443
2025-03-17 16:12:09 -04:00
Ryan Baxter
ec64b05ccc Merge branch '4.2.x' 2025-03-17 14:21:04 -04:00
Ryan Baxter
a830c8e6f9 Merge branch '4.1.x' into 4.2.x 2025-03-17 14:20:50 -04:00
spring-builds
5e4aff5786 Bumping versions 2025-03-16 09:55:41 +00:00
spring-builds
160c82057e Bumping versions 2025-03-15 13:26:33 +00:00
spring-builds
4e0cc2eb76 Bumping versions 2025-03-14 18:54:31 +00:00
Been24
0abe96239a Update developer-guide.adoc
Signed-off-by: Been24 <894661859@qq.com>
2025-03-14 09:33:21 +08:00
Ryan Baxter
9ac4b42daa Merge pull request #3627 from Ebolo1/Doc-spring-api-gateway-server-mvc
small grammatical issue
2025-03-13 14:32:08 -04:00
jiangyuan
9eb9165927 add docs and unit-test
Signed-off-by: jiangyuan <joe469391363@gmail.com>
2025-03-13 11:04:10 +08:00
Ryan Baxter
ff60af89be Merge pull request #3701 from Tripathiaman2511/main
Adding fix in java-based implementation of addRequestHeader for SCG server mvc
2025-03-12 17:20:03 -04:00
anil.senocak
b1aecf3dd5 importing RequestPredicate from reactive changed to servlet
Signed-off-by: anil.senocak <anil.senocak@turkcell.com.tr>
2025-03-12 08:45:00 +03:00
Aman Tripathi
0c60e9e389 Update addrequestheader.adoc
After reading the following documentation, I was getting error over before method - The method before(Function<ServerRequest,ServerRequest>) is undefined for the type RouterFunction.

Using this java-based configuration it solved the error.

Signed-off-by: Aman Tripathi <iamtripathi.25@gmail.com>
2025-02-23 23:44:07 +05:30
ehesmiley
4c8431e67d Merge branch 'main' of https://github.com/Ebolo1/spring-cloud-gateway into Doc-spring-api-gateway-server-mvc 2025-02-19 15:12:18 +01:00
spencergibb
ccde721be5 Merge branch '4.2.x' 2025-02-11 19:40:31 -05:00
spencergibb
1982315e6b Merge branch '4.1.x' into 4.2.x 2025-02-11 19:40:09 -05:00
spencergibb
159ce34abe Adds support for retry with request body.
Adds MvcUtils.getOrCacheBody() used by RetryFilterFunctions.retry().

Moves retry tests into RetryFilterFunctionTests.java

Fixes gh-3336
2025-02-11 19:39:39 -05:00
Spencer Gibb
037abaeb26 New module names (#3645)
* New naming convention using webflux and webmvc

The new suffixes are gateway-server-web{flux|mvc} and gateway-proxyexchange-web{flux|mvc}.

This commit updates the starters to use gateway-server-web{flux|mvc} suffixes.

* Adds new spring-cloud-gateway-server-web{flux|mvc} modules.

These simply depend on the old ones. A warning is logged if not using the new module.

* Adds s-c-g-proxyexchange-{webflux|webmvc} modules

* Updates docs for  s-c-g-{proxyexchange|server}-{webflux|webmvc} modules
2025-01-16 21:26:10 -05:00
Spencer Gibb
ab5e61d4d3 Adds support for a Bucket4jRateLimiter in server webflux (#2955)
* Adds support for a Bucket4jRateLimiter

* Makes bucket4j-core optional and caffeine integration test scoped

* Adds Bucket4jRateLimiter auto-configuration

* Updates bucket4j to 8.14.0

* Adds customizable header and adapts to async build

* Adds configuration for alternative RefillStyles

* Adds documentation and refillTokens property
2025-01-16 21:13:46 -05:00
ehesmiley
5dfbbc1ec9 small grammatical issue 2024-12-08 14:29:21 +01:00
spring-builds
cd15734bde Bumping versions 2024-11-20 18:00:28 +00:00
Pedro Andrez
fd3c6f5d3d Provides configuration for Netty's http client pool leasing strategy (#3575) 2024-11-19 11:41:02 -05:00
Khan / 이창민
95a8a5587b Fix: incorrect link in configuration-properties 2024-11-19 11:25:39 -05:00
Khan / 이창민
8f3ce76668 Fix: incorrect link in configuration-properties 2024-11-19 11:24:33 -05:00
spring-builds
7cdf7608f5 Bumping versions 2024-11-14 18:07:28 +00:00
sgibb
4ee9a072f6 Implements BodyFilterFunctions.modifyResponseBody
Fixes gh-3189
2024-11-05 14:03:03 -05:00
spring-builds
2aee1f5ccf Bumping versions 2024-10-15 18:01:11 +00:00
spring-builds
679bc2c232 Bumping versions 2024-10-15 13:28:14 +00:00
maoling
7cc9434f52 add alarm template for spring cloud gateway (#3019) 2024-09-27 12:30:41 -04:00
spencergibb
ae0d23a326 Merge branch '4.1.x' 2024-09-27 12:23:18 -04:00
Abimael Sergio
0ce2485471 Improve documentation, add reference of HttpClientCustomizer.
Fixes gh-2623
Fixes gh-3381
2024-09-27 12:22:49 -04:00
qnnn
181feb07be Add a note about retry filter behavior in documentation (#3534)
* Add a note about retry filter behavior in documentation.
2024-09-27 12:05:33 -04:00
spencergibb
84d7cf2afe Merge branch '4.1.x' 2024-09-25 13:18:21 -04:00
tungj
4aa7c08867 Fix example code to compile
Fixes gh-3427
2024-09-25 13:17:42 -04:00
buildmaster
bb2a30cdb1 Bumping versions 2024-08-24 17:56:39 +00:00
Joris Kuipers
b435ce3575 Prevent Content-Length and Host headers from being copied by default (#3313)
Also remove the bogus spring.cloud.gateway.proxy.auto-forward setting from the tests.
Fixes gh-3154
2024-07-03 11:32:23 -04:00