Add cloud-2026-upgrade: step-by-step upgrade of the shop to Spring Boot 4.2.0 / Spring Cloud 2026.0.0, with probes
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# org.springframework.cloud artifacts managed by spring-cloud-dependencies 2025.1.5 vs 2026.0.0
|
||||
managed in 2025.1.5: 115 managed in 2026.0.0: 114
|
||||
|
||||
REMOVED (1)
|
||||
org.springframework.cloud:spring-cloud-function-deployer:5.0.6
|
||||
(but that version's POM is NOT in the repository: 404)
|
||||
|
||||
ADDED (0)
|
||||
@@ -0,0 +1,45 @@
|
||||
== spring-cloud-commons 5.0.5 -> 5.1.0: 75 -> 78 properties
|
||||
added spring.cloud.discovery.reactive.combine-instances (default False)
|
||||
added spring.cloud.discovery.reactive.enabled (default True)
|
||||
added spring.cloud.discovery.reactive.order-enforced (default False)
|
||||
default changed spring.cloud.compatibility-verifier.compatible-boot-versions: None -> 4.2.x
|
||||
== spring-cloud-context 5.0.5 -> 5.1.0: 30 -> 30 properties
|
||||
== spring-cloud-loadbalancer 5.0.5 -> 5.1.0: 11 -> 11 properties
|
||||
== spring-cloud-config-client 5.0.7 -> 5.1.0: 26 -> 30 properties
|
||||
added spring.cloud.config.oauth2.client-registration-id
|
||||
added spring.cloud.config.oauth2.enabled (default False)
|
||||
added spring.cloud.config.resource-client.max-size (default 1MB)
|
||||
added spring.cloud.config.retry.enabled (default False)
|
||||
newly deprecated spring.cloud.config.retry.use-random-policy -> (no replacement)
|
||||
== spring-cloud-config-server 5.0.7 -> 5.1.0: 166 -> 180 properties
|
||||
added spring.cloud.config.server.gcp-parameter-manager.application-label (default application)
|
||||
added spring.cloud.config.server.gcp-parameter-manager.default-label (default main)
|
||||
added spring.cloud.config.server.gcp-parameter-manager.location (default global)
|
||||
added spring.cloud.config.server.gcp-parameter-manager.order
|
||||
added spring.cloud.config.server.gcp-parameter-manager.profile-label (default profile)
|
||||
added spring.cloud.config.server.gcp-parameter-manager.project-id
|
||||
added spring.cloud.config.server.gcs.bucket
|
||||
added spring.cloud.config.server.gcs.order
|
||||
added spring.cloud.config.server.gcs.project-id
|
||||
added spring.cloud.config.server.gcs.search-paths
|
||||
added spring.cloud.config.server.gcs.use-directory-layout (default False)
|
||||
added spring.cloud.config.server.git.azure.identity.client-id
|
||||
added spring.cloud.config.server.git.azure.identity.managed-identity-enabled (default False)
|
||||
added spring.cloud.config.server.native.last-label-wins (default True)
|
||||
== spring-cloud-config-monitor 5.0.7 -> 5.1.0: 23 -> 24 properties
|
||||
added spring.cloud.config.server.monitor.http.endpoints
|
||||
== spring-cloud-gateway-server-webflux 5.0.5 -> 5.1.0: 177 -> 177 properties
|
||||
== spring-cloud-gateway-server-webmvc 5.0.5 -> 5.1.0: 27 -> 34 properties
|
||||
added spring.cloud.gateway.server.webmvc.websocket.allowed-origin-patterns
|
||||
added spring.cloud.gateway.server.webmvc.websocket.allowed-origins
|
||||
added spring.cloud.gateway.server.webmvc.websocket.connect-timeout (default 10s)
|
||||
added spring.cloud.gateway.server.webmvc.websocket.enabled (default True)
|
||||
added spring.cloud.gateway.server.webmvc.websocket.max-message-size (default 64KB)
|
||||
added spring.cloud.gateway.server.webmvc.websocket.send-buffer-size-limit (default 512KB)
|
||||
added spring.cloud.gateway.server.webmvc.websocket.send-time-limit (default 10s)
|
||||
== spring-cloud-openfeign-core 5.0.4 -> 5.1.0: 38 -> 38 properties
|
||||
== spring-cloud-stream 5.0.5 -> 5.1.0: 25 -> 25 properties
|
||||
== spring-cloud-netflix-eureka-client 5.0.4 -> 5.1.0: 93 -> 94 properties
|
||||
added eureka.client.status.mapping
|
||||
== spring-cloud-netflix-eureka-server 5.0.4 -> 5.1.0: 83 -> 83 properties
|
||||
== spring-cloud-circuitbreaker-resilience4j 5.0.3 -> 5.1.0: 11 -> 11 properties
|
||||
@@ -0,0 +1,26 @@
|
||||
=== Boot 4.2.0 with Spring Cloud 2025.1.5
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
Description:
|
||||
Your project setup is incompatible with our requirements due to following reasons:
|
||||
- Spring Boot [4.2.0] is not compatible with this Spring Cloud release train
|
||||
Action:
|
||||
Consider applying the following actions:
|
||||
- Change Spring Boot version to one of the following versions [4.0.x, 4.1.x].
|
||||
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn].
|
||||
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
|
||||
If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]
|
||||
|
||||
=== Boot 4.1.3 with Spring Cloud 2026.0.0
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
Description:
|
||||
Your project setup is incompatible with our requirements due to following reasons:
|
||||
- Spring Boot [4.1.3] is not compatible with this Spring Cloud release train
|
||||
Action:
|
||||
Consider applying the following actions:
|
||||
- Change Spring Boot version to one of the following versions [4.2.x].
|
||||
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn].
|
||||
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
|
||||
If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
# The shop's scenario files, compared with Boot 4.1.3 / 2025.1.5 (timestamps and trace ids masked).
|
||||
# 00-startup-race.txt is left out: it records timing.
|
||||
|
||||
=== Boot 4.2.0 / 2026.0.0, only the two version numbers changed (step 2)
|
||||
01-config-server.txt: identical
|
||||
02-eureka-registry.txt: identical
|
||||
03-gateway-requests.txt: identical
|
||||
04-trace-propagation.txt: identical
|
||||
05-circuit-breaker.txt: identical
|
||||
06-eureka-lb-trap.txt: DIFFERENT
|
||||
< org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'scopedTar
|
||||
< c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='ht
|
||||
< com.netflix.discovery.DiscoveryClient : DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration f
|
||||
|
||||
=== Boot 4.2.0 / 2026.0.0, all five steps applied
|
||||
01-config-server.txt: DIFFERENT
|
||||
< management.endpoints.web.exposure.include = health,info,circuitbreakers
|
||||
> management.endpoints.web.exposure.include = health,info,circuitbreakers,refresh
|
||||
02-eureka-registry.txt: DIFFERENT
|
||||
> CONFIG-SERVER instance=config-server:8888 status=UP
|
||||
03-gateway-requests.txt: identical
|
||||
04-trace-propagation.txt: identical
|
||||
05-circuit-breaker.txt: identical
|
||||
06-eureka-lb-trap.txt: DIFFERENT
|
||||
< org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'scopedTar
|
||||
< c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='ht
|
||||
< com.netflix.discovery.DiscoveryClient : DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration f
|
||||
< order-service:8092 registered: False
|
||||
> order-service:8092 registered: True
|
||||
|
||||
The yes/no registry line in 06-eureka-lb-trap.txt varies between runs on 2026.0.0 (Eureka caches that answer);
|
||||
the registration itself is recorded in 13-eureka-lb-trap-after.txt.
|
||||
@@ -0,0 +1,9 @@
|
||||
# order-service started with --shop.demo.primary-builder=false (the only RestClient.Builder is the @LoadBalanced one)
|
||||
|
||||
--- the log lines that give it away ---
|
||||
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'scopedTarget.eurekaClient': Requested bean is currently in creation: Is there an unresolvable circular reference or an as
|
||||
c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/}, exception=No instances available for localhost
|
||||
com.netflix.discovery.DiscoveryClient : DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration failed Cannot execute request on any known server
|
||||
|
||||
--- is instance order-service:8092 in Eureka? ---
|
||||
order-service:8092 registered: False
|
||||
@@ -0,0 +1,5 @@
|
||||
# order-service on 2026.0.0 with --shop.demo.primary-builder=false, taken from its own log
|
||||
|
||||
lines with BeanCurrentlyInCreationException: 0
|
||||
lines with 'No instances available for localhost': 0
|
||||
DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration status: 204
|
||||
@@ -0,0 +1,46 @@
|
||||
# Requests through the gateway (port 8080). The client only ever talks to 8080.
|
||||
|
||||
--- products ---
|
||||
$ curl -X GET localhost:8080/api/products
|
||||
HTTP 200
|
||||
[{"id":1,"name":"Mechanical keyboard","price":89.90},{"id":2,"name":"USB-C dock","price":129.00},{"id":3,"name":"27-inch monitor","price":249.50}]
|
||||
|
||||
$ curl -X GET localhost:8080/api/products/2
|
||||
HTTP 200
|
||||
{"id":2,"name":"USB-C dock","price":129.00}
|
||||
|
||||
$ curl -X GET localhost:8080/api/products/99
|
||||
HTTP 404
|
||||
{"timestamp":"2026-12-04T02:31:24.354Z","status":404,"error":"Not Found","path":"/products/99"}
|
||||
|
||||
--- stock ---
|
||||
$ curl -X GET localhost:8080/api/inventory/3
|
||||
HTTP 200
|
||||
{"productId":3,"quantity":3,"lowStock":true}
|
||||
|
||||
--- orders ---
|
||||
$ curl -X POST localhost:8080/api/orders -d '{"productId":1,"quantity":2}'
|
||||
HTTP 201
|
||||
{"id":1,"productId":1,"productName":"Mechanical keyboard","quantity":2,"total":179.80,"currency":"EUR","status":"CONFIRMED"}
|
||||
|
||||
$ curl -X POST localhost:8080/api/orders -d '{"productId":3,"quantity":4}'
|
||||
HTTP 409
|
||||
{"timestamp":"2026-12-04T02:31:24.672Z","status":409,"error":"Conflict","path":"/orders"}
|
||||
|
||||
$ curl -X POST localhost:8080/api/orders -d '{"productId":2,"quantity":11}'
|
||||
HTTP 400
|
||||
{"timestamp":"2026-12-04T02:31:24.717Z","status":400,"error":"Bad Request","path":"/orders"}
|
||||
|
||||
$ curl -X POST localhost:8080/api/orders -d '{"productId":99,"quantity":1}'
|
||||
HTTP 404
|
||||
{"timestamp":"2026-12-04T02:31:24.788Z","status":404,"error":"Not Found","path":"/orders"}
|
||||
|
||||
$ curl -X GET localhost:8080/api/orders
|
||||
HTTP 200
|
||||
[{"id":1,"productId":1,"productName":"Mechanical keyboard","quantity":2,"total":179.80,"currency":"EUR","status":"CONFIRMED"}]
|
||||
|
||||
--- stock after the first order ---
|
||||
$ curl -X GET localhost:8080/api/inventory/1
|
||||
HTTP 200
|
||||
{"productId":1,"quantity":18,"lowStock":false}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
# Libraries of the six services: Boot 4.1.3 / 2025.1.5 -> Boot 4.2.0 / 2026.0.0 (selected groups)
|
||||
io.github.resilience4j:resilience4j-annotations 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-circuitbreaker 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-circularbuffer 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-consumer 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-core 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-framework-common 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-micrometer 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-ratelimiter 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-retry 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-spring-boot3 2.3.0 -> (gone)
|
||||
io.github.resilience4j:resilience4j-spring-boot4 (absent) -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-spring6 2.3.0 -> 2.4.0
|
||||
io.github.resilience4j:resilience4j-timelimiter 2.3.0 -> 2.4.0
|
||||
io.micrometer:micrometer-core 1.17.3 -> 1.18.0
|
||||
io.projectreactor.addons:reactor-extra 3.6.2 -> (gone)
|
||||
io.projectreactor:reactor-core 3.8.9 -> 3.9.0
|
||||
org.eclipse.jgit:org.eclipse.jgit 7.4.0.202509020913-r -> 7.8.1.202611041320-r
|
||||
org.eclipse.jgit:org.eclipse.jgit.http.apache 7.4.0.202509020913-r -> 7.8.1.202611041320-r
|
||||
org.eclipse.jgit:org.eclipse.jgit.ssh.apache 7.4.0.202509020913-r -> 7.8.1.202611041320-r
|
||||
org.jetbrains.kotlin:kotlin-stdlib 2.3.21 -> (gone)
|
||||
org.jetbrains.kotlin:kotlin-stdlib-jdk7 2.3.21 -> (gone)
|
||||
org.jetbrains.kotlin:kotlin-stdlib-jdk8 2.3.21 -> (gone)
|
||||
org.jetbrains:annotations 13.0 -> (gone)
|
||||
org.springframework.boot:spring-boot 4.1.3 -> 4.2.0
|
||||
org.springframework.cloud:spring-cloud-circuitbreaker-resilience4j 5.0.3 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-commons 5.0.5 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-config-client 5.0.7 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-config-monitor (absent) -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-config-server 5.0.7 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-context 5.0.5 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-gateway-server-webmvc 5.0.5 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-loadbalancer 5.0.5 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-netflix-eureka-client 5.0.4 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-netflix-eureka-server 5.0.4 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-starter 5.0.5 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-starter-circuitbreaker-resilience4j 5.0.3 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-starter-config 5.0.7 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-starter-gateway-server-webmvc 5.0.5 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-starter-loadbalancer 5.0.5 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-starter-netflix-eureka-client 5.0.4 -> 5.1.0
|
||||
org.springframework.cloud:spring-cloud-starter-netflix-eureka-server 5.0.4 -> 5.1.0
|
||||
org.springframework:spring-core 7.0.11 -> 7.1.0
|
||||
@@ -0,0 +1,50 @@
|
||||
# Gateway Server webmvc. The client is 127.0.0.1 and sends forged headers:
|
||||
# Forwarded: for=198.51.100.7;proto=https X-Forwarded-For: 198.51.100.7 X-Forwarded-Proto: https
|
||||
# Below: the forwarding headers the backend actually received.
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3 | trusted-proxies not set
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3 | trusted-proxies=10\..* (caller NOT trusted)
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3 | trusted-proxies=127\.0\.0\.1 (caller trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: https,http
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5 | trusted-proxies not set
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5 | trusted-proxies=10\..* (caller NOT trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: http
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5 | trusted-proxies=127\.0\.0\.1 (caller trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: https,http
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0 | trusted-proxies not set
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0 | trusted-proxies=10\..* (caller NOT trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: http
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1 (caller trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: https,http
|
||||
@@ -0,0 +1,50 @@
|
||||
# Gateway Server webflux. The client is 127.0.0.1 and sends forged headers:
|
||||
# Forwarded: for=198.51.100.7;proto=https X-Forwarded-For: 198.51.100.7 X-Forwarded-Proto: https
|
||||
# Below: the forwarding headers the backend actually received.
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3 | trusted-proxies not set
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3 | trusted-proxies=10\..* (caller NOT trusted)
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3 | trusted-proxies=127\.0\.0\.1 (caller trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: https,http
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5 | trusted-proxies not set
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5 | trusted-proxies=10\..* (caller NOT trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: http
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5 | trusted-proxies=127\.0\.0\.1 (caller trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: https,http
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0 | trusted-proxies not set
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0 | trusted-proxies=10\..* (caller NOT trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: http
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1 (caller trusted)
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8090
|
||||
x-forwarded-port: 8090
|
||||
x-forwarded-proto: https,http
|
||||
@@ -0,0 +1,13 @@
|
||||
# WebFlux gateway, Retry filter (retries: 3, statuses: INTERNAL_SERVER_ERROR) in front of a backend that always answers 500.
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3
|
||||
client status: 500
|
||||
upstream calls to /flaky: 4
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5
|
||||
client status: 500
|
||||
upstream calls to /flaky: 4
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0
|
||||
client status: 500
|
||||
upstream calls to /flaky: 4
|
||||
@@ -0,0 +1,14 @@
|
||||
# WebFlux gateway with a ws:// route. A handshake with a foreign Origin header.
|
||||
# The backend is a plain HTTP server, so a handshake the gateway lets through fails further down.
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.3
|
||||
HTTP/1.1 101 Switching Protocols
|
||||
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5
|
||||
HTTP/1.1 403 Forbidden
|
||||
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0
|
||||
HTTP/1.1 403 Forbidden
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# 127.0.0.1 plays a load balancer. It sends: X-Forwarded-For: 203.0.113.50 Forwarded: for=203.0.113.50;proto=https
|
||||
# 203.0.113.50 is the real client. Does it survive the gateway?
|
||||
|
||||
=== webmvc | Spring Cloud 2025.1.3 | trusted-proxies=127\.0\.0\.1
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
|
||||
=== webmvc | Spring Cloud 2025.1.3 | trusted-proxies=127\.0\.0\.1|203\.0\.113\.50
|
||||
forwarded: for=203.0.113.50;proto=https | proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 203.0.113.50,127.0.0.1
|
||||
|
||||
=== webmvc | Spring Cloud 2025.1.5 | trusted-proxies=127\.0\.0\.1
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
|
||||
=== webmvc | Spring Cloud 2025.1.5 | trusted-proxies=127\.0\.0\.1|203\.0\.113\.50
|
||||
forwarded: for=203.0.113.50;proto=https | proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 203.0.113.50,127.0.0.1
|
||||
|
||||
=== webmvc | Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
|
||||
=== webmvc | Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1|203\.0\.113\.50
|
||||
forwarded: for=203.0.113.50;proto=https | proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 203.0.113.50,127.0.0.1
|
||||
|
||||
=== webflux | Spring Cloud 2025.1.3 | trusted-proxies=127\.0\.0\.1
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
|
||||
=== webflux | Spring Cloud 2025.1.3 | trusted-proxies=127\.0\.0\.1|203\.0\.113\.50
|
||||
forwarded: for=203.0.113.50;proto=https | proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 203.0.113.50,127.0.0.1
|
||||
|
||||
=== webflux | Spring Cloud 2025.1.5 | trusted-proxies=127\.0\.0\.1
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
|
||||
=== webflux | Spring Cloud 2025.1.5 | trusted-proxies=127\.0\.0\.1|203\.0\.113\.50
|
||||
forwarded: for=203.0.113.50;proto=https | proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 203.0.113.50,127.0.0.1
|
||||
|
||||
=== webflux | Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1
|
||||
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
|
||||
=== webflux | Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1|203\.0\.113\.50
|
||||
forwarded: for=203.0.113.50;proto=https | proto=http;host="localhost:8090";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 203.0.113.50,127.0.0.1
|
||||
@@ -0,0 +1,18 @@
|
||||
# The shop gateway (WebMVC) on Spring Cloud 2026.0.0, client 127.0.0.1 sending: X-Forwarded-For: 198.51.100.7
|
||||
|
||||
=== TRUSTED_PROXIES=<not set>
|
||||
(no Forwarded or X-Forwarded-* header at all)
|
||||
|
||||
=== TRUSTED_PROXIES=10\..*
|
||||
forwarded: proto=http;host="localhost:8080";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8080
|
||||
x-forwarded-port: 8080
|
||||
x-forwarded-proto: http
|
||||
|
||||
=== TRUSTED_PROXIES=127\.0\.0\.1
|
||||
forwarded: proto=http;host="localhost:8080";for="127.0.0.1:<port>"
|
||||
x-forwarded-for: 127.0.0.1
|
||||
x-forwarded-host: localhost:8080
|
||||
x-forwarded-port: 8080
|
||||
x-forwarded-proto: http
|
||||
@@ -0,0 +1,14 @@
|
||||
# A record with a nested record, a list and a map, sent with @SpringQueryMap. What the server received (URL-decoded).
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5
|
||||
query string received: price=Price[min=10, max=200]&text=dock&tags=usb&tags=hub&attrs={colour=black}
|
||||
feign-core-13.6.1.jar
|
||||
spring-cloud-openfeign-core-5.0.4.jar
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0
|
||||
query string received: price=Price[min=10, max=200]&text=dock&tags=usb&tags=hub&attrs={colour=black}
|
||||
feign-core-13.17.jar
|
||||
spring-cloud-openfeign-core-5.1.0.jar
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0 + spring.cloud.openfeign.client.config.default.nested-query-map-enabled=true
|
||||
query string received: price.min=10&price.max=200&text=dock&tags=usb&tags=hub&attrs[colour]=black
|
||||
@@ -0,0 +1,9 @@
|
||||
# A class that imports reactor.retry.Repeat in a project that declares only spring-cloud-starter-loadbalancer.
|
||||
|
||||
=== Boot 4.1.3 / Spring Cloud 2025.1.5
|
||||
compiles
|
||||
|
||||
=== Boot 4.2.0 / Spring Cloud 2026.0.0
|
||||
[ERROR] probes/reactor-extra/src/main/java/com/ankurm/upgrade/UsesReactorExtra.java:[3,21] package reactor.retry does not exist
|
||||
[ERROR] probes/reactor-extra/src/main/java/com/ankurm/upgrade/UsesReactorExtra.java:[8,16] cannot find symbol
|
||||
[ERROR] probes/reactor-extra/src/main/java/com/ankurm/upgrade/UsesReactorExtra.java:[3,21] package reactor.retry does not exist
|
||||
@@ -0,0 +1,31 @@
|
||||
# order-service reads shop.order.* from the config server. OrderProperties is a Java record.
|
||||
|
||||
--- before
|
||||
$ curl localhost:8082/orders/config
|
||||
{"currency":"EUR","maxQuantity":10}
|
||||
|
||||
--- an unsigned request to /monitor (the curl most tutorials show)
|
||||
$ curl -X POST localhost:8888/monitor -d path=order-service
|
||||
HTTP 403
|
||||
|
||||
--- edit order-service.yml in the config repository: currency EUR -> USD, max-quantity 10 -> 3
|
||||
(no request sent: with a local file: repository the monitor module watches the directory itself)
|
||||
|
||||
--- config server log
|
||||
INFO o.s.c.c.m.FileMonitorConfiguration : Monitoring for local config changes: [run/config]
|
||||
INFO o.s.c.c.monitor.PropertyPathEndpoint : Refresh for: order-service
|
||||
|
||||
--- order-service log
|
||||
INFO o.s.cloud.endpoint.RefreshEndpoint : Refreshed keys : [shop.order.currency, shop.order.max-quantity]
|
||||
|
||||
--- what order-service uses after the refresh
|
||||
$ curl localhost:8082/orders/config
|
||||
{"currency":"EUR","maxQuantity":10}
|
||||
|
||||
--- a signed GitHub-style push webhook, the way a remote Git repository would call
|
||||
$ curl -X POST localhost:8888/monitor -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=<hmac>' -d '{"commits":[{"modified":["order-service.yml"]}]}'
|
||||
["order-service","order"]
|
||||
HTTP 200
|
||||
|
||||
--- same webhook, wrong signature
|
||||
HTTP 403
|
||||
@@ -0,0 +1,31 @@
|
||||
# order-service reads shop.order.* from the config server. OrderProperties is a class with setters.
|
||||
|
||||
--- before
|
||||
$ curl localhost:8082/orders/config
|
||||
{"currency":"EUR","maxQuantity":10}
|
||||
|
||||
--- an unsigned request to /monitor (the curl most tutorials show)
|
||||
$ curl -X POST localhost:8888/monitor -d path=order-service
|
||||
HTTP 403
|
||||
|
||||
--- edit order-service.yml in the config repository: currency EUR -> USD, max-quantity 10 -> 3
|
||||
(no request sent: with a local file: repository the monitor module watches the directory itself)
|
||||
|
||||
--- config server log
|
||||
INFO o.s.c.c.m.FileMonitorConfiguration : Monitoring for local config changes: [run/config]
|
||||
INFO o.s.c.c.monitor.PropertyPathEndpoint : Refresh for: order-service
|
||||
|
||||
--- order-service log
|
||||
INFO o.s.cloud.endpoint.RefreshEndpoint : Refreshed keys : [shop.order.currency, shop.order.max-quantity]
|
||||
|
||||
--- what order-service uses after the refresh
|
||||
$ curl localhost:8082/orders/config
|
||||
{"currency":"USD","maxQuantity":3}
|
||||
|
||||
--- a signed GitHub-style push webhook, the way a remote Git repository would call
|
||||
$ curl -X POST localhost:8888/monitor -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=<hmac>' -d '{"commits":[{"modified":["order-service.yml"]}]}'
|
||||
["order-service","order"]
|
||||
HTTP 200
|
||||
|
||||
--- same webhook, wrong signature
|
||||
HTTP 403
|
||||
@@ -0,0 +1,4 @@
|
||||
# config-server with spring-cloud-config-monitor and the Eureka client, WITHOUT spring-boot-starter-restclient
|
||||
|
||||
java.lang.IllegalStateException: At least one PropertyPathNotifier must be available
|
||||
Error creating bean with name 'propertyPathEndpoint'
|
||||
@@ -0,0 +1,14 @@
|
||||
# a/app-prod.yml and b/app.yml both set demo.source. Request: /app/prod/a,b
|
||||
# search-locations: file:<repo>/ (label directories are added automatically)
|
||||
|
||||
=== Spring Cloud 2025.1.5
|
||||
wins from a/app-prod.yml
|
||||
from b/app.yml
|
||||
|
||||
=== Spring Cloud 2026.0.0
|
||||
wins from b/app.yml
|
||||
from a/app-prod.yml
|
||||
|
||||
=== Spring Cloud 2026.0.0 + spring.cloud.config.server.native.last-label-wins=false
|
||||
wins from a/app-prod.yml
|
||||
from b/app.yml
|
||||
@@ -0,0 +1,12 @@
|
||||
== untrusted caller 203.0.113.9: Forwarded filter
|
||||
Forwarded = [proto=http;for="203.0.113.9:40000"]
|
||||
X-Forwarded-For = [198.51.100.7]
|
||||
X-Forwarded-Proto= [https]
|
||||
== untrusted caller 203.0.113.9: X-Forwarded filter
|
||||
Forwarded = [for=198.51.100.7;proto=https]
|
||||
X-Forwarded-For = [203.0.113.9]
|
||||
X-Forwarded-Proto= [http]
|
||||
== trusted caller 10.1.2.3: Forwarded filter
|
||||
Forwarded = [proto=http;for="10.1.2.3:40000"]
|
||||
X-Forwarded-For = [198.51.100.7]
|
||||
X-Forwarded-Proto= [https]
|
||||
@@ -0,0 +1,9 @@
|
||||
== 1. changed applications: orders and ghost
|
||||
WARN HttpPropertyPathNotifier -- Failed to notify instance http://127.0.0.1:1
|
||||
server received: POST /actuator/refresh
|
||||
server received: POST /custom/refresh
|
||||
requests received = 2 (3 instances registered for orders, one unreachable)
|
||||
== 2. override the path per application
|
||||
WARN HttpPropertyPathNotifier -- Failed to notify instance http://127.0.0.1:1
|
||||
server received: POST /internal/refresh
|
||||
server received: POST /internal/refresh
|
||||
Reference in New Issue
Block a user