570 Commits

Author SHA1 Message Date
buildmaster
afff26a4cf Bumping versions to 4.0.10-SNAPSHOT after release 2024-01-26 14:03:01 +00:00
buildmaster
e6a5f3e4f1 Going back to snapshots 2024-01-26 14:03:01 +00:00
buildmaster
1e28cd2de6 Update SNAPSHOT to 4.0.9 2024-01-26 13:59:55 +00:00
Ryan Baxter
74717fd5b1 Support segments with Java config.
Fixes #3204
2024-01-11 13:42:59 -05:00
sgibb
6630eb87c3 formatting 2023-12-05 19:08:18 -05:00
ashraf
a5da11269f fix host predicate use host of InetSocketAddress insted of headers
Fixes gh-3037
2023-12-05 19:06:41 -05:00
Muchnik Andrey
82639855b6 Support nullable flag value in ShortcutConfigurable.ShortcutType#GATHER_LIST_TAIL_FLAG
Fixes gh-3049
2023-12-05 18:58:16 -05:00
buildmaster
b3acabfecf Bumping versions 2023-12-05 23:20:00 +00:00
Ryan Baxter
b3abd5228d Merge pull request #3163 from fombico/mmedio/4.0.x-actuator_gateway_endpoint
(4.0.x) Enhance "/actuator/gateway" endpoint
2023-12-05 16:30:43 -05:00
Fredrich Ombico
7249dcc677 Deprecate constructor and create a new one with injected WebEndpointProperties
- the classes extending this class, `GatewayControllerEndpoint` and `GatewayLegacyControllerEndpoint`, use the new constructor that handles the base path being overridden
- any other classes using the deprecated constructor would use the fixed base path `/actuator`
2023-12-05 15:52:22 -05:00
Fredrich Ombico
84c351a864 Refactor to use the actuator path set in properties
- Also cleaned up code and warnings
2023-12-05 13:51:22 -05:00
Fredrich Ombico
8157363258 Test additional endpoints 2023-12-05 13:51:22 -05:00
Marta Medio
63fc79c5b6 Add links to child paths for /actuator/gateway endpoint 2023-11-23 13:14:21 +01:00
Fredrich Ombico
811962d37a Support query parameters in RedirectTo filter
Adds an optional boolean parameter to the RedirectTo filter to indicate whether the request query parameters should be included on the `url`. The parameter is treated as false when not set to preserve backwards compatibility.
2023-11-07 16:44:57 -05:00
buildmaster
cba61f7b94 Bumping versions 2023-11-04 23:18:10 +00:00
buildmaster
aed52c2a0d Bumping versions to 4.0.9-SNAPSHOT after release 2023-11-03 19:56:48 +00:00
buildmaster
e023410fde Going back to snapshots 2023-11-03 19:56:47 +00:00
buildmaster
37c0810887 Update SNAPSHOT to 4.0.8 2023-11-03 19:49:27 +00:00
dependabot[bot]
8a7a00c37b Bump org.apache.maven.plugins:maven-jar-plugin from 3.2.0 to 3.2.2 (#3069)
Bumps [org.apache.maven.plugins:maven-jar-plugin](https://github.com/apache/maven-jar-plugin) from 3.2.0 to 3.2.2.
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.2.0...maven-jar-plugin-3.2.2)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-jar-plugin
  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>
2023-11-03 11:35:13 -04:00
dependabot[bot]
bdba26009c Bump grpc.version from 1.47.0 to 1.47.1 (#3066)
Bumps `grpc.version` from 1.47.0 to 1.47.1.

Updates `io.grpc:grpc-netty` from 1.47.0 to 1.47.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.47.0...v1.47.1)

Updates `io.grpc:grpc-protobuf` from 1.47.0 to 1.47.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.47.0...v1.47.1)

Updates `io.grpc:grpc-stub` from 1.47.0 to 1.47.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.47.0...v1.47.1)

---
updated-dependencies:
- dependency-name: io.grpc:grpc-netty
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.grpc:grpc-protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.grpc:grpc-stub
  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>
