Commit Graph

782 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
50bf1d72a0 Bumping versions to 4.2.2-SNAPSHOT after release 2025-03-18 23:50:00 +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
053f2566fe Merge branch '4.1.x' into 4.2.x 2025-03-12 20:01:42 -04: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
Ryan Baxter
7e794c8c6b Merge pull request #3709 from senocak/request-predicate-import-fix
importing RequestPredicate from reactive changed to servlet
2025-03-12 17:19:32 -04:00
Ryan Baxter
4539d32d20 README fixes 2025-03-12 15:47:50 -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
dependabot[bot]
43f6fde6db Bump @springio/asciidoctor-extensions in /docs
Bumps [@springio/asciidoctor-extensions](https://github.com/spring-io/asciidoctor-extensions) from 1.0.0-alpha.14 to 1.0.0-alpha.16.
- [Changelog](https://github.com/spring-io/asciidoctor-extensions/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/spring-io/asciidoctor-extensions/compare/v1.0.0-alpha.14...v1.0.0-alpha.16)

---
updated-dependencies:
- dependency-name: "@springio/asciidoctor-extensions"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-11 19:00:38 +00:00
dependabot[bot]
952d418a23 Bump @springio/asciidoctor-extensions in /docs
Bumps [@springio/asciidoctor-extensions](https://github.com/spring-io/asciidoctor-extensions) from 1.0.0-alpha.14 to 1.0.0-alpha.16.
- [Changelog](https://github.com/spring-io/asciidoctor-extensions/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/spring-io/asciidoctor-extensions/compare/v1.0.0-alpha.14...v1.0.0-alpha.16)

---
updated-dependencies:
- dependency-name: "@springio/asciidoctor-extensions"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-11 18:55:54 +00:00
dependabot[bot]
ec7e5f1934 Bump @springio/antora-extensions from 1.14.2 to 1.14.4 in /docs
Bumps [@springio/antora-extensions](https://github.com/spring-io/antora-extensions) from 1.14.2 to 1.14.4.
- [Changelog](https://github.com/spring-io/antora-extensions/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/spring-io/antora-extensions/compare/v1.14.2...v1.14.4)

---
updated-dependencies:
- dependency-name: "@springio/antora-extensions"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 18:10:14 +00:00
dependabot[bot]
537c21ca3b Bump @springio/antora-extensions from 1.14.2 to 1.14.4 in /docs
Bumps [@springio/antora-extensions](https://github.com/spring-io/antora-extensions) from 1.14.2 to 1.14.4.
- [Changelog](https://github.com/spring-io/antora-extensions/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/spring-io/antora-extensions/compare/v1.14.2...v1.14.4)

---
updated-dependencies:
- dependency-name: "@springio/antora-extensions"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 18:00:21 +00: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
spring-builds
7f638fbcae Going back to snapshots 2025-01-30 11:59:00 +00:00
spring-builds
cf958b361b Update SNAPSHOT to 4.3.0-M1 2025-01-30 11:56:23 +00:00
spencergibb
018560f888 Merge branch '4.1.x' into 4.2.x 2025-01-22 16:24:47 -05:00
spencergibb
36ad5d518a Merge branch '4.1.x' 2025-01-22 12:22:09 -05:00
dependabot[bot]
c12287390b Bump @springio/antora-extensions from 1.11.1 to 1.14.2 in /docs (#3623)
Bumps [@springio/antora-extensions](https://github.com/spring-io/antora-extensions) from 1.11.1 to 1.14.2.
- [Changelog](https://github.com/spring-io/antora-extensions/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/spring-io/antora-extensions/compare/v1.11.1...v1.14.2)

---
updated-dependencies:
- dependency-name: "@springio/antora-extensions"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Spencer Gibb <sgibb@pivotal.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Spencer Gibb <sgibb@pivotal.io>
2025-01-22 12:20:27 -05:00
dependabot[bot]
cdf3e5b2ba Bump @springio/asciidoctor-extensions in /docs (#3614)
Bumps [@springio/asciidoctor-extensions](https://github.com/spring-io/asciidoctor-extensions) from 1.0.0-alpha.10 to 1.0.0-alpha.14.
- [Changelog](https://github.com/spring-io/asciidoctor-extensions/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/spring-io/asciidoctor-extensions/compare/v1.0.0-alpha.10...v1.0.0-alpha.14)

---
updated-dependencies:
- dependency-name: "@springio/asciidoctor-extensions"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-22 12:18:36 -05:00
dependabot[bot]
c8da48150f Bump @springio/asciidoctor-extensions in /docs (#3622)
Bumps [@springio/asciidoctor-extensions](https://github.com/spring-io/asciidoctor-extensions) from 1.0.0-alpha.10 to 1.0.0-alpha.14.
- [Changelog](https://github.com/spring-io/asciidoctor-extensions/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/spring-io/asciidoctor-extensions/compare/v1.0.0-alpha.10...v1.0.0-alpha.14)

---
updated-dependencies:
- dependency-name: "@springio/asciidoctor-extensions"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-22 12:16:57 -05:00
dependabot[bot]
f0c204bab7 Bump @antora/collector-extension from 1.0.0-alpha.3 to 1.0.1 in /docs (#3619)
---
updated-dependencies:
- dependency-name: "@antora/collector-extension"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-22 12:16:10 -05:00
dependabot[bot]
5abf0238e2 Bump antora from 3.2.0-alpha.4 to 3.2.0-alpha.8 in /docs (#3628)
Bumps [antora](https://gitlab.com/antora/antora) from 3.2.0-alpha.4 to 3.2.0-alpha.8.
- [Changelog](https://gitlab.com/antora/antora/blob/main/CHANGELOG.adoc)
- [Commits](https://gitlab.com/antora/antora/compare/v3.2.0-alpha.4...v3.2.0-alpha.8)

---
updated-dependencies:
- dependency-name: antora
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-22 12:12:07 -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