Commit Graph

114 Commits

Author SHA1 Message Date
Ryan Baxter
c9df3036fd Merge branch 'main' into pr/3761 2025-05-22 17:14:49 -04:00
spencergibb
6690c79a2d Migrate server-webmvc properties to new namespace
See gh-3647
2025-05-22 16:22:29 -04:00
Stepan Mikhailiuk
cf8c1eb66a Merge branch 'spring-cloud:main' into setrequesturi 2025-05-22 12:27:12 +08:00
spring-builds
b83915cff2 Bumping versions 2025-05-11 18:54:33 +00:00
Spencer Gibb
eca63cba65 Migrates server-webflux properties to new namespace (#3793)
Currently, prefix is spring.cloud.gateway and this is ambiguous now that server-webmvc exists.

spring.cloud.gateway.server.webflux is the new prefix

Fixes gh-3363
2025-05-09 15:40:33 -04:00
spring-builds
789b661c0b Bumping versions 2025-05-06 18:53:21 +00:00
Ryan Baxter
fe27edfbbb Escape brackets in docs
Signed-off-by: Ryan Baxter <ryan.baxter@broadcom.com>
2025-04-24 10:15:26 -04:00
Ryan Baxter
c4d66a9fd2 Merge branch '4.2.x' 2025-04-22 11:47:17 -04:00
郭付一男
bd8c3cc736 docs: explain spring.webflux.base-path influence on Path Route Predicate
Signed-off-by: 郭付一男 <guofuyinan@gmail.com>
2025-04-22 22:34:49 +08:00
Ryan Baxter
00a6001af8 Merge pull request #3731 from BEF841CA/patch-1
Fix punctuation error in secureheaders-factory.adoc
2025-04-22 10:12:24 -04:00
Spencer Gibb
ac5e8f7cec Allow bean registration of server-webmcv components (#3763)
* Allow bean registration of server-webmcv components

This replaces the spring.factories mechanism.

* Adds support for loading FilterSuppliers via beans

* Adds support for loading PredicateSuppliers via beans

* Use beanFactory conversionService

Fixes gh-3250
2025-04-21 15:28:18 -04:00
Stepan Mikhailiuk
c6ed845557 feat(gateway-filter): add SetRequestUri gateway filter
Signed-off-by: Stepan Mikhailiuk <istepancar@gmail.com>
2025-04-13 22:11:33 +08:00
spring-builds
b883487f72 Bumping versions 2025-04-08 18:55:11 +00:00
Jörg Richter
7bc8f7225f Merge branch 'spring-cloud:main' into #2975-Suggestion-Add-Permissions-Policy-as-configurable-option-to-SecureHeaders-GatewayFilter 2025-04-07 22:22:36 +02:00
Jörg Richter
85ab7d9019 #2975-Suggestion-Add-Permissions-Policy-as-configurable-option-to-SecureHeaders-GatewayFilter
- added Permissions-Policy header as an opt-in header & default value
- updated documentation with Permissions-Policy and resources
- updated tests to include Permissions-Policy
- SecurityHeaders and Permissions-Policy may be configured globally / per route
- updated structure of public methods and class members to match previous version structure

Fixes gh-2975

Signed-off-by: Jörg Richter <96986086+joerg-richter-5234@users.noreply.github.com>
2025-04-07 22:19:10 +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
BEF841CA
73662ea35d Fix punctuation error in secureheaders-factory.adoc
Signed-off-by: BEF841CA <83743162+BEF841CA@users.noreply.github.com>
2025-03-20 17:10:03 +08: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