2023-11-03 11:33:40 -04:00
buildmaster
48612c4f6a Bumping versions 2023-10-31 23:18:18 +00:00
Ignacio Lozano
ee9d6ad16a Correct the order when routes are refreshed by group (#3112) 2023-10-31 11:53:57 -04:00
Gaurav Ojha
7dff7319a6 Support spring.codec.max-in-memory-size configuration for CacheRequestBodyFilter
Fixes gh-2693
Fixes gh-2797
2023-10-04 16:49:28 -04:00
Fredrich Ombico
41b212db5c Add RewriteRequestParameter GatewayFilter factory (#3081)
The `RewriteRequestParameter` `GatewayFilter` factory takes a `name` parameter and a `replacement` parameter.
It will rewrite the value of the request parameter of the given `name`.
2023-10-04 15:42:02 -04:00
sgibb
29ec0728a8 Polish gh-3047 "Correct inconsistencies in the Cache-Control..." 2023-10-04 15:18:00 -04:00
buildmaster
9fce110c42 Correct LocalResponseCache behaviour w/ "no-cache", "must-revalidate", "max-age" and "no-store" directives
summary:

1. Inputs / expected result in order assuming Cache TTL configured to 120s
* Request contains `no-store` or `private`
  * (done) Cache is skipped without storing response and `Cache-Control` will come from upstream
* Request contains `no-cache`
  * The cached response is ignored by SCG dispatching to upstream(we cannot return 304 - imagine a client sends no-cache waiting for the server to revalidate and returns fresh data but instead it receives a bodyless response 304)
    * A) Fresh response coming from upstream is renewed in the SCG cache and `Cache-Control: max-age=120s`. Other clients will see max-age increased
    * B) Fresh response coming from upstream is not stored. Other clients will not be affected.
* Otherwise (ignoring `ETag`, `If-Modified-Since` and other request directives
  * if Response is not cached in SCG yet
    * `Cache-Control: max-age=120` (no-cache, no-store and must-revalidate doesn't make sense)
  * if Response is cached in SCG with remaining TTL = 30s
    * `Cache-Control: max-age=30` (no-cache, no-store and must-revalidate doesn't make sense)
  * if Response is cached in SCG with remaining TTL = 0s
    * `Cache-Control: max-age=0,no-cache,must-revalidate` (max-age=0+must-revalidate is equivalent to no-cache)

2. Revalidation is out of scope but it can be added in the future (ETag, If-Modified-Since, Modified-Since)
2023-10-04 15:17:59 -04:00
buildmaster
9b9885bc8c Bumping versions 2023-07-28 23:19:08 +00:00
buildmaster
475cdbb0ef Bumping versions 2023-07-27 23:18:59 +00:00
buildmaster
693baf3b10 Bumping versions to 4.0.8-SNAPSHOT after release 2023-07-27 20:52:41 +00:00
buildmaster
6dc5efa00e Going back to snapshots 2023-07-27 20:52:41 +00:00
buildmaster
bc757fcb23 Update SNAPSHOT to 4.0.7 2023-07-27 20:50:02 +00:00
Ryan Baxter
da5406db3b Merge branch '3.1.x' into 4.0.x 2023-07-20 15:17:59 -04:00
Gonçalo Marques
6935fe74d7 Fix incorrect cast in NettyRoutingFilter 2023-07-20 15:13:59 -04:00
buildmaster
eeecc4599a Bumping versions to 3.1.9-SNAPSHOT after release 2023-06-29 11:44:02 +00:00
buildmaster
764407f8ab Going back to snapshots 2023-06-29 11:44:02 +00:00
buildmaster
78efb0b30c Update SNAPSHOT to 3.1.8 2023-06-29 11:41:47 +00:00
sgibb
fba558aade Updates WeightCalculatorWebFilter to be more testable.
Since Random can't be mocked in jdk17+, replace the settable Random with Supplier<Double>. Production should still use ThreadLoacalRandom unless the supplier is set.
2023-06-23 23:36:03 -04:00
sgibb
e17509648f Disables test for jdk 17+ 2023-06-23 23:22:17 -04:00
sgibb
28baf1d381 Disable blockhound junit integration for jdk > 17 2023-06-23 23:09:18 -04:00
sgibb
5df34a7e08 Small regex refactor 2023-06-23 22:37:31 -04:00
sgibb
38e2d07d1c Merge branch '3.1.x' into 4.0.x 2023-06-19 13:32:37 -04:00
sgibb
d8d5bc071b Removes predicate path exchange attr for forwards.
This moves the removal of GATEWAY_PREDICATE_PATH_CONTAINER_ATTR to ServerWebExchangeUtils.handle() which is now used in SpringCloudCircuitBreakerFilterFactory and ForwardRoutingFilter.

Fixes gh-2950
2023-06-19 13:29:41 -04:00
sgibb
7f1b1927ab Run test with random port 2023-06-19 13:21:44 -04:00
buildmaster
4aeccc736e Bumping versions 2023-05-26 02:12:26 +00:00
buildmaster
48b30069f7 Bumping versions 2023-05-25 02:12:26 +00:00
buildmaster
9aadd6138f Bumping versions to 4.0.7-SNAPSHOT after release 2023-05-24 19:46:04 +00:00
buildmaster
71c2e1b52b Going back to snapshots 2023-05-24 19:46:03 +00:00
buildmaster
f75cab542f Update SNAPSHOT to 4.0.6 2023-05-24 19:42:51 +00:00
spencergibb
2269b1977f Revert "Adds produces to post /routes"
This reverts commit a545731d78.
2023-05-23 19:14:24 -04:00
spencergibb
a545731d78 Adds produces to post /routes 2023-05-23 19:04:50 -04:00