feat(httpclient): close the platform review's P0/P1/P2 findings

The review found one defect shape repeated across the platform: surfaces
that were declared, bound, and documented, but that nothing read. An
operator configuring fullUrlRecording, bodyLogging, retry.policy,
validatedDnsPinning, timeout.dns, or any of ten declared metric names got a
guarantee the code never delivered. Every such surface is now in exactly one
of three states -- wired for real, rejected at startup, or registered in a
test-enforced gap list with its reason. No silent no-ops remain.

P0:
- Activate the platform from bootstrap behind app.httpclient.enabled, with a
  single auto-configuration importing the nine child configurations.
- Give the platform a strict, repository-level ENV contract: 74 leaf fields
  derived from the settings record tree, unknown APP_HTTPCLIENT_* rejected.
- Route typed HTTP service clients through the call kernel via
  KernelHttpExchangeAdapter, so they stop bypassing platform policy.
- Pin dynamic-target DNS resolution to the socket for the life of a call,
  closing the resolve-then-connect TOCTOU / rebinding window.
- Actually transmit the idempotency key, and make retry eligibility depend on
  transmission rather than on merely holding one.
- Reject reactive authentication and reactive redirect at startup instead of
  declaring support that does not function.
- Fix the Reactor-only Stable contract row so the lane stops failing.
- Stop advertising HTTP/3 on a transport that negotiates HTTP/1.

P1 covers execution and retry accounting, redirect security (per-hop target
guarding, sensitive-header stripping, 303 body handling), runtime rotation
and transport resource ownership keyed by generation, dynamic-target
hardening (subdomain matching, global-unicast classification, strict CIDR
parsing), protocol intent, pool and timeout wiring, streaming and body
limits, observability parity, and OAuth single-flight refresh on a bounded
pool with a bounded wait.

P2 covers configuration and documentation drift, the Gradle check wiring for
the four hermetic lanes, and the CI gate matrix.

Two test-quality defects surfaced while closing these: the HTTP/2 stream
saturation test ran against cleartext HTTP/1.1 while asserting nothing about
the protocol, and an OAuth contention test slept on a latch that could fire
before the callers it meant to observe. Both now assert what their names
claim.

Verification run: :adapter:outbound:httpclient:check and :app-bootstrap:check
(checkstyle, spotless, spotbugs, and the four hermetic lanes),
verifyCleanArchitectureDependencies, verifyEnvKeys, verifyOneTypePerFile,
verifyDependencyLocks, the documentation and gate-matrix verifiers, and the
performance lane against a real TLS+ALPN HTTP/2 server.

Not executed, and tracked rather than claimed: Docker/Toxiproxy fault
injection, JMH, a real QUIC/HTTP3 server, a real Spring Framework 6.2
distribution (now a delegated-pending gate), live OAuth/TLS/proxy/DNS
integration, and a whole-repository check.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
DongHyeonka
2026-08-11 16:49:31 +09:00
co-authored by Claude Opus 5
parent 5f10b791d3
commit 0cd959a494
148 changed files with 26812 additions and 2368 deletions
+334 -288
View File
@@ -1,451 +1,497 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
aopalliance:aopalliance:1.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
biz.aQute.bnd:biz.aQute.bnd.annotation:7.1.0=compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
ch.qos.logback:logback-classic:1.5.21=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
aopalliance:aopalliance:1.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
biz.aQute.bnd:biz.aQute.bnd.annotation:7.1.0=compileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
ch.qos.logback:logback-classic:1.5.21=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
ch.qos.logback:logback-classic:1.5.34=sampleFixture
ch.qos.logback:logback-core:1.5.21=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
ch.qos.logback:logback-core:1.5.21=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
ch.qos.logback:logback-core:1.5.34=sampleFixture
com.approvaltests:approvaltests-util:31.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.approvaltests:approvaltests:31.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.ethlo.time:itu:1.14.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.fasterxml.jackson.core:jackson-annotations:2.20=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.approvaltests:approvaltests-util:31.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.approvaltests:approvaltests:31.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.ethlo.time:itu:1.14.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.fasterxml.jackson.core:jackson-annotations:2.20=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml.jackson.core:jackson-annotations:2.21=sampleFixture
com.fasterxml.jackson.core:jackson-core:2.20.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml.jackson.core:jackson-core:2.20.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml.jackson.core:jackson-core:2.21.4=sampleFixture
com.fasterxml.jackson.core:jackson-databind:2.20.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml.jackson.core:jackson-databind:2.20.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml.jackson.core:jackson-databind:2.21.4=sampleFixture
com.fasterxml.jackson.dataformat:jackson-dataformat-toml:2.21.4=sampleFixture
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.20.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.20.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.21.4=sampleFixture
com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.21.4=sampleFixture
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.4=sampleFixture
com.fasterxml.jackson.module:jackson-module-parameter-names:2.21.4=sampleFixture
com.fasterxml.jackson:jackson-bom:2.20.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml.jackson:jackson-bom:2.20.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml.jackson:jackson-bom:2.21.4=sampleFixture
com.fasterxml:classmate:1.7.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml:classmate:1.7.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.fasterxml:classmate:1.7.3=sampleFixture
com.github.ben-manes.caffeine:caffeine:3.2.3=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.github.docker-java:docker-java-api:3.7.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.github.docker-java:docker-java-transport-zerodep:3.7.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.github.docker-java:docker-java-transport:3.7.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.github.ben-manes.caffeine:caffeine:3.2.3=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.github.docker-java:docker-java-api:3.7.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.github.docker-java:docker-java-transport-zerodep:3.7.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.github.docker-java:docker-java-transport:3.7.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.github.f4b6a3:uuid-creator:6.1.1=sampleFixture,testRuntimeClasspath
com.github.kevinstern:software-and-algorithms:1.0=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.github.kevinstern:software-and-algorithms:1.0=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.github.spotbugs:spotbugs-annotations:4.10.2=spotbugs
com.github.spotbugs:spotbugs-annotations:4.8.6=compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
com.github.spotbugs:spotbugs-annotations:4.8.6=compileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
com.github.spotbugs:spotbugs:4.10.2=spotbugs
com.github.stephenc.jcip:jcip-annotations:1.0-1=sampleFixture,spotbugs
com.google.auto.service:auto-service-annotations:1.0.1=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.auto.value:auto-value-annotations:1.9=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.auto:auto-common:1.2.2=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.code.findbugs:jsr305:3.0.2=checkstyle,compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,spotbugs,testCompileClasspath
com.google.code.gson:gson:2.13.2=spotbugs
com.google.errorprone:error_prone_annotation:2.49.0=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.errorprone:error_prone_annotations:2.38.0=compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
com.google.errorprone:error_prone_annotations:2.41.0=spotbugs
com.github.stephenc.jcip:jcip-annotations:1.0-1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
com.google.android:annotations:4.1.1.4=conditionalTransportTestRuntimeClasspath
com.google.api.grpc:proto-google-common-protos:2.41.0=conditionalTransportTestRuntimeClasspath
com.google.auto.service:auto-service-annotations:1.0.1=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.auto.value:auto-value-annotations:1.9=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.auto:auto-common:1.2.2=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.code.findbugs:jsr305:3.0.2=checkstyle,compileClasspath,conditionalTransportTestRuntimeClasspath,sampleOffTestCompileClasspath,spotbugs,testCompileClasspath
com.google.code.gson:gson:2.13.2=conditionalTransportTestRuntimeClasspath,spotbugs
com.google.errorprone:error_prone_annotation:2.49.0=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.errorprone:error_prone_annotations:2.38.0=compileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
com.google.errorprone:error_prone_annotations:2.41.0=conditionalTransportTestRuntimeClasspath,spotbugs
com.google.errorprone:error_prone_annotations:2.47.0=checkstyle
com.google.errorprone:error_prone_annotations:2.49.0=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.errorprone:error_prone_check_api:2.49.0=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.errorprone:error_prone_core:2.49.0=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.googlejavaformat:google-java-format:1.35.0=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.guava:failureaccess:1.0.3=annotationProcessor,checkstyle,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.guava:guava:33.5.0-jre=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.errorprone:error_prone_annotations:2.49.0=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.errorprone:error_prone_check_api:2.49.0=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.errorprone:error_prone_core:2.49.0=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.googlejavaformat:google-java-format:1.35.0=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.guava:failureaccess:1.0.2=conditionalTransportTestRuntimeClasspath
com.google.guava:failureaccess:1.0.3=annotationProcessor,checkstyle,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.guava:guava:33.2.1-jre=conditionalTransportTestRuntimeClasspath
com.google.guava:guava:33.5.0-jre=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.guava:guava:33.6.0-jre=checkstyle
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=annotationProcessor,checkstyle,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.j2objc:j2objc-annotations:3.1=annotationProcessor,checkstyle,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.protobuf:protobuf-java:4.33.2=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=annotationProcessor,checkstyle,conditionalTransportTestAnnotationProcessor,conditionalTransportTestRuntimeClasspath,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.j2objc:j2objc-annotations:2.8=conditionalTransportTestRuntimeClasspath
com.google.j2objc:j2objc-annotations:3.1=annotationProcessor,checkstyle,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.google.protobuf:protobuf-java-util:3.25.5=conditionalTransportTestRuntimeClasspath
com.google.protobuf:protobuf-java:3.25.5=conditionalTransportTestRuntimeClasspath
com.google.protobuf:protobuf-java:4.33.2=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
com.graphql-java:graphql-java:25.0=conditionalTransportTestRuntimeClasspath
com.graphql-java:java-dataloader:6.0.0=conditionalTransportTestRuntimeClasspath
com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0=spotbugsPlugins
com.jayway.jsonpath:json-path:2.9.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.networknt:json-schema-validator:3.0.2=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.nimbusds:nimbus-jose-jwt:10.4=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.jayway.jsonpath:json-path:2.9.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.networknt:json-schema-validator:3.0.2=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.nimbusds:content-type:2.3=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.nimbusds:lang-tag:1.7=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.nimbusds:nimbus-jose-jwt:10.4=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.nimbusds:nimbus-jose-jwt:9.37.4=sampleFixture
com.nimbusds:oauth2-oidc-sdk:11.26.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.puppycrawl.tools:checkstyle:13.5.0=checkstyle
com.squareup.okhttp3:okhttp-jvm:5.2.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okhttp3:okhttp-jvm:5.2.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okhttp3:okhttp:4.12.0=sampleFixture
com.squareup.okhttp3:okhttp:5.2.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okio:okio-jvm:3.16.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okhttp3:okhttp:5.2.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okio:okio-jvm:3.16.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okio:okio-jvm:3.6.0=sampleFixture
com.squareup.okio:okio:3.16.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okio:okio:3.16.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.squareup.okio:okio:3.6.0=sampleFixture
com.sun.istack:istack-commons-runtime:4.1.2=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5-api:1.3.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5-engine-api:1.3.0=redisCompositionTestRuntimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5-engine:1.3.0=redisCompositionTestRuntimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5:1.3.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit:1.3.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.vaadin.external.google:android-json:0.0.20131108.vaadin1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.sun.istack:istack-commons-runtime:4.1.2=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5-api:1.3.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5-engine-api:1.3.0=sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5-engine:1.3.0=sampleOffTestRuntimeClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit-junit5:1.3.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.tngtech.archunit:archunit:1.3.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.vaadin.external.google:android-json:0.0.20131108.vaadin1=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.zaxxer:HikariCP:6.3.3=sampleFixture
com.zaxxer:HikariCP:7.0.2=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.zaxxer:HikariCP:7.0.2=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
commons-beanutils:commons-beanutils:1.11.0=checkstyle
commons-codec:commons-codec:1.19.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
commons-codec:commons-codec:1.19.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
commons-collections:commons-collections:3.2.2=checkstyle
commons-io:commons-io:2.20.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
commons-io:commons-io:2.20.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
commons-io:commons-io:2.21.0=spotbugs
commons-logging:commons-logging:1.3.5=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
commons-logging:commons-logging:1.3.5=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
info.picocli:picocli:4.7.7=checkstyle
io.github.cdimascio:dotenv-java:3.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.eisop:dataflow-errorprone:3.41.0-eisop1=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
io.github.java-diff-utils:java-diff-utils:4.12=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
io.github.resilience4j:resilience4j-bulkhead:2.2.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-circuitbreaker:2.2.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-core:2.2.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-micrometer:2.2.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-ratelimiter:2.2.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-retry:2.2.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-timelimiter:2.2.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.lettuce:lettuce-core:6.8.1.RELEASE=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.cdimascio:dotenv-java:3.0.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.eisop:dataflow-errorprone:3.41.0-eisop1=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
io.github.java-diff-utils:java-diff-utils:4.12=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
io.github.resilience4j:resilience4j-bulkhead:2.2.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-circuitbreaker:2.2.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-core:2.2.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-micrometer:2.2.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-ratelimiter:2.2.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-retry:2.2.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.github.resilience4j:resilience4j-timelimiter:2.2.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.grpc:grpc-api:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-context:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-core:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-netty-shaded:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-protobuf-lite:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-protobuf:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-services:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-stub:1.68.1=conditionalTransportTestRuntimeClasspath
io.grpc:grpc-util:1.68.1=conditionalTransportTestRuntimeClasspath
io.lettuce:lettuce-core:6.8.1.RELEASE=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.micrometer:context-propagation:1.1.4=sampleFixture
io.micrometer:context-propagation:1.2.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:context-propagation:1.2.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-commons:1.15.12=sampleFixture
io.micrometer:micrometer-commons:1.16.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-commons:1.16.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-core:1.15.12=sampleFixture
io.micrometer:micrometer-core:1.16.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-core:1.16.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-jakarta9:1.15.12=sampleFixture
io.micrometer:micrometer-jakarta9:1.16.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-jakarta9:1.16.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-observation:1.15.12=sampleFixture
io.micrometer:micrometer-observation:1.16.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-observation:1.16.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-registry-prometheus:1.15.12=sampleFixture
io.micrometer:micrometer-registry-prometheus:1.16.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-registry-prometheus:1.16.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-tracing-bridge-otel:1.5.12=sampleFixture
io.micrometer:micrometer-tracing-bridge-otel:1.6.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-tracing-bridge-otel:1.6.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-tracing:1.5.12=sampleFixture
io.micrometer:micrometer-tracing:1.6.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.netty:netty-buffer:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-base:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-compression:4.2.7.Final=testRuntimeClasspath
io.netty:netty-codec-dns:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-http2:4.2.7.Final=testRuntimeClasspath
io.netty:netty-codec-http:4.2.7.Final=testRuntimeClasspath
io.netty:netty-codec-marshalling:4.2.7.Final=testRuntimeClasspath
io.netty:netty-codec-protobuf:4.2.7.Final=testRuntimeClasspath
io.netty:netty-codec:4.2.7.Final=testRuntimeClasspath
io.netty:netty-common:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-handler:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-resolver-dns:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-resolver:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-transport-classes-epoll:4.2.7.Final=testRuntimeClasspath
io.netty:netty-transport-native-unix-common:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-transport:4.2.7.Final=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.micrometer:micrometer-tracing:1.6.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.netty:netty-buffer:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-base:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-classes-quic:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-compression:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-dns:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-http2:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-http3:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-http:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-marshalling:4.2.17.Final=testRuntimeClasspath
io.netty:netty-codec-native-quic:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec-protobuf:4.2.17.Final=testRuntimeClasspath
io.netty:netty-codec-socks:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-codec:4.2.17.Final=testRuntimeClasspath
io.netty:netty-common:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-handler-proxy:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-handler:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-resolver-dns-classes-macos:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-resolver-dns-native-macos:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-resolver-dns:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-resolver:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-transport-classes-epoll:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-transport-native-epoll:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-transport-native-unix-common:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.netty:netty-transport:4.2.17.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry.semconv:opentelemetry-semconv:1.32.0=sampleFixture
io.opentelemetry.semconv:opentelemetry-semconv:1.37.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry.semconv:opentelemetry-semconv:1.37.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-api:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-api:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-common:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-api:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-common:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-context:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-context:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-context:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-common:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-exporter-common:1.55.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-common:1.55.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-otlp-common:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-exporter-otlp-common:1.55.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-otlp-common:1.55.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-otlp:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-exporter-otlp:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-otlp:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-sender-okhttp:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-exporter-sender-okhttp:1.55.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-exporter-sender-okhttp:1.55.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-extension-trace-propagators:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-extension-trace-propagators:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-extension-trace-propagators:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-common:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-sdk-common:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-common:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:1.55.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:1.55.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-logs:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-sdk-logs:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-logs:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-metrics:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-sdk-metrics:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-metrics:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-trace:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-sdk-trace:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk-trace:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk:1.49.0=sampleFixture
io.opentelemetry:opentelemetry-sdk:1.55.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.opentelemetry:opentelemetry-sdk:1.55.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.perfmark:perfmark-api:0.27.0=conditionalTransportTestRuntimeClasspath
io.projectreactor.netty:reactor-netty-core:1.3.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.projectreactor.netty:reactor-netty-http:1.3.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.projectreactor:reactor-core:3.7.19=sampleFixture
io.projectreactor:reactor-core:3.8.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.projectreactor:reactor-core:3.8.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-config:1.3.10=sampleFixture
io.prometheus:prometheus-metrics-config:1.4.3=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-config:1.4.3=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-core:1.3.10=sampleFixture
io.prometheus:prometheus-metrics-core:1.4.3=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-core:1.4.3=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-exposition-formats:1.3.10=sampleFixture
io.prometheus:prometheus-metrics-exposition-formats:1.4.3=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-exposition-formats:1.4.3=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-exposition-textformats:1.3.10=sampleFixture
io.prometheus:prometheus-metrics-exposition-textformats:1.4.3=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-exposition-textformats:1.4.3=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-model:1.3.10=sampleFixture
io.prometheus:prometheus-metrics-model:1.4.3=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-model:1.4.3=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-tracer-common:1.3.10=sampleFixture
io.prometheus:prometheus-metrics-tracer-common:1.4.3=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.prometheus:prometheus-metrics-tracer-common:1.4.3=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.smallrye:jandex:3.2.0=sampleFixture
io.swagger.core.v3:swagger-annotations-jakarta:2.2.29=sampleFixture
io.swagger.core.v3:swagger-annotations-jakarta:2.2.38=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.swagger.core.v3:swagger-annotations-jakarta:2.2.38=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.swagger.core.v3:swagger-core-jakarta:2.2.29=sampleFixture
io.swagger.core.v3:swagger-core-jakarta:2.2.38=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.swagger.core.v3:swagger-core-jakarta:2.2.38=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
io.swagger.core.v3:swagger-models-jakarta:2.2.29=sampleFixture
io.swagger.core.v3:swagger-models-jakarta:2.2.38=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
jakarta.activation:jakarta.activation-api:2.1.4=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
io.swagger.core.v3:swagger-models-jakarta:2.2.38=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
jakarta.activation:jakarta.activation-api:2.1.4=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.annotation:jakarta.annotation-api:2.1.1=sampleFixture
jakarta.annotation:jakarta.annotation-api:3.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.inject:jakarta.inject-api:2.0.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
jakarta.annotation:jakarta.annotation-api:3.0.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.inject:jakarta.inject-api:2.0.1=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
jakarta.persistence:jakarta.persistence-api:3.1.0=sampleFixture
jakarta.persistence:jakarta.persistence-api:3.2.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.transaction:jakarta.transaction-api:2.0.1=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.persistence:jakarta.persistence-api:3.2.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.transaction:jakarta.transaction-api:2.0.1=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.validation:jakarta.validation-api:3.0.2=sampleFixture
jakarta.validation:jakarta.validation-api:3.1.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.websocket:jakarta.websocket-api:2.2.0=redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
jakarta.ws.rs:jakarta.ws.rs-api:4.0.0=redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
jakarta.xml.bind:jakarta.xml.bind-api:4.0.4=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.validation:jakarta.validation-api:3.1.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.websocket:jakarta.websocket-api:2.2.0=sampleOffTestCompileClasspath,testCompileClasspath
jakarta.ws.rs:jakarta.ws.rs-api:4.0.0=sampleOffTestCompileClasspath,testCompileClasspath
jakarta.xml.bind:jakarta.xml.bind-api:4.0.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.xml.bind:jakarta.xml.bind-api:4.0.5=sampleFixture
javax.inject:javax.inject:1=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
javax.inject:javax.inject:1=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
jaxen:jaxen:2.0.0=spotbugs
me.paulschwarz:spring-dotenv:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.bytebuddy:byte-buddy-agent:1.17.8=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.bytebuddy:byte-buddy:1.17.8=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.java.dev.jna:jna:5.18.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.logstash.logback:logstash-logback-encoder:8.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.minidev:accessors-smart:2.6.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.minidev:json-smart:2.6.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
me.paulschwarz:spring-dotenv:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.bytebuddy:byte-buddy-agent:1.17.8=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.bytebuddy:byte-buddy:1.17.8=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.java.dev.jna:jna:5.18.1=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.logstash.logback:logstash-logback-encoder:8.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.minidev:accessors-smart:2.6.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.minidev:json-smart:2.6.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.sf.saxon:Saxon-HE:12.9=checkstyle,spotbugs
org.antlr:antlr4-runtime:4.13.2=checkstyle,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.antlr:antlr4-runtime:4.13.2=checkstyle,productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.bcel:bcel:6.12.0=spotbugs
org.apache.commons:commons-compress:1.28.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.20.0=checkstyle,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-compress:1.28.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.20.0=checkstyle,productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.15.0=spotbugs
org.apache.commons:commons-text:1.3=checkstyle
org.apache.httpcomponents.client5:httpclient5:5.5.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.apache.httpcomponents.core5:httpcore5-h2:5.3.6=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.apache.httpcomponents.core5:httpcore5:5.3.6=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.apache.httpcomponents:httpclient:4.5.13=checkstyle,testRuntimeClasspath
org.apache.httpcomponents:httpcore:4.4.16=checkstyle,testRuntimeClasspath
org.apache.kafka:kafka-clients:4.1.1=redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.apache.kafka:kafka-clients:4.1.1=sampleOffTestCompileClasspath,testCompileClasspath
org.apache.logging.log4j:log4j-api:2.24.3=sampleFixture
org.apache.logging.log4j:log4j-api:2.25.2=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
org.apache.logging.log4j:log4j-api:2.25.2=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
org.apache.logging.log4j:log4j-core:2.25.2=spotbugs
org.apache.logging.log4j:log4j-to-slf4j:2.24.3=sampleFixture
org.apache.logging.log4j:log4j-to-slf4j:2.25.2=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.logging.log4j:log4j-to-slf4j:2.25.2=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.maven.doxia:doxia-core:1.12.0=checkstyle
org.apache.maven.doxia:doxia-logging-api:1.12.0=checkstyle
org.apache.maven.doxia:doxia-module-xdoc:1.12.0=checkstyle
org.apache.maven.doxia:doxia-sink-api:1.12.0=checkstyle
org.apache.tomcat.embed:tomcat-embed-core:10.1.55=sampleFixture
org.apache.tomcat.embed:tomcat-embed-core:11.0.14=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-core:11.0.14=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-el:10.1.55=sampleFixture
org.apache.tomcat.embed:tomcat-embed-el:11.0.14=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-el:11.0.14=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-websocket:10.1.55=sampleFixture
org.apache.tomcat.embed:tomcat-embed-websocket:11.0.14=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.tomcat.embed:tomcat-embed-websocket:11.0.14=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.xbean:xbean-reflect:3.7=checkstyle
org.apiguardian:apiguardian-api:1.1.2=redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.aspectj:aspectjweaver:1.9.25=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apiguardian:apiguardian-api:1.1.2=conditionalTransportTestCompileClasspath,functionalTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.aspectj:aspectjweaver:1.9.25=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.aspectj:aspectjweaver:1.9.25.1=sampleFixture
org.assertj:assertj-core:3.27.6=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.awaitility:awaitility:4.3.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.checkerframework:checker-qual:3.49.5=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.assertj:assertj-core:3.27.6=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.awaitility:awaitility:4.3.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.checkerframework:checker-qual:3.42.0=conditionalTransportTestRuntimeClasspath
org.checkerframework:checker-qual:3.49.5=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.codehaus.mojo:animal-sniffer-annotations:1.24=conditionalTransportTestRuntimeClasspath
org.codehaus.plexus:plexus-classworlds:2.6.0=checkstyle
org.codehaus.plexus:plexus-component-annotations:2.1.0=checkstyle
org.codehaus.plexus:plexus-container-default:2.1.0=checkstyle
org.codehaus.plexus:plexus-utils:3.3.0=checkstyle
org.dom4j:dom4j:2.2.0=spotbugs
org.eclipse.angus:angus-activation:2.0.3=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.flywaydb:flyway-core:11.14.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.eclipse.angus:angus-activation:2.0.3=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.eclipse.jetty.compression:jetty-compression-common:12.1.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.eclipse.jetty.compression:jetty-compression-gzip:12.1.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.eclipse.jetty:jetty-alpn-client:12.1.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.eclipse.jetty:jetty-client:12.1.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.eclipse.jetty:jetty-http:12.1.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.eclipse.jetty:jetty-io:12.1.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.eclipse.jetty:jetty-util:12.1.4=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.flywaydb:flyway-core:11.14.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.flywaydb:flyway-core:11.7.2=sampleFixture
org.flywaydb:flyway-database-postgresql:11.14.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.flywaydb:flyway-database-postgresql:11.14.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.flywaydb:flyway-database-postgresql:11.7.2=sampleFixture
org.glassfish.jaxb:jaxb-core:4.0.6=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.glassfish.jaxb:jaxb-core:4.0.6=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.glassfish.jaxb:jaxb-core:4.0.9=sampleFixture
org.glassfish.jaxb:jaxb-runtime:4.0.6=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.glassfish.jaxb:jaxb-runtime:4.0.6=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.glassfish.jaxb:jaxb-runtime:4.0.9=sampleFixture
org.glassfish.jaxb:txw2:4.0.6=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.glassfish.jaxb:txw2:4.0.6=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.glassfish.jaxb:txw2:4.0.9=sampleFixture
org.hamcrest:hamcrest:3.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hdrhistogram:HdrHistogram:2.2.2=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.hamcrest:hamcrest:3.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hdrhistogram:HdrHistogram:2.2.2=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.hibernate.common:hibernate-commons-annotations:7.0.3.Final=sampleFixture
org.hibernate.models:hibernate-models:1.0.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.hibernate.models:hibernate-models:1.0.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.hibernate.orm:hibernate-core:6.6.53.Final=sampleFixture
org.hibernate.orm:hibernate-core:7.1.8.Final=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hibernate.orm:hibernate-core:7.1.8.Final=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hibernate.validator:hibernate-validator:8.0.3.Final=sampleFixture
org.hibernate.validator:hibernate-validator:9.0.1.Final=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hibernate.validator:hibernate-validator:9.0.1.Final=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.javassist:javassist:3.28.0-GA=checkstyle
org.jboss.logging:jboss-logging:3.6.1.Final=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jboss.logging:jboss-logging:3.6.1.Final=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jboss.logging:jboss-logging:3.6.3.Final=sampleFixture
org.jetbrains.kotlin:kotlin-stdlib-common:1.9.25=sampleFixture
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.25=sampleFixture
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.25=sampleFixture
org.jetbrains.kotlin:kotlin-stdlib:1.9.25=sampleFixture
org.jetbrains.kotlin:kotlin-stdlib:2.2.21=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.jetbrains.kotlin:kotlin-stdlib:2.2.21=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.jetbrains:annotations:13.0=productionRuntimeClasspath,runtimeClasspath,sampleFixture
org.jetbrains:annotations:17.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jspecify:jspecify:1.0.0=annotationProcessor,checkstyle,compileClasspath,productionRuntimeClasspath,redisCompositionTestAnnotationProcessor,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestAnnotationProcessor,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter-api:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter-engine:6.0.1=redisCompositionTestRuntimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter-params:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-commons:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-engine:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-launcher:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-testkit:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit:junit-bom:6.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jetbrains:annotations:17.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jspecify:jspecify:1.0.0=annotationProcessor,checkstyle,compileClasspath,conditionalTransportTestAnnotationProcessor,conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestAnnotationProcessor,functionalTestCompileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestAnnotationProcessor,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter-api:6.0.1=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter-engine:6.0.1=conditionalTransportTestRuntimeClasspath,functionalTestRuntimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter-params:6.0.1=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.jupiter:junit-jupiter:6.0.1=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-commons:6.0.1=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-engine:6.0.1=conditionalTransportTestRuntimeClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-launcher:6.0.1=conditionalTransportTestRuntimeClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-testkit:6.0.1=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit:junit-bom:6.0.1=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit:junit-bom:6.1.0=spotbugs
org.latencyutils:LatencyUtils:2.0.3=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.mockito:mockito-core:5.20.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.mockito:mockito-junit-jupiter:5.20.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.objenesis:objenesis:3.3=redisCompositionTestRuntimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.openapitools:jackson-databind-nullable:0.2.6=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.opentest4j:opentest4j:1.3.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.osgi:org.osgi.annotation.bundle:2.0.0=compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.osgi:org.osgi.annotation.versioning:1.1.2=compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.osgi:org.osgi.resource:1.0.0=compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.osgi:org.osgi.service.serviceloader:1.0.0=compileClasspath,redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.latencyutils:LatencyUtils:2.0.3=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.mockito:mockito-core:5.20.0=mockitoAgent,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.mockito:mockito-junit-jupiter:5.20.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.objenesis:objenesis:3.3=sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.openapitools:jackson-databind-nullable:0.2.6=productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.opentest4j:opentest4j:1.3.0=conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,functionalTestCompileClasspath,functionalTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.osgi:org.osgi.annotation.bundle:2.0.0=compileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.osgi:org.osgi.annotation.versioning:1.1.2=compileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.osgi:org.osgi.resource:1.0.0=compileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.osgi:org.osgi.service.serviceloader:1.0.0=compileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.ow2.asm:asm-analysis:9.10.1=spotbugs
org.ow2.asm:asm-commons:9.10.1=spotbugs
org.ow2.asm:asm-tree:9.10.1=spotbugs
org.ow2.asm:asm-util:9.10.1=spotbugs
org.ow2.asm:asm:9.10.1=spotbugs
org.ow2.asm:asm:9.7.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.pcollections:pcollections:4.0.1=annotationProcessor,redisCompositionTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
org.ow2.asm:asm:9.7.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.pcollections:pcollections:4.0.1=annotationProcessor,conditionalTransportTestAnnotationProcessor,functionalTestAnnotationProcessor,sampleOffTestAnnotationProcessor,testAnnotationProcessor
org.postgresql:postgresql:42.7.11=sampleFixture
org.postgresql:postgresql:42.7.8=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.reactivestreams:reactive-streams:1.0.4=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.postgresql:postgresql:42.7.8=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.reactivestreams:reactive-streams:1.0.4=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleFixture,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.reflections:reflections:0.10.2=checkstyle
org.rnorth.duct-tape:duct-tape:1.0.8=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.skyscreamer:jsonassert:1.5.3=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.slf4j:jul-to-slf4j:2.0.17=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.rnorth.duct-tape:duct-tape:1.0.8=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.skyscreamer:jsonassert:1.5.3=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.slf4j:jul-to-slf4j:2.0.17=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.slf4j:jul-to-slf4j:2.0.18=sampleFixture
org.slf4j:slf4j-api:2.0.17=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,spotbugs,spotbugsSlf4j,testCompileClasspath,testRuntimeClasspath
org.slf4j:slf4j-api:2.0.17=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,spotbugs,spotbugsSlf4j,testCompileClasspath,testRuntimeClasspath
org.slf4j:slf4j-api:2.0.18=sampleFixture
org.slf4j:slf4j-simple:2.0.17=checkstyle,spotbugsSlf4j
org.springdoc:springdoc-openapi-starter-common:2.8.6=sampleFixture
org.springdoc:springdoc-openapi-starter-common:3.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springdoc:springdoc-openapi-starter-common:3.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springdoc:springdoc-openapi-starter-webmvc-api:2.8.6=sampleFixture
org.springdoc:springdoc-openapi-starter-webmvc-api:3.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springdoc:springdoc-openapi-starter-webmvc-api:3.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-actuator-autoconfigure:3.5.16=sampleFixture
org.springframework.boot:spring-boot-actuator-autoconfigure:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-actuator-autoconfigure:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-actuator:3.5.16=sampleFixture
org.springframework.boot:spring-boot-actuator:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-actuator:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-autoconfigure:3.5.16=sampleFixture
org.springframework.boot:spring-boot-autoconfigure:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-autoconfigure:4.0.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-configuration-processor:4.0.0=annotationProcessor
org.springframework.boot:spring-boot-data-commons:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-data-jpa-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-data-jpa:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-flyway:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-health:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-hibernate:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-http-client:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-http-converter:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jackson:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jdbc-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jdbc:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jpa-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jpa:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-micrometer-metrics:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-micrometer-observation:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-persistence:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-restclient:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-resttestclient:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-security-oauth2-resource-server:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-security:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-servlet:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-sql:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-data-commons:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-data-jpa-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-data-jpa:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-flyway:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-graphql:4.0.0=conditionalTransportTestRuntimeClasspath
org.springframework.boot:spring-boot-health:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-hibernate:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-http-client:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-http-converter:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jackson:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jdbc-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jdbc:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jpa-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-jpa:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-micrometer-metrics:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-micrometer-observation:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-persistence:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-restclient:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-resttestclient:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-security-oauth2-resource-server:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-security:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-servlet:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-sql:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-actuator:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-actuator:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-actuator:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-data-jpa:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-data-jpa:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-flyway:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jackson-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jackson:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-data-jpa:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-flyway:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-graphql:4.0.0=conditionalTransportTestRuntimeClasspath
org.springframework.boot:spring-boot-starter-jackson-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jackson:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jdbc:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-jdbc:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-jdbc:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-json:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-json:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-json:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-logging:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-logging:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-micrometer-metrics:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-logging:4.0.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-micrometer-metrics:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-oauth2-resource-server:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-oauth2-resource-server:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-oauth2-resource-server:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-security:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-security:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat-runtime:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-security:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat-runtime:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-tomcat:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-tomcat:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-validation:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-validation:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-validation:4.0.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-web:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter-web:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-webmvc-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-webmvc:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-web:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-webmvc-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-webmvc:4.0.0=conditionalTransportTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter-websocket:4.0.0=conditionalTransportTestRuntimeClasspath
org.springframework.boot:spring-boot-starter:3.5.16=sampleFixture
org.springframework.boot:spring-boot-starter:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-test-autoconfigure:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-tomcat:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-transaction:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-validation:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-web-server:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-webmvc-test:4.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-webmvc:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-starter:4.0.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-test-autoconfigure:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-tomcat:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-transaction:4.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-validation:4.0.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-web-server:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-webmvc-test:4.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-webmvc:4.0.0=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.boot:spring-boot-websocket:4.0.0=conditionalTransportTestRuntimeClasspath
org.springframework.boot:spring-boot:3.5.16=sampleFixture
org.springframework.boot:spring-boot:4.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.cloud:spring-cloud-context:4.1.4=redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.springframework.boot:spring-boot:4.0.0=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.cloud:spring-cloud-context:4.1.4=sampleOffTestCompileClasspath,testCompileClasspath
org.springframework.data:spring-data-commons:3.5.13=sampleFixture
org.springframework.data:spring-data-commons:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.data:spring-data-commons:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.data:spring-data-jpa:3.5.13=sampleFixture
org.springframework.data:spring-data-jpa:4.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.data:spring-data-keyvalue:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.data:spring-data-redis:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.data:spring-data-jpa:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.graphql:spring-graphql:2.0.0=conditionalTransportTestRuntimeClasspath
org.springframework.integration:spring-integration-core:6.5.10=sampleFixture
org.springframework.integration:spring-integration-core:7.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.integration:spring-integration-core:7.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.integration:spring-integration-jdbc:6.5.10=sampleFixture
org.springframework.integration:spring-integration-jdbc:7.0.0=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.integration:spring-integration-jdbc:7.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.retry:spring-retry:2.0.13=sampleFixture
org.springframework.security:spring-security-config:6.5.11=sampleFixture
org.springframework.security:spring-security-config:7.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-config:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-core:6.5.11=sampleFixture
org.springframework.security:spring-security-core:7.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-core:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-crypto:6.5.11=sampleFixture
org.springframework.security:spring-security-crypto:7.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-crypto:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-oauth2-client:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-oauth2-core:6.5.11=sampleFixture
org.springframework.security:spring-security-oauth2-core:7.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.security:spring-security-oauth2-core:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-oauth2-jose:6.5.11=sampleFixture
org.springframework.security:spring-security-oauth2-jose:7.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.security:spring-security-oauth2-jose:7.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.security:spring-security-oauth2-resource-server:6.5.11=sampleFixture
org.springframework.security:spring-security-oauth2-resource-server:7.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.security:spring-security-test:7.0.0=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-oauth2-resource-server:7.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.security:spring-security-test:7.0.0=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.security:spring-security-web:6.5.11=sampleFixture
org.springframework.security:spring-security-web:7.0.0=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.session:spring-session-core:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.session:spring-session-data-redis:4.0.0=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework.security:spring-security-web:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework.session:spring-session-core:4.0.0=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework:spring-aop:6.2.19=sampleFixture
org.springframework:spring-aop:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-aop:7.0.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-aspects:6.2.19=sampleFixture
org.springframework:spring-aspects:7.0.1=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-aspects:7.0.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-beans:6.2.19=sampleFixture
org.springframework:spring-beans:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-context-support:7.0.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework:spring-beans:7.0.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-context:6.2.19=sampleFixture
org.springframework:spring-context:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-context:7.0.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-core:6.2.19=sampleFixture
org.springframework:spring-core:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-core:7.0.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-expression:6.2.19=sampleFixture
org.springframework:spring-expression:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-expression:7.0.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-jcl:6.2.19=sampleFixture
org.springframework:spring-jdbc:6.2.19=sampleFixture
org.springframework:spring-jdbc:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-jdbc:7.0.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-messaging:6.2.19=sampleFixture
org.springframework:spring-messaging:7.0.1=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-messaging:7.0.1=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-orm:6.2.19=sampleFixture
org.springframework:spring-orm:7.0.1=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-oxm:7.0.1=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework:spring-test:7.0.1=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-orm:7.0.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-test:7.0.1=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-tx:6.2.19=sampleFixture
org.springframework:spring-tx:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-tx:7.0.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-web:6.2.19=sampleFixture
org.springframework:spring-web:7.0.1=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-web:7.0.1=compileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-webflux:7.0.1=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.springframework:spring-webmvc:6.2.19=sampleFixture
org.springframework:spring-webmvc:7.0.1=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-websocket:7.0.1=redisCompositionTestCompileClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.testcontainers:testcontainers-database-commons:2.0.2=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers-jdbc:2.0.2=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers-junit-jupiter:2.0.2=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers-postgresql:2.0.2=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers:2.0.2=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-webmvc:7.0.1=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.springframework:spring-websocket:7.0.1=conditionalTransportTestRuntimeClasspath,sampleOffTestCompileClasspath,testCompileClasspath
org.testcontainers:testcontainers-database-commons:2.0.2=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers-jdbc:2.0.2=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers-junit-jupiter:2.0.2=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers-postgresql:2.0.2=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.testcontainers:testcontainers:2.0.2=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.xmlresolver:xmlresolver:5.3.3=checkstyle,spotbugs
org.xmlunit:xmlunit-core:2.10.4=redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.xmlunit:xmlunit-core:2.10.4=sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.yaml:snakeyaml:2.4=sampleFixture
org.yaml:snakeyaml:2.5=compileClasspath,productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
redis.clients.authentication:redis-authx-core:0.1.1-beta2=productionRuntimeClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
org.yaml:snakeyaml:2.5=compileClasspath,conditionalTransportTestCompileClasspath,conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
redis.clients.authentication:redis-authx-core:0.1.1-beta2=productionRuntimeClasspath,runtimeClasspath,sampleOffTestRuntimeClasspath,testRuntimeClasspath
software.amazon.awssdk:annotations:2.30.0=testRuntimeClasspath
software.amazon.awssdk:apache-client:2.30.0=testRuntimeClasspath
software.amazon.awssdk:arns:2.30.0=testRuntimeClasspath
@@ -476,7 +522,7 @@ software.amazon.awssdk:sdk-core:2.30.0=testRuntimeClasspath
software.amazon.awssdk:third-party-jackson-core:2.30.0=testRuntimeClasspath
software.amazon.awssdk:utils:2.30.0=testRuntimeClasspath
software.amazon.eventstream:eventstream:1.0.1=testRuntimeClasspath
tools.jackson.core:jackson-core:3.0.2=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
tools.jackson.core:jackson-databind:3.0.2=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
tools.jackson:jackson-bom:3.0.2=productionRuntimeClasspath,redisCompositionTestCompileClasspath,redisCompositionTestRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
tools.jackson.core:jackson-core:3.0.2=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
tools.jackson.core:jackson-databind:3.0.2=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
tools.jackson:jackson-bom:3.0.2=conditionalTransportTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,sampleOffTestCompileClasspath,sampleOffTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
empty=developmentOnly,testAndDevelopmentOnly
@@ -0,0 +1,82 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DefaultDynamicTargetGateway;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicCredentialBinding;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicTargetGateway;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicTargetPolicy;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicTargetPolicyName;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.IpAddressClassifier;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.ValidatedDnsResolver;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import dev.caskeleton.adapter.outbound.httpclient.restclient.BlockingAttemptExecutor;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* H3 Dynamic Target wiring (design §9.4, §22).
*
* <p>With no configured policy the gateway exists but can reach nothing: every call needs a named
* policy, and an unregistered name is an error rather than a permissive default.
*/
@Configuration(proxyBeanMethods = false)
public class DynamicTargetAutoConfiguration {
@Bean
@ConditionalOnMissingBean(name = "dynamicTargetPolicies")
Map<DynamicTargetPolicyName, DynamicTargetPolicy> dynamicTargetPolicies(
HttpClientPlatformSettings properties) {
Map<DynamicTargetPolicyName, DynamicTargetPolicy> policies = new LinkedHashMap<>();
for (HttpClientPlatformSettings.DynamicTargetSettings target : properties.dynamicTargets()) {
DynamicTargetPolicyName name = new DynamicTargetPolicyName(target.name());
policies.put(
name,
new DynamicTargetPolicy(
name,
Set.copyOf(target.allowedSchemes()),
Set.copyOf(target.allowedPorts()),
Set.copyOf(target.allowedHostSuffixes()),
Set.copyOf(target.allowedHosts()),
target.maxRedirectHops(),
target.tracePropagation(),
List.copyOf(target.blockedCidrs())));
}
return Map.copyOf(policies);
}
@Bean
@ConditionalOnMissingBean(name = "dynamicTargetResolvers")
Map<DynamicTargetPolicyName, ValidatedDnsResolver> dynamicTargetResolvers(
HttpClientPlatformSettings properties) {
Map<DynamicTargetPolicyName, ValidatedDnsResolver> resolvers = new LinkedHashMap<>();
for (HttpClientPlatformSettings.DynamicTargetSettings target : properties.dynamicTargets()) {
resolvers.put(
new DynamicTargetPolicyName(target.name()),
new ValidatedDnsResolver(new IpAddressClassifier(target.blockedCidrs())));
}
return Map.copyOf(resolvers);
}
@Bean
@ConditionalOnMissingBean
DynamicTargetGateway dynamicTargetGateway(
Map<DynamicTargetPolicyName, DynamicTargetPolicy> dynamicTargetPolicies,
Map<DynamicTargetPolicyName, ValidatedDnsResolver> dynamicTargetResolvers,
ClientRuntimeRegistry runtimes,
BlockingAttemptExecutor executor,
List<DynamicCredentialBinding> dynamicCredentialBindings,
Function<String, String> httpClientSecretResolver) {
return new DefaultDynamicTargetGateway(
dynamicTargetPolicies,
dynamicTargetResolvers,
runtimes,
executor,
dynamicCredentialBindings,
httpClientSecretResolver);
}
}
@@ -0,0 +1,71 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientProfile;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntime;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.TreeMap;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
/**
* Operational view of the configured HTTP clients (design §27.3).
*
* <p>The exposed set is deliberately narrow. Base URL, credential values, trust store paths, and
* resolved IPs are absent because an actuator endpoint is reachable by more people than a secret
* store is, and "read-only" is not the same as "safe to publish".
*/
@Endpoint(id = "httpclients")
public class HttpClientActuatorEndpoint {
private final ClientRuntimeRegistry runtimes;
public HttpClientActuatorEndpoint(ClientRuntimeRegistry runtimes) {
this.runtimes = Objects.requireNonNull(runtimes, "client runtime registry");
}
@ReadOperation
public Map<String, Object> clients() {
Map<String, Object> report = new TreeMap<>();
runtimes
.names()
.forEach(
name -> {
ClientRuntime runtime = runtimes.current(name);
ClientProfile profile = runtime.profile();
Map<String, Object> entry = new LinkedHashMap<>();
entry.put("generation", runtime.generation().value());
entry.put("state", runtime.state().name());
entry.put("transport", profile.transport().name());
entry.put("api", profile.api().name());
entry.put(
"protocols", profile.protocols().stream().map(Enum::name).sorted().toList());
entry.put("activeLeases", runtime.activeLeases());
entry.put("maxTotalConnections", profile.pool().maxTotalConnections());
entry.put("credentialType", profile.authentication().type().name());
entry.put("tlsProfileId", profile.tls().profileId().orElse("jvm-default"));
entry.put("redirectEnabled", profile.redirect().enabled());
entry.put("retryPolicy", profile.retry().policy());
entry.put("capabilityWarnings", capabilityWarnings(profile));
report.put(name.value(), entry);
});
return Map.copyOf(report);
}
private List<String> capabilityWarnings(ClientProfile profile) {
List<String> warnings = new java.util.ArrayList<>();
if (profile.experimentalAcknowledgement().isPresent()) {
warnings.add("EXPERIMENTAL_TRANSPORT_ACKNOWLEDGED");
}
if (profile.redirect().enabled() && profile.redirect().allowCrossOrigin()) {
warnings.add("CROSS_ORIGIN_REDIRECT_ENABLED");
}
if (profile.observability().bodyLogging()) {
warnings.add("BODY_LOGGING_ENABLED");
}
return List.copyOf(warnings);
}
}
@@ -0,0 +1,88 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.auth.ApiKeyHeaderCredentialProvider;
import dev.caskeleton.adapter.outbound.httpclient.auth.BasicCredentialProvider;
import dev.caskeleton.adapter.outbound.httpclient.auth.CredentialProviderRegistry;
import dev.caskeleton.adapter.outbound.httpclient.auth.NoAuthCredentialProvider;
import dev.caskeleton.adapter.outbound.httpclient.auth.OAuth2CredentialProvider;
import dev.caskeleton.adapter.outbound.httpclient.auth.ReactiveCredentialProviderRegistry;
import dev.caskeleton.adapter.outbound.httpclient.auth.ReactiveRequestCredentialProvider;
import dev.caskeleton.adapter.outbound.httpclient.auth.StaticBearerCredentialProvider;
import java.time.Clock;
import java.util.Set;
import java.util.function.Function;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager;
/**
* Credential providers for the declared authentication types (design §20).
*
* <p>Secret retrieval is an injected function, not a file path in configuration: design §21.2
* forbids key material in config files, and this keeps the platform unaware of where secrets live.
* OAuth2 is registered only when an authorized client manager exists, so an unconfigured deployment
* fails at startup validation rather than at the first call.
*/
@Configuration(proxyBeanMethods = false)
public class HttpClientAuthenticationAutoConfiguration {
/** Header names an API-key profile may use; anything else is rejected (design §20.1). */
private static final Set<String> ALLOWED_API_KEY_HEADERS =
Set.of("X-Api-Key", "Api-Key", "X-Client-Key");
@Bean
@ConditionalOnMissingBean(name = "httpClientSecretResolver")
Function<String, String> httpClientSecretResolver() {
return reference -> {
throw new IllegalStateException(
"no http client secret resolver is configured for reference '" + reference + "'");
};
}
@Bean
@ConditionalOnMissingBean
CredentialProviderRegistry httpClientCredentialProviderRegistry(
Function<String, String> httpClientSecretResolver,
ObjectProvider<OAuth2AuthorizedClientManager> authorizedClientManager,
Clock clock) {
CredentialProviderRegistry registry =
new CredentialProviderRegistry()
.register(new NoAuthCredentialProvider())
.register(new BasicCredentialProvider(httpClientSecretResolver))
.register(
new ApiKeyHeaderCredentialProvider(
ALLOWED_API_KEY_HEADERS, httpClientSecretResolver))
.register(new StaticBearerCredentialProvider(httpClientSecretResolver));
authorizedClientManager.ifAvailable(
manager -> registry.register(new OAuth2CredentialProvider(manager, clock)));
return registry;
}
/**
* The reactive counterpart of the blocking registry.
*
* <p>This used to be {@code fromNonBlocking(new NoAuthCredentialProvider())} — unconditionally,
* for every profile. A reactive profile that declared BASIC, an API key or a static bearer
* therefore sent no credential at all, and nothing said so: the request went out anonymous and
* the 401 came back looking like an upstream problem.
*
* <p>The three mechanisms registered here resolve a secret and format a header; that is
* computation, not I/O, so wrapping the synchronous provider is honest rather than a disguised
* block. OAuth2 is deliberately absent — a token load is a network round trip and there is no
* non-blocking implementation of it, so {@code HttpClientStartupValidator} refuses the
* combination at startup instead of letting it fail on the first call.
*/
@Bean
@ConditionalOnMissingBean
ReactiveRequestCredentialProvider httpClientReactiveCredentialProvider(
Function<String, String> httpClientSecretResolver) {
return new ReactiveCredentialProviderRegistry()
.registerNonBlocking(new NoAuthCredentialProvider())
.registerNonBlocking(new BasicCredentialProvider(httpClientSecretResolver))
.registerNonBlocking(
new ApiKeyHeaderCredentialProvider(ALLOWED_API_KEY_HEADERS, httpClientSecretResolver))
.registerNonBlocking(new StaticBearerCredentialProvider(httpClientSecretResolver));
}
}
@@ -0,0 +1,178 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.RecordComponent;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;
import org.springframework.core.env.PropertySource;
import org.springframework.core.env.SystemEnvironmentPropertySource;
/**
* The environment surface of {@link HttpClientPlatformSettings}, derived from the record tree.
*
* <p>This exists because strict binding cannot see a misspelled environment variable. Spring
* resolves {@code APP_HTTPCLIENT_CLIENTS_0_BASE_URL} to {@code app.httpclient.clients[0].base-url}
* by mapping the requested property name back to an environment name, but it <em>enumerates</em>
* the same variable as {@code app.httpclient.clients[0].base.url} — underscores become dots, never
* hyphens. {@code NoUnboundElementsBindHandler} compares against that enumeration, so pointing it
* at the system environment reports correctly-spelled variables as unbound while still saying
* nothing about a genuinely misspelled one. The check therefore runs the other way round: derive
* the names the settings tree accepts, and reject an {@code APP_HTTPCLIENT_} variable that is not
* among them.
*
* <p>Without it {@code APP_HTTPCLIENT_CLIENTS_0_TIMEUOT_TOTAL_CALL} would leave the client running
* the default four-second budget while the deployment's manifest says six, and nothing anywhere
* would mention it.
*/
final class HttpClientEnvironmentKeys {
/** Environment form of {@link HttpClientPlatformSettings#PREFIX}, with its trailing separator. */
static final String ENV_PREFIX = "APP_HTTPCLIENT_";
/** Deepest list nesting {@link #indexLetter} can name. */
private static final int MAXIMUM_LIST_DEPTH = 1;
private static final java.util.regex.Pattern SEGMENT_SEPARATOR =
java.util.regex.Pattern.compile("_");
private HttpClientEnvironmentKeys() {}
/**
* Maps each leaf property path to the environment variable template that sets it.
*
* <p>A list index is rendered as a letter rather than a number, so the result describes a
* template rather than one deployment's cardinality: {@code N} for the outermost list, {@code M}
* inside it.
*
* @return leaf property path to environment variable template, in declaration order
*/
static Map<String, String> fieldToEnvTemplate() {
Map<String, String> templates = new LinkedHashMap<>();
collect(HttpClientPlatformSettings.class, "APP_HTTPCLIENT", "", 0, templates);
return templates;
}
/**
* Refuses an {@code APP_HTTPCLIENT_} variable that maps to no field.
*
* @param environment the environment to inspect; sources other than the system environment are
* covered by strict binding and are not re-checked here
* @throws IllegalStateException listing every unrecognised variable, so an operator fixes them in
* one pass rather than one restart at a time
*/
static void rejectUnrecognised(Environment environment) {
if (!(environment instanceof ConfigurableEnvironment configurable)) {
return;
}
Set<String> accepted = Set.copyOf(fieldToEnvTemplate().values());
Set<String> unrecognised = new TreeSet<>();
for (PropertySource<?> source : configurable.getPropertySources()) {
if (!(source instanceof SystemEnvironmentPropertySource environmentSource)) {
continue;
}
for (String name : environmentSource.getPropertyNames()) {
String canonical = name.toUpperCase(Locale.ROOT);
if (canonical.startsWith(ENV_PREFIX) && !accepted.contains(asTemplate(canonical))) {
unrecognised.add(name);
}
}
}
if (!unrecognised.isEmpty()) {
throw new IllegalStateException(
"unrecognised HTTP client environment variables "
+ unrecognised
+ "; see docs/httpclient/env-fields.yaml for the accepted names");
}
}
/**
* Replaces each index with the letter its depth uses, so a concrete variable can be looked up.
*
* <p>Only a wholly numeric segment is an index. A field whose name happens to end in digits stays
* literal, which is why {@code DRAFT12} would not be mistaken for a position.
*/
private static String asTemplate(String environmentName) {
// -1 keeps trailing empty segments, so a stray trailing underscore stays visible and is
// rejected rather than normalised away into a name that happens to match.
String[] segments = SEGMENT_SEPARATOR.split(environmentName, -1);
int listDepth = 0;
StringBuilder template = new StringBuilder(environmentName.length());
for (int index = 0; index < segments.length; index++) {
if (index > 0) {
template.append('_');
}
String segment = segments[index];
if (!segment.isEmpty() && segment.chars().allMatch(Character::isDigit)) {
if (listDepth > MAXIMUM_LIST_DEPTH) {
// Deeper than any field can express, so it cannot name one. Left literal, which no
// template matches, so the variable is reported rather than silently accepted.
template.append(segment);
continue;
}
template.append(indexLetter(listDepth));
listDepth++;
} else {
template.append(segment);
}
}
return template.toString();
}
private static void collect(
Class<?> type, String envPrefix, String pathPrefix, int listDepth, Map<String, String> into) {
for (RecordComponent component : type.getRecordComponents()) {
String property = camelToKebab(component.getName());
String path = pathPrefix.isEmpty() ? property : pathPrefix + "." + property;
String env = envPrefix + "_" + camelToScreamingSnake(component.getName());
Class<?> componentType = component.getType();
if (componentType.isRecord()) {
collect(componentType, env, path, listDepth, into);
continue;
}
if (List.class.isAssignableFrom(componentType)) {
String index = indexLetter(listDepth);
Class<?> element = elementTypeOf(component);
if (element != null && element.isRecord()) {
collect(element, env + "_" + index, path + "[" + index + "]", listDepth + 1, into);
} else {
into.put(path + "[" + index + "]", env + "_" + index);
}
continue;
}
into.put(path, env);
}
}
/** {@code N} for the outermost list, {@code M} inside it. No settings field nests deeper. */
private static String indexLetter(int depth) {
return switch (depth) {
case 0 -> "N";
case 1 -> "M";
default ->
throw new IllegalStateException(
"list nesting deeper than the environment template can express");
};
}
private static Class<?> elementTypeOf(RecordComponent component) {
if (component.getGenericType() instanceof ParameterizedType parameterized
&& parameterized.getActualTypeArguments()[0] instanceof Class<?> element) {
return element;
}
return null;
}
private static String camelToKebab(String name) {
return name.replaceAll("([a-z0-9])([A-Z])", "$1-$2").toLowerCase(Locale.ROOT);
}
private static String camelToScreamingSnake(String name) {
return name.replaceAll("([a-z0-9])([A-Z])", "$1_$2").toUpperCase(Locale.ROOT);
}
}
@@ -0,0 +1,22 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Registers the {@code httpclients} actuator endpoint only when it is actually exposed (design
* §27.3).
*/
@Configuration(proxyBeanMethods = false)
public class HttpClientManagementAutoConfiguration {
@Bean
@ConditionalOnMissingBean
@ConditionalOnAvailableEndpoint(endpoint = HttpClientActuatorEndpoint.class)
HttpClientActuatorEndpoint httpClientActuatorEndpoint(ClientRuntimeRegistry runtimes) {
return new HttpClientActuatorEndpoint(runtimes);
}
}
@@ -0,0 +1,36 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.observation.HttpClientTagPolicy;
import dev.caskeleton.adapter.outbound.httpclient.restclient.BlockingExecutionSupport;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import java.time.Clock;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Observation vocabulary and the shared execution collaborators (design §25).
*
* <p>A registry is always present: the platform records the separation between logical calls and
* physical attempts unconditionally, because that distinction is what makes a retry-heavy incident
* readable afterwards.
*/
@Configuration(proxyBeanMethods = false)
public class HttpClientObservationAutoConfiguration {
@Bean
@ConditionalOnMissingBean
HttpClientTagPolicy httpClientTagPolicy() {
return HttpClientTagPolicy.standard();
}
@Bean
@ConditionalOnMissingBean
BlockingExecutionSupport httpClientExecutionSupport(
Clock clock, ObjectProvider<MeterRegistry> meterRegistry) {
return BlockingExecutionSupport.standard(
clock, meterRegistry.getIfAvailable(SimpleMeterRegistry::new));
}
}
@@ -0,0 +1,61 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.core.env.Environment;
/**
* The one entry point through which the HTTP Client platform exists at all.
*
* <p>This is an auto-configuration rather than a component-scanned {@code @Configuration}, and it
* lives in a package the composition root's scan explicitly excludes. That is the whole point: when
* the master switch is absent or false the class is never processed, so none of the configurations
* it imports are discovered either. No property is bound, no transport provider is constructed, no
* connection pool, TLS context, credential, thread or gateway exists, and a malformed HTTP setting
* in a deployment that never wanted outbound HTTP cannot fail its startup.
*
* <p>The previous shape had nine independently annotated {@code @Configuration} classes inside the
* scanned package. Wrapping them in a conditional parent would have changed nothing — the component
* scanner finds each child on its own — so the children had to leave the scan together with the
* switch. That is why this is a package move rather than an annotation.
*
* <p>The actuator endpoint is imported here for the same reason, so a deployment cannot expose a
* report about a platform it never enabled.
*/
@AutoConfiguration
@ConditionalOnProperty(
prefix = HttpClientPlatformSettings.PREFIX,
name = "enabled",
havingValue = "true")
@Import({
HttpClientResilienceAutoConfiguration.class,
HttpClientSecurityAutoConfiguration.class,
HttpClientAuthenticationAutoConfiguration.class,
HttpClientObservationAutoConfiguration.class,
HttpClientTransportAutoConfiguration.class,
HttpClientProfileAutoConfiguration.class,
HttpServiceClientAutoConfiguration.class,
DynamicTargetAutoConfiguration.class,
HttpClientManagementAutoConfiguration.class
})
public class HttpClientPlatformAutoConfiguration {
/**
* Binds the platform settings once the master switch has already been proven true.
*
* <p>Binding is deliberately not delegated to {@code @ConfigurationPropertiesScan}: that would
* bind — and reject — HTTP client detail settings in deployments that never switched the
* capability on.
*
* @param environment the property sources to bind from
* @return the strictly bound settings
*/
@Bean
@ConditionalOnMissingBean
HttpClientPlatformSettings httpClientPlatformSettings(Environment environment) {
return HttpClientPlatformSettingsBinder.bind(environment);
}
}
@@ -0,0 +1,241 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import java.time.Duration;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.springframework.boot.context.properties.bind.DefaultValue;
/**
* The whole {@code app.httpclient} surface, bound once, strictly, and only while the platform is
* on.
*
* <p>Deliberately <em>not</em> annotated {@code @ConfigurationProperties}. The composition root's
* {@code @ConfigurationPropertiesScan} is not selective and cannot be made selective per
* deployment, so an annotated class is registered — and bound, and able to fail startup — in every
* deployment, including one that never makes an outbound HTTP call. That is precisely the coupling
* the master switch exists to remove, so binding is done by {@link
* HttpClientPlatformSettingsBinder} from inside the gated auto-configuration and "off" means "never
* bound".
*
* <p>Clients and dynamic targets are indexed lists carrying their own {@code name} rather than maps
* keyed by name. A map key becomes a segment of the environment variable name, and the relaxed
* binder normalises that segment: {@code payment-api} and {@code payment_api} arrive as the same
* {@code PAYMENT_API}, so one profile would replace the other with nothing said about the one that
* was lost. Carrying the name as a value makes the collision visible, and the compact constructor
* below rejects it.
*
* <p>Defaults are deliberately unhelpful for production: the design forbids a profile springing
* into existence with generous framework defaults, so anything a production profile must state —
* hosts, body limits, TLS profile — has no usable default and is caught by startup validation
* instead.
*
* @param enabled master switch for the whole capability
* @param clients the Named Client Profiles this deployment declares
* @param dynamicTargets the Dynamic Target policies this deployment declares
*/
public record HttpClientPlatformSettings(
@DefaultValue("false") boolean enabled,
@DefaultValue List<ClientSettings> clients,
@DefaultValue List<DynamicTargetSettings> dynamicTargets) {
/** Configuration prefix; the canonical environment form is {@code APP_HTTPCLIENT_*}. */
public static final String PREFIX = "app.httpclient";
public HttpClientPlatformSettings {
clients = List.copyOf(clients == null ? List.of() : clients);
dynamicTargets = List.copyOf(dynamicTargets == null ? List.of() : dynamicTargets);
if (enabled && clients.isEmpty()) {
// An active platform with nothing to call still holds transport providers, a resilience
// registry and five caller-facing gateways that no caller can reach. That is not a working
// deployment with an empty configuration; it is a configuration mistake with a running cost.
throw new IllegalStateException(
"HTTPCLIENT_ACTIVE_WITHOUT_CLIENTS: "
+ PREFIX
+ ".enabled is true but no client is declared under "
+ PREFIX
+ ".clients[*]");
}
requireDistinctNames(clients.stream().map(ClientSettings::name).toList(), PREFIX + ".clients");
requireDistinctNames(
dynamicTargets.stream().map(DynamicTargetSettings::name).toList(),
PREFIX + ".dynamic-targets");
}
/**
* Rejects blank, duplicate and environment-colliding names.
*
* <p>The normalised form is what an operator has to type as an environment variable segment, so
* two names that share it cannot both be configured from the environment even though they are
* distinct as properties.
*/
private static void requireDistinctNames(List<String> names, String where) {
List<String> seen = new ArrayList<>();
Map<String, String> byNormalisedForm = new LinkedHashMap<>();
for (String name : names) {
if (name == null || name.isBlank()) {
throw new IllegalStateException(where + "[*].name must be non-blank");
}
if (seen.contains(name)) {
throw new IllegalStateException(where + " declares '" + name + "' more than once");
}
seen.add(name);
String normalised = name.toUpperCase(Locale.ROOT).replaceAll("[^A-Z0-9]", "");
String previous = byNormalisedForm.putIfAbsent(normalised, name);
if (previous != null) {
throw new IllegalStateException(
where
+ " declares '"
+ previous
+ "' and '"
+ name
+ "', which normalise to the same environment variable segment '"
+ normalised
+ "'; one would silently replace the other");
}
}
}
/**
* One Named Client Profile as written in configuration.
*
* @param name the profile name callers address; carried as a value, not as a map key
*/
public record ClientSettings(
String name,
@DefaultValue("TRUSTED") String mode,
String baseUrl,
@DefaultValue List<String> allowedHosts,
@DefaultValue List<Integer> allowedPorts,
@DefaultValue("REST_CLIENT") String api,
@DefaultValue("APACHE") String transport,
// The default transport is Apache, whose classic client is HTTP/1.1 only. A profile that
// wants HTTP/2 declares it together with a transport that can deliver it.
@DefaultValue({"HTTP_1_1"}) List<String> protocols,
@DefaultValue Pool pool,
@DefaultValue Timeout timeout,
@DefaultValue Redirect redirect,
@DefaultValue Request request,
@DefaultValue Response response,
@DefaultValue Authentication authentication,
@DefaultValue Retry retry,
@DefaultValue Observability observability,
@DefaultValue Tls tls,
@DefaultValue Proxy proxy,
String experimentalAcknowledgement) {}
/**
* One Dynamic Target policy (design §22).
*
* <p>Dynamic Target policies are configured separately from Named Client Profiles on purpose:
* they are a different security boundary, and sharing a configuration block would invite sharing
* a credential. Defaults are the most restrictive useful setting.
*
* @param name the policy name a caller must quote; an unregistered name is an error rather than a
* permissive default
*/
public record DynamicTargetSettings(
String name,
@DefaultValue({"https"}) List<String> allowedSchemes,
@DefaultValue({"443"}) List<Integer> allowedPorts,
@DefaultValue List<String> allowedHostSuffixes,
@DefaultValue List<String> allowedHosts,
@DefaultValue("0") int maxRedirectHops,
@DefaultValue("false") boolean tracePropagation,
@DefaultValue List<String> blockedCidrs) {}
/** Connection pool budget (design §14.2). */
public record Pool(
@DefaultValue("50") int maxTotalConnections,
@DefaultValue("25") int maxConnectionsPerRoute,
@DefaultValue("100") int maxPendingAcquires,
@DefaultValue("200ms") Duration pendingAcquireTimeout,
@DefaultValue("30s") Duration maxIdleTime,
@DefaultValue("5m") Duration maxLifeTime,
@DefaultValue("5s") Duration validateAfterInactivity,
@DefaultValue("15s") Duration evictionInterval,
@DefaultValue("5s") Duration shutdownTimeout,
@DefaultValue("false") boolean requiresRoutePool,
@DefaultValue("false") boolean requiresBoundedPendingQueue) {}
/** Stage timeouts and total call budget (design §15.1). */
public record Timeout(
@DefaultValue("300ms") Duration dns,
@DefaultValue("500ms") Duration connect,
@DefaultValue("1s") Duration tlsHandshake,
@DefaultValue("500ms") Duration proxyConnect,
@DefaultValue("1s") Duration requestWriteIdle,
@DefaultValue("2s") Duration responseHeader,
@DefaultValue("3s") Duration readIdle,
@DefaultValue("4s") Duration totalCall,
@DefaultValue("30s") Duration streamingIdle) {}
/** Redirect policy; disabled by default (design §12.4). */
public record Redirect(
@DefaultValue("false") boolean enabled,
@DefaultValue("0") int maxHops,
@DefaultValue("false") boolean allowCrossOrigin) {}
/** Request-side budget. {@code maxBodyBytes} has no safe default and must be declared. */
public record Request(
@DefaultValue("0") long maxBodyBytes, @DefaultValue("false") boolean compression) {}
/** Response-side budget (design §23.2). */
public record Response(
@DefaultValue("5242880") long maxWireBytes,
@DefaultValue("10485760") long maxDecodedBytes,
@DefaultValue({"application/json", "application/problem+json"})
List<String> allowedContentTypes) {}
/** Declared authentication (design §20.1). */
public record Authentication(
@DefaultValue("NONE") String type,
String registrationId,
@DefaultValue List<String> scopes,
String audience,
String headerName,
String secretReference) {}
/** Retry budget shape (design §17). */
public record Retry(
@DefaultValue("none") String policy,
@DefaultValue("1") int maxAttempts,
@DefaultValue("50ms") Duration baseBackoff,
@DefaultValue("200ms") Duration maxBackoff,
@DefaultValue("FULL") String jitter,
@DefaultValue("HONOR") String retryAfter,
String budget) {}
/** Per-profile observability switches (design §25). */
public record Observability(
@DefaultValue("true") boolean operationNameRequired,
@DefaultValue("false") boolean fullUrlRecording,
@DefaultValue("false") boolean bodyLogging) {}
/**
* TLS declaration (design §21).
*
* <p>{@code trustAll} and {@code allowPlainHttp} exist purely so an operator's unsafe intent is
* representable and therefore rejectable at startup. Nothing acts on a true value.
*/
public record Tls(
String profileId,
@DefaultValue({"TLSv1.3", "TLSv1.2"}) List<String> protocols,
@DefaultValue("true") boolean hostnameVerification,
@DefaultValue("false") boolean trustAll,
@DefaultValue("false") boolean allowPlainHttp,
String trustMaterialReference,
String keyMaterialReference) {}
/** Forward proxy declaration (design §24.3). */
public record Proxy(
@DefaultValue("false") boolean enabled,
@DefaultValue("") String host,
@DefaultValue("0") int port,
@DefaultValue("HTTP") String type,
String credentialProvider,
@DefaultValue("500ms") Duration connectTimeout,
@DefaultValue("false") boolean importAmbientNoProxy) {}
}
@@ -0,0 +1,54 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import org.springframework.boot.context.properties.bind.BindHandler;
import org.springframework.boot.context.properties.bind.Bindable;
import org.springframework.boot.context.properties.bind.Binder;
import org.springframework.boot.context.properties.bind.handler.NoUnboundElementsBindHandler;
import org.springframework.core.env.Environment;
import org.springframework.core.env.SystemEnvironmentPropertySource;
/**
* Binds {@link HttpClientPlatformSettings} strictly, and only when asked.
*
* <p>Two properties matter here and neither is available from a scanned
* {@code @ConfigurationProperties} class.
*
* <p>First, timing. This runs inside the master-gated auto-configuration, so a deployment that
* never enables the platform never binds one of its settings — a malformed {@code Duration} in a
* block nobody switched on cannot fail its startup.
*
* <p>Second, strictness. Unknown keys under the prefix are refused rather than ignored. Silently
* dropping {@code app.httpclient.clients[0].timeuot.total-call} leaves the client running the
* default four-second budget while the configuration file says otherwise, which is exactly the kind
* of divergence an outbound call platform should never make an operator discover from an incident.
*
* <p>Strictness is delivered by two mechanisms because one does not cover both surfaces. Property
* sources that enumerate their keys in property form — YAML, properties files, test overrides — are
* checked by {@link NoUnboundElementsBindHandler}. The system environment is excluded from that
* handler and checked by {@link HttpClientEnvironmentKeys#rejectUnrecognised} instead: Spring
* enumerates {@code APP_HTTPCLIENT_CLIENTS_0_BASE_URL} as {@code ...clients[0].base.url} while
* binding it as {@code ...clients[0].base-url}, so leaving it to the handler would reject every
* correctly spelled variable and still miss the misspelled ones.
*/
final class HttpClientPlatformSettingsBinder {
private HttpClientPlatformSettingsBinder() {}
static HttpClientPlatformSettings bind(Environment environment) {
HttpClientEnvironmentKeys.rejectUnrecognised(environment);
BindHandler strict =
new NoUnboundElementsBindHandler(
BindHandler.DEFAULT,
source -> !(source.getUnderlyingSource() instanceof SystemEnvironmentPropertySource));
return Binder.get(environment)
.bind(
HttpClientPlatformSettings.PREFIX,
Bindable.of(HttpClientPlatformSettings.class),
strict)
.orElseThrow(
() ->
new IllegalStateException(
HttpClientPlatformSettings.PREFIX
+ " could not be bound although the platform is enabled"));
}
}
@@ -0,0 +1,107 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.api.ClientProfileName;
import dev.caskeleton.adapter.outbound.httpclient.auth.CredentialProviderRegistry;
import dev.caskeleton.adapter.outbound.httpclient.auth.ReactiveRequestCredentialProvider;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientApiType;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientProfile;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntime;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import dev.caskeleton.adapter.outbound.httpclient.profile.RuntimeEnvironment;
import dev.caskeleton.adapter.outbound.httpclient.profile.RuntimeGeneration;
import dev.caskeleton.adapter.outbound.httpclient.profile.TransportType;
import dev.caskeleton.adapter.outbound.httpclient.resilience.ResilienceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.restclient.BlockingExecutionSupport;
import dev.caskeleton.adapter.outbound.httpclient.restclient.RestClientRuntimeFactory;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsPolicyValidator;
import dev.caskeleton.adapter.outbound.httpclient.transport.BlockingTransportProvider;
import dev.caskeleton.adapter.outbound.httpclient.transport.ReactiveTransportProvider;
import dev.caskeleton.adapter.outbound.httpclient.transport.TransportLifecycleListener;
import dev.caskeleton.adapter.outbound.httpclient.webclient.WebClientRuntimeFactory;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.random.RandomGenerator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
/**
* Binds profiles, validates them, and publishes the runtime registry (design §27.1, §27.2).
*
* <p>Validation runs before any runtime is built, so an unsafe configuration cannot create a
* connection pool, a TLS context, or a credential before failing. With no {@code http-clients}
* entries the registry is empty and the capability holds no resources at all.
*/
@Configuration(proxyBeanMethods = false)
public class HttpClientProfileAutoConfiguration {
@Bean
@ConditionalOnMissingBean
HttpClientProfileFactory httpClientProfileFactory() {
return new HttpClientProfileFactory();
}
@Bean
@ConditionalOnMissingBean
HttpClientStartupValidator httpClientStartupValidator(TlsPolicyValidator tlsPolicyValidator) {
// Injected rather than constructed, so a deployment that replaces the TlsPolicyValidator bean
// replaces the one startup validation uses too.
return new HttpClientStartupValidator(tlsPolicyValidator);
}
@Bean(destroyMethod = "close")
@ConditionalOnMissingBean
ClientRuntimeRegistry httpClientRuntimeRegistry(
Environment environment,
HttpClientPlatformSettings properties,
HttpClientProfileFactory profileFactory,
HttpClientStartupValidator startupValidator,
Map<TransportType, BlockingTransportProvider> httpClientBlockingTransportProviders,
Map<TransportType, ReactiveTransportProvider> httpClientReactiveTransportProviders,
ResilienceRegistry resilienceRegistry,
CredentialProviderRegistry credentialProviders,
ReactiveRequestCredentialProvider reactiveCredentialProvider,
BlockingExecutionSupport executionSupport,
TransportLifecycleListener lifecycleListener) {
Map<ClientProfileName, ClientProfile> profiles = profileFactory.create(properties);
startupValidator.validate(profiles, runtimeEnvironment(environment));
RestClientRuntimeFactory blockingFactory =
new RestClientRuntimeFactory(
httpClientBlockingTransportProviders,
resilienceRegistry,
credentialProviders,
executionSupport,
lifecycleListener,
RandomGenerator.getDefault());
WebClientRuntimeFactory reactiveFactory =
new WebClientRuntimeFactory(
httpClientReactiveTransportProviders,
resilienceRegistry,
reactiveCredentialProvider,
executionSupport,
lifecycleListener,
RandomGenerator.getDefault());
Map<ClientProfileName, ClientRuntime> runtimes = new LinkedHashMap<>();
profiles.forEach(
(name, profile) ->
runtimes.put(
name,
profile.api() == ClientApiType.WEB_CLIENT
? reactiveFactory.create(profile, new RuntimeGeneration(1))
: blockingFactory.create(profile, new RuntimeGeneration(1))));
return new ClientRuntimeRegistry(runtimes);
}
private RuntimeEnvironment runtimeEnvironment(Environment environment) {
for (String profile : environment.getActiveProfiles()) {
if ("prod".equalsIgnoreCase(profile) || "production".equalsIgnoreCase(profile)) {
return RuntimeEnvironment.PRODUCTION;
}
}
return RuntimeEnvironment.NON_PRODUCTION;
}
}
@@ -0,0 +1,153 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.api.ClientProfileName;
import dev.caskeleton.adapter.outbound.httpclient.profile.AuthenticationSettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.AuthenticationType;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientApiType;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientMode;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientObservabilitySettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientProfile;
import dev.caskeleton.adapter.outbound.httpclient.profile.HttpProtocol;
import dev.caskeleton.adapter.outbound.httpclient.profile.JitterStrategy;
import dev.caskeleton.adapter.outbound.httpclient.profile.PoolSettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.ProxySettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.ProxyType;
import dev.caskeleton.adapter.outbound.httpclient.profile.RedirectSettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.RequestLimits;
import dev.caskeleton.adapter.outbound.httpclient.profile.ResponseLimits;
import dev.caskeleton.adapter.outbound.httpclient.profile.RetryAfterPolicy;
import dev.caskeleton.adapter.outbound.httpclient.profile.RetrySettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.TimeoutSettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.TlsSettings;
import dev.caskeleton.adapter.outbound.httpclient.profile.TransportType;
import java.net.URI;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
/**
* Turns bound properties into immutable profiles (design §11).
*
* <p>Conversion never repairs a configuration. An absent host allowlist stays absent so the
* validator can report it, rather than being silently derived from the base URL — which would make
* an unstated security decision on the operator's behalf.
*/
public final class HttpClientProfileFactory {
public Map<ClientProfileName, ClientProfile> create(HttpClientPlatformSettings properties) {
Map<ClientProfileName, ClientProfile> profiles = new LinkedHashMap<>();
for (HttpClientPlatformSettings.ClientSettings client : properties.clients()) {
profiles.put(new ClientProfileName(client.name()), toProfile(client));
}
return Map.copyOf(profiles);
}
public ClientProfile toProfile(HttpClientPlatformSettings.ClientSettings client) {
return new ClientProfile(
new ClientProfileName(client.name()),
ClientMode.valueOf(client.mode().toUpperCase(Locale.ROOT)),
client.baseUrl() == null ? null : URI.create(client.baseUrl()),
Set.copyOf(client.allowedHosts()),
Set.copyOf(client.allowedPorts()),
ClientApiType.valueOf(client.api().toUpperCase(Locale.ROOT)),
TransportType.valueOf(client.transport().toUpperCase(Locale.ROOT)),
client.protocols().stream()
.map(protocol -> HttpProtocol.valueOf(protocol.toUpperCase(Locale.ROOT)))
.collect(Collectors.toUnmodifiableSet()),
pool(client.pool()),
timeout(client.timeout()),
new RedirectSettings(
client.redirect().enabled(),
client.redirect().maxHops(),
client.redirect().allowCrossOrigin()),
new RequestLimits(client.request().maxBodyBytes(), client.request().compression()),
new ResponseLimits(
client.response().maxWireBytes(),
client.response().maxDecodedBytes(),
Set.copyOf(client.response().allowedContentTypes())),
authentication(client.authentication()),
retry(client.retry()),
new ClientObservabilitySettings(
client.observability().operationNameRequired(),
client.observability().fullUrlRecording(),
client.observability().bodyLogging()),
tls(client.tls()),
proxy(client.proxy()),
Optional.ofNullable(client.experimentalAcknowledgement()));
}
private PoolSettings pool(HttpClientPlatformSettings.Pool pool) {
return new PoolSettings(
pool.maxTotalConnections(),
pool.maxConnectionsPerRoute(),
pool.maxPendingAcquires(),
pool.pendingAcquireTimeout(),
pool.maxIdleTime(),
pool.maxLifeTime(),
pool.validateAfterInactivity(),
pool.evictionInterval(),
pool.shutdownTimeout(),
pool.requiresRoutePool(),
pool.requiresBoundedPendingQueue());
}
private TimeoutSettings timeout(HttpClientPlatformSettings.Timeout timeout) {
return new TimeoutSettings(
timeout.dns(),
timeout.connect(),
timeout.tlsHandshake(),
timeout.proxyConnect(),
timeout.requestWriteIdle(),
timeout.responseHeader(),
timeout.readIdle(),
timeout.totalCall(),
timeout.streamingIdle());
}
private AuthenticationSettings authentication(
HttpClientPlatformSettings.Authentication authentication) {
return new AuthenticationSettings(
AuthenticationType.valueOf(authentication.type().toUpperCase(Locale.ROOT)),
Optional.ofNullable(authentication.registrationId()),
Set.copyOf(authentication.scopes()),
Optional.ofNullable(authentication.audience()),
Optional.ofNullable(authentication.headerName()),
Optional.ofNullable(authentication.secretReference()));
}
private RetrySettings retry(HttpClientPlatformSettings.Retry retry) {
return new RetrySettings(
retry.policy(),
retry.maxAttempts(),
retry.baseBackoff(),
retry.maxBackoff(),
JitterStrategy.valueOf(retry.jitter().toUpperCase(Locale.ROOT)),
RetryAfterPolicy.valueOf(retry.retryAfter().toUpperCase(Locale.ROOT)),
Optional.ofNullable(retry.budget()));
}
private TlsSettings tls(HttpClientPlatformSettings.Tls tls) {
return new TlsSettings(
Optional.ofNullable(tls.profileId()),
Set.copyOf(tls.protocols()),
tls.hostnameVerification(),
tls.trustAll(),
tls.allowPlainHttp(),
Optional.ofNullable(tls.trustMaterialReference()),
Optional.ofNullable(tls.keyMaterialReference()));
}
private ProxySettings proxy(HttpClientPlatformSettings.Proxy proxy) {
return new ProxySettings(
proxy.enabled(),
proxy.host(),
proxy.port(),
ProxyType.valueOf(proxy.type().toUpperCase(Locale.ROOT)),
Optional.ofNullable(proxy.credentialProvider()),
proxy.connectTimeout(),
proxy.importAmbientNoProxy());
}
}
@@ -0,0 +1,28 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.resilience.ResilienceRegistry;
import java.time.Clock;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Per-profile circuit breakers, rate limiters, bulkheads, and retry budgets (design §18).
*
* <p>The registry is shared but its components are keyed per profile, so a failing upstream cannot
* open a breaker or drain a budget that belongs to a healthy one.
*
* <p>The {@link Clock} comes from the composition root rather than from here. A fallback clock
* declared beside the resilience registry was harmless while this configuration was scanned
* unconditionally; behind the master switch it would have made the application's clock disappear
* whenever outbound HTTP was off, taking Redis, idempotency and the Fileserver with it.
*/
@Configuration(proxyBeanMethods = false)
public class HttpClientResilienceAutoConfiguration {
@Bean
@ConditionalOnMissingBean
ResilienceRegistry httpClientResilienceRegistry(Clock clock) {
return ResilienceRegistry.withDefaults(clock);
}
}
@@ -0,0 +1,30 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsMaterialProvider;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsPolicyValidator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* TLS material and policy (design §21, §27.1).
*
* <p>The default material provider supports only the JVM trust store. A deployment that needs a
* custom CA or a client certificate supplies its own loader bean, which keeps secret retrieval out
* of this module and out of configuration files.
*/
@Configuration(proxyBeanMethods = false)
public class HttpClientSecurityAutoConfiguration {
@Bean
@ConditionalOnMissingBean
TlsPolicyValidator httpClientTlsPolicyValidator() {
return new TlsPolicyValidator();
}
@Bean
@ConditionalOnMissingBean
TlsMaterialProvider httpClientTlsMaterialProvider() {
return TlsMaterialProvider.jvmTrustStore();
}
}
@@ -0,0 +1,123 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.api.ClientProfileName;
import dev.caskeleton.adapter.outbound.httpclient.api.error.HttpConfigurationException;
import dev.caskeleton.adapter.outbound.httpclient.api.error.HttpFailureMetadata;
import dev.caskeleton.adapter.outbound.httpclient.profile.AuthenticationType;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientApiType;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientProfile;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientProfileValidator;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientProfileViolation;
import dev.caskeleton.adapter.outbound.httpclient.profile.RuntimeEnvironment;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsPolicyValidator;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
/**
* One fail-closed startup gate for every configured profile (design §27.2).
*
* <p>All violations are collected before failing so an operator sees the whole configuration
* problem at once. Failing on the first one turns a five-minute fix into five deploy cycles.
*/
public final class HttpClientStartupValidator {
/** Mechanisms the reactive credential registry can serve without blocking an event loop. */
private static final Set<AuthenticationType> NON_BLOCKING_AUTHENTICATION =
Set.of(
AuthenticationType.NONE,
AuthenticationType.BASIC,
AuthenticationType.API_KEY_HEADER,
AuthenticationType.STATIC_BEARER);
private final ClientProfileValidator profileValidator = new ClientProfileValidator();
private final TlsPolicyValidator tlsPolicyValidator;
/** Uses the platform's own default policy. */
public HttpClientStartupValidator() {
this(new TlsPolicyValidator());
}
/**
* Uses the container-managed validator.
*
* <p>{@code HttpClientSecurityAutoConfiguration} publishes a {@code TlsPolicyValidator} bean that
* a deployment can replace, and this class used to construct its own instead — so overriding the
* bean changed what {@code TlsMaterialProvider} enforced while startup validation went on
* applying the default. Two validators, one of them ignored, is worse than either alone.
*
* @param tlsPolicyValidator the validator the container published
*/
public HttpClientStartupValidator(TlsPolicyValidator tlsPolicyValidator) {
this.tlsPolicyValidator = Objects.requireNonNull(tlsPolicyValidator, "tls policy validator");
}
public void validate(
Map<ClientProfileName, ClientProfile> profiles, RuntimeEnvironment environment) {
Objects.requireNonNull(profiles, "profiles");
Objects.requireNonNull(environment, "runtime environment");
List<String> violations = new ArrayList<>();
Set<String> seenNames = new HashSet<>();
profiles.forEach(
(name, profile) -> {
if (!seenNames.add(name.value())) {
violations.add("DUPLICATE_CLIENT_NAME profile=" + name.value());
}
profileValidator.validate(profile, environment).stream()
.map(ClientProfileViolation::toString)
.forEach(violations::add);
reactiveAuthenticationViolation(profile).ifPresent(violations::add);
tlsPolicyValidator
.validate(profile.tls())
.forEach(
violation ->
violations.add(
violation.code()
+ " profile="
+ name.value()
+ " setting="
+ violation.detail()));
});
if (!violations.isEmpty()) {
throw new HttpConfigurationException(
"http client configuration is not safe to start:\n " + String.join("\n ", violations),
HttpFailureMetadata.startup(new ClientProfileName("startup")));
}
}
/**
* Refuses a reactive profile whose declared authentication has no non-blocking implementation.
*
* <p>Only OAuth2 is affected: a token load is a network round trip, and the only provider that
* performs it blocks. BASIC, API keys and static bearers resolve a secret and format a header,
* which the reactive registry can do without leaving the event loop.
*
* <p>Before this check the combination started cleanly and then sent every request with no
* credential, because the composition root wired a no-auth provider for every reactive profile.
* An unauthenticated request that the upstream rejects is a much worse failure than a context
* that refuses to start, and it is much harder to attribute.
*/
private Optional<String> reactiveAuthenticationViolation(ClientProfile profile) {
if (profile.api() != ClientApiType.WEB_CLIENT) {
return Optional.empty();
}
AuthenticationType type = profile.authentication().type();
if (!NON_BLOCKING_AUTHENTICATION.contains(type)) {
return Optional.of(
"REACTIVE_AUTHENTICATION_UNSUPPORTED profile="
+ profile.name().value()
+ " type="
+ type
+ " supported="
+ NON_BLOCKING_AUTHENTICATION);
}
return Optional.empty();
}
}
@@ -0,0 +1,110 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.apache.ApacheBlockingTransportProvider;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.CallScopedDnsPin;
import dev.caskeleton.adapter.outbound.httpclient.jdk.JdkBlockingTransportProvider;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientMode;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientProfile;
import dev.caskeleton.adapter.outbound.httpclient.profile.TransportType;
import dev.caskeleton.adapter.outbound.httpclient.reactor.ReactorNettyTransportProvider;
import dev.caskeleton.adapter.outbound.httpclient.security.SslContextMaterial;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsMaterialProvider;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsProfile;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsProfileId;
import dev.caskeleton.adapter.outbound.httpclient.transport.BlockingTransportProvider;
import dev.caskeleton.adapter.outbound.httpclient.transport.ReactiveTransportProvider;
import dev.caskeleton.adapter.outbound.httpclient.transport.TransportLifecycleListener;
import io.micrometer.core.instrument.MeterRegistry;
import java.net.InetAddress;
import java.util.EnumMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Registers the Stable transports (design §6.2, §27.1).
*
* <p>Jetty HTTP/3 is deliberately absent: design D-08 and §32.7 require the Experimental transport
* to be opted into explicitly, and auto-registering it here would make "Experimental" a label
* rather than a boundary.
*/
@Configuration(proxyBeanMethods = false)
public class HttpClientTransportAutoConfiguration {
@Bean
@ConditionalOnMissingBean
TransportLifecycleListener httpClientTransportLifecycleListener() {
return TransportLifecycleListener.noop();
}
@Bean
@ConditionalOnMissingBean(name = "httpClientBlockingTransportProviders")
Map<TransportType, BlockingTransportProvider> httpClientBlockingTransportProviders(
ObjectProvider<MeterRegistry> meterRegistry, TlsMaterialProvider tlsMaterialProvider) {
Function<ClientProfile, Optional<SslContextMaterial>> tlsResolver =
profile -> materialize(profile, tlsMaterialProvider);
Map<TransportType, BlockingTransportProvider> providers = new EnumMap<>(TransportType.class);
providers.put(
TransportType.APACHE,
new ApacheBlockingTransportProvider(
Optional.ofNullable(meterRegistry.getIfAvailable()),
tlsResolver,
HttpClientTransportAutoConfiguration::dynamicTargetPinning));
providers.put(TransportType.JDK, new JdkBlockingTransportProvider(tlsResolver));
return Map.copyOf(providers);
}
/**
* Supplies the call-scoped pinned addresses to a DYNAMIC profile's transport.
*
* <p>This used to be {@code profile -> Optional.empty()} for every profile, which silently
* discarded the entire SSRF address validation: the dynamic gateway resolved the host, rejected
* forbidden answers, pinned the approved addresses — and then the transport resolved the hostname
* again and connected to whatever came back the second time. The check ran, produced a correct
* verdict, and had no effect on where the socket went.
*
* <p>Only DYNAMIC profiles are pinned. A trusted profile connects to a base URL an operator
* configured, not to a URL a caller supplied, so its destination is not attacker-controlled and
* pinning it would break ordinary DNS-based failover.
*/
private static Optional<Function<String, List<InetAddress>>> dynamicTargetPinning(
ClientProfile profile) {
if (profile.mode() != ClientMode.DYNAMIC) {
return Optional.empty();
}
return Optional.of(CallScopedDnsPin::addressesFor);
}
@Bean
@ConditionalOnMissingBean(name = "httpClientReactiveTransportProviders")
Map<TransportType, ReactiveTransportProvider> httpClientReactiveTransportProviders(
ObjectProvider<MeterRegistry> meterRegistry, TlsMaterialProvider tlsMaterialProvider) {
Map<TransportType, ReactiveTransportProvider> providers = new EnumMap<>(TransportType.class);
providers.put(
TransportType.REACTOR_NETTY,
new ReactorNettyTransportProvider(
Optional.ofNullable(meterRegistry.getIfAvailable()),
profile -> materialize(profile, tlsMaterialProvider),
HttpClientTransportAutoConfiguration::dynamicTargetPinning));
return Map.copyOf(providers);
}
/** Only a profile that names a TLS profile gets custom material; others use the JVM defaults. */
private Optional<SslContextMaterial> materialize(
ClientProfile profile, TlsMaterialProvider provider) {
return profile
.tls()
.profileId()
.filter(
ignored ->
profile.tls().trustMaterialReference().isPresent()
|| profile.tls().keyMaterialReference().isPresent())
.map(id -> provider.materialize(TlsProfile.from(profile.tls(), new TlsProfileId(id))));
}
}
@@ -0,0 +1,90 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import dev.caskeleton.adapter.outbound.httpclient.restclient.BlockingAttemptExecutor;
import dev.caskeleton.adapter.outbound.httpclient.restclient.BlockingStreamingGateway;
import dev.caskeleton.adapter.outbound.httpclient.restclient.DefaultGenericHttpGateway;
import dev.caskeleton.adapter.outbound.httpclient.restclient.GenericHttpGateway;
import dev.caskeleton.adapter.outbound.httpclient.service.DefaultHttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.service.DefaultReactiveHttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.service.HttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.service.ReactiveHttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.webclient.DefaultReactiveHttpGateway;
import dev.caskeleton.adapter.outbound.httpclient.webclient.DefaultReactiveSseGateway;
import dev.caskeleton.adapter.outbound.httpclient.webclient.ReactiveAttemptExecutor;
import dev.caskeleton.adapter.outbound.httpclient.webclient.ReactiveSseGateway;
import dev.caskeleton.adapter.outbound.httpclient.webclient.ReactiveStreamingGateway;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Publishes the caller-facing entry points (design §9, §27.1).
*
* <p>H1 typed registries are the intended default; the H2 gateways are published beside them for
* the genuinely dynamic cases. H3 lives in its own configuration with its own policy, so it cannot
* be reached by accident from here.
*/
@Configuration(proxyBeanMethods = false)
public class HttpServiceClientAutoConfiguration {
@Bean
@ConditionalOnMissingBean
BlockingAttemptExecutor httpClientBlockingAttemptExecutor() {
return new BlockingAttemptExecutor();
}
@Bean
@ConditionalOnMissingBean
ReactiveAttemptExecutor httpClientReactiveAttemptExecutor() {
return new ReactiveAttemptExecutor();
}
@Bean
@ConditionalOnMissingBean
GenericHttpGateway genericHttpGateway(
ClientRuntimeRegistry runtimes, BlockingAttemptExecutor executor) {
return new DefaultGenericHttpGateway(runtimes, executor);
}
@Bean
@ConditionalOnMissingBean
DefaultReactiveHttpGateway reactiveHttpGateway(
ClientRuntimeRegistry runtimes, ReactiveAttemptExecutor executor) {
return new DefaultReactiveHttpGateway(runtimes, executor);
}
@Bean
@ConditionalOnMissingBean
HttpServiceRegistry httpServiceRegistry(
ClientRuntimeRegistry runtimes, GenericHttpGateway genericHttpGateway) {
// The typed registry runs its calls through the generic gateway, so a typed client and a
// generic exchange are the same execution path rather than two that resemble each other.
return new DefaultHttpServiceRegistry(runtimes, genericHttpGateway);
}
@Bean
@ConditionalOnMissingBean
ReactiveHttpServiceRegistry reactiveHttpServiceRegistry(
ClientRuntimeRegistry runtimes, DefaultReactiveHttpGateway reactiveHttpGateway) {
return new DefaultReactiveHttpServiceRegistry(runtimes, reactiveHttpGateway);
}
@Bean
@ConditionalOnMissingBean
BlockingStreamingGateway blockingStreamingGateway(ClientRuntimeRegistry runtimes) {
return new BlockingStreamingGateway(runtimes);
}
@Bean
@ConditionalOnMissingBean
ReactiveStreamingGateway reactiveStreamingGateway(ClientRuntimeRegistry runtimes) {
return new ReactiveStreamingGateway(runtimes);
}
@Bean
@ConditionalOnMissingBean
ReactiveSseGateway reactiveSseGateway(ClientRuntimeRegistry runtimes) {
return new DefaultReactiveSseGateway(runtimes);
}
}
@@ -0,0 +1,2 @@
dev.caskeleton.bootstrap.autoconfigure.fileserver.FileserverPlatformAutoConfiguration
dev.caskeleton.bootstrap.autoconfigure.httpclient.HttpClientPlatformAutoConfiguration
@@ -179,8 +179,12 @@ spring:
# GlobalExceptionHandler#handleMaxUploadSizeExceededException), never a raw 500.
# Multipart-specific upload limits (UPLOAD_SIZE_EXCEEDED) are refined by
# feature-file-resource-handling-contract.
max-file-size: ${SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE:10MB}
max-request-size: ${SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE:10MB}
# Same placeholders as app.fileserver-platform.upload.*, deliberately. Two independent
# ceilings meant the servlet container rejected at 10MB whatever the Fileserver policy said,
# so a 100MB upload failed before any Fileserver code — including its error mapping — ran,
# and the configured limit described a policy nobody could reach.
max-file-size: ${APP_FILESERVER_PLATFORM_UPLOAD_MAX_FILE_SIZE:100MB}
max-request-size: ${APP_FILESERVER_PLATFORM_UPLOAD_MAX_REQUEST_SIZE:110MB}
# Jackson deserialization policy (feature-boundary-validation-mapping-contract B1).
# Every request DTO crosses this boundary; the switches make malformed payloads
# fail at the edge rather than silently coercing or dropping fields.
@@ -231,9 +235,17 @@ management:
health:
# D8: never expose health details to unauthenticated callers.
show-details: when-authorized
# redisRequired exists only when a correctness role is bound. Keep the static group
# fail-closed for known names while allowing an absent conditional contributor.
validate-group-membership: false
# Membership is validated. With validation off, a group naming a contributor that does not
# exist is silently dropped and readiness reports UP while proving nothing about the
# dependency it claims to gate on — a false green that survives exactly as long as nobody
# checks. On, the cost is that every name below must resolve, in every deployment.
#
# That cost is paid by construction rather than by convention: the groups below name only
# unconditional contributors, and the one conditional member — `redisRequired` — is appended
# by RedisReadinessGroupPostProcessor from the same predicate that creates the bean. A
# contributor can therefore be named only where it exists, and a misspelled one still fails
# startup.
validate-group-membership: true
# feature-runtime-health-lifecycle-contract: expose the Kubernetes-ready
# liveness/readiness/startup probe paths.
probes:
@@ -245,11 +257,20 @@ management:
liveness:
include: livenessState
# Readiness: ready to serve traffic AND all REQUIRED dependencies up.
# Required: db and redisRequired (only COORDINATION/SESSION role bindings).
# redisOptional is deliberately excluded: a CACHE outage is reported as degraded detail
# but never turns a healthy JVM or an otherwise-ready pod unavailable.
# Every name here must resolve to a contributor that exists (validate-group-membership
# above). A correctness-role Redis contributor belongs in this list and is added when the
# Redis runtime composition creates one; naming it before then produced a readiness probe
# that reported UP without ever checking Redis.
# `redisRequired` is NOT listed here, and must not be: group membership does not tolerate a
# conditional contributor being absent. Boot validates the group against the contributors
# that exist, so naming it statically made every Redis-off and cache-only deployment fail at
# startup with "Included health contributor 'redisRequired' in group 'readiness' does not
# exist". RedisReadinessGroupPostProcessor appends it to this list — from the same predicate
# that creates the bean — when Redis is on and a correctness role selected it.
# `redisOptional` is never appended: a cache outage is reported as degraded detail and never
# turns a healthy JVM or an otherwise-ready pod unavailable.
readiness:
include: readinessState,db,redisRequired
include: readinessState,db
# Startup: startup/migration validation complete.
# readinessState acts as the startup completion gate — it flips UP only
# after the context is fully initialized (Flyway migration included).
@@ -304,42 +325,33 @@ ca-skeleton:
# definitions alone are inert, and the current NOT_IMPLEMENTED readiness card rejects ACTIVE
# before any client/executor/pool resource can be created.
capabilities:
# Every capability below renders its keys under one namespace — app.redis.namespace, which is
# {environment}:{service}:{domain}. The per-capability namespace-application /
# namespace-environment pairs that used to live here are gone: four capabilities each joining
# two free-form tokens in their own order produced four different key prefixes, and the ACL
# pattern meant to fence the deployment in matched none of them.
cache:
# Canonical semantic cache activation. Disabled by default; "redis" requires an active
# ca-skeleton.providers.redis.roles.cache binding and resolves HMAC material by reference.
# Canonical semantic cache activation. Disabled by default; "redis" composes
# RedisCacheRegionAdapter for the region named below and resolves HMAC material by reference.
bindings:
default: ${APP_CACHE_CANONICAL_DEFAULT_PROVIDER:disabled}
regions:
default:
key-hmac-secret-reference: secret://environment/APP_CACHE_REDIS_KEY_HMAC_SECRET
namespace-application: ${APP_NAME:ca-skeleton}
namespace-environment: ${APP_CACHE_REDIS_NAMESPACE_ENVIRONMENT:local}
semantic-region: ${APP_CACHE_REDIS_SEMANTIC_REGION:default}
hash-key-version: 1
key-version: 1
policy-revision: canonical-default-r1
positive-soft-ttl: ${APP_CACHE_REDIS_POSITIVE_SOFT_TTL:240s}
positive-hard-ttl: ${APP_CACHE_DEFAULT_TTL:300s}
negative-ttl: ${APP_CACHE_NEGATIVE_TTL:60s}
ttl-jitter: ${APP_CACHE_REDIS_TTL_JITTER:0.10}
maximum-value-bytes: 61440
l1:
enabled: ${APP_CACHE_REDIS_L1_ENABLED:false}
maximum-entries: ${APP_CACHE_REDIS_L1_MAXIMUM_ENTRIES:10000}
maximum-weight-bytes: ${APP_CACHE_REDIS_L1_MAXIMUM_WEIGHT_BYTES:67108864}
maximum-entry-weight-bytes: ${APP_CACHE_REDIS_L1_MAXIMUM_ENTRY_WEIGHT_BYTES:1048576}
time-to-live: ${APP_CACHE_REDIS_L1_TTL:30s}
generation-recheck-interval: ${APP_CACHE_REDIS_L1_GENERATION_RECHECK_INTERVAL:5s}
invalidation-queue-capacity: ${APP_CACHE_REDIS_L1_INVALIDATION_QUEUE_CAPACITY:1024}
semantic-region: ${APP_CACHE_REDIS_SEMANTIC_REGION:default}
key-version: 1
key-hmac-secret-reference: secret://environment/APP_CACHE_REDIS_KEY_HMAC_SECRET
command-timeout: ${APP_CACHE_REDIS_COMMAND_TIMEOUT:200ms}
positive-soft-ttl: ${APP_CACHE_REDIS_POSITIVE_SOFT_TTL:30s}
positive-hard-ttl: ${APP_CACHE_REDIS_POSITIVE_HARD_TTL:5m}
negative-ttl: ${APP_CACHE_REDIS_NEGATIVE_TTL:10s}
# Floor on the hard TTL. Below it, entries expire faster than the round trip that wrote them:
# every read misses and every miss writes.
minimum-hard-ttl: ${APP_CACHE_REDIS_MINIMUM_HARD_TTL:1s}
idempotency:
# disabled | jdbc | redis. JDBC is the existing V1 provider; Redis is the owner-safe V2
# provider. They are mutually exclusive and no V1-to-V2 facade is inferred.
provider: ${APP_IDEMPOTENCY_PROVIDER:jdbc}
key-hmac-secret-reference: secret://environment/APP_IDEMPOTENCY_REDIS_KEY_HMAC_SECRET
namespace-application: ${APP_NAME:ca-skeleton}
namespace-environment: ${APP_IDEMPOTENCY_REDIS_NAMESPACE_ENVIRONMENT:local}
hash-key-version: 1
key-version: 1
command-timeout: ${APP_IDEMPOTENCY_REDIS_COMMAND_TIMEOUT:200ms}
processing-lease: ${APP_IDEMPOTENCY_PROCESSING_LEASE:30s}
replay-ttl: ${APP_IDEMPOTENCY_TTL:24h}
failure-retention: ${APP_IDEMPOTENCY_FAILURE_RETENTION:24h}
@@ -349,10 +361,12 @@ ca-skeleton:
# disabled | redis. This is EFFICIENCY_ONLY and never supplies fencing.
provider: ${APP_LEASE_PROVIDER:disabled}
key-hmac-secret-reference: secret://environment/APP_LEASE_REDIS_KEY_HMAC_SECRET
namespace-application: ${APP_NAME:ca-skeleton}
namespace-environment: ${APP_LEASE_REDIS_NAMESPACE_ENVIRONMENT:local}
hash-key-version: 1
key-version: 1
command-timeout: ${APP_LEASE_REDIS_COMMAND_TIMEOUT:200ms}
contention-retry-after: ${APP_LEASE_REDIS_CONTENTION_RETRY_AFTER:50ms}
# How much shorter than the server's TTL this holder considers its lease valid. The two
# clocks are not the same clock, and a holder that measured the full TTL locally would still
# believe it held a lease the server had already handed to somebody else.
drift-budget: ${APP_LEASE_REDIS_DRIFT_BUDGET:10ms}
rate-limit:
# disabled | redis. This is the sole outbound provider activation selector.
@@ -360,11 +374,8 @@ ca-skeleton:
failure-policy: ${APP_RATE_LIMIT_FAILURE_POLICY:fail-closed}
default-policy-id: ${APP_RATE_LIMIT_DEFAULT_POLICY_ID:api-default}
failure-retry-after: ${APP_RATE_LIMIT_FAILURE_RETRY_AFTER:100ms}
hash-key-version: ${APP_RATE_LIMIT_HASH_KEY_VERSION:1}
key-version: ${APP_RATE_LIMIT_KEY_VERSION:1}
key-hmac-secret-reference: secret://environment/APP_RATE_LIMIT_REDIS_KEY_HMAC_SECRET
namespace-application: ${APP_NAME:ca-skeleton}
namespace-environment: ${APP_RATE_LIMIT_REDIS_NAMESPACE_ENVIRONMENT:local}
command-timeout: ${APP_RATE_LIMIT_REDIS_COMMAND_TIMEOUT:200ms}
policies:
api-default:
revision: ${APP_RATE_LIMIT_POLICY_REVISION:v1}
@@ -378,48 +389,6 @@ ca-skeleton:
cleanup-grace: ${APP_RATE_LIMIT_CLEANUP_GRACE:5s}
maximum-clock-regression: ${APP_RATE_LIMIT_MAXIMUM_CLOCK_REGRESSION:250ms}
security:
redis-session:
key-hmac-secret-reference: secret://environment/APP_SESSION_REDIS_KEY_HMAC_SECRET
namespace-application: ${APP_NAME:ca-skeleton}
namespace-environment: ${APP_SESSION_REDIS_NAMESPACE_ENVIRONMENT:local}
hash-key-version: 1
key-version: 1
idle-timeout: ${APP_SESSION_IDLE_TIMEOUT:30m}
absolute-lifetime: ${APP_SESSION_ABSOLUTE_LIFETIME:8h}
touch-interval: ${APP_SESSION_TOUCH_INTERVAL:1m}
tombstone-time-to-live: ${APP_SESSION_TOMBSTONE_TTL:5m}
maximum-envelope-bytes: ${APP_SESSION_MAXIMUM_ENVELOPE_BYTES:32768}
maximum-attributes: ${APP_SESSION_MAXIMUM_ATTRIBUTES:64}
maximum-scalar-bytes: ${APP_SESSION_MAXIMUM_SCALAR_BYTES:8192}
http-client:
expected-state: DISABLED
bindings: {}
providers:
http-client: {}
redis:
# Definitions alone are inert. Environment-specific configuration must bind roles.
legacy-migration-enabled: false
deployments: {}
roles: {}
runtime:
client-name: canonical-redis
connect-timeout: 2s
tls-handshake-timeout: 3s
acquire-timeout: 2s
command-timeout: 2s
overall-timeout: 5s
shutdown-timeout: 3s
maximum-queued-commands: 64
cluster-maximum-redirects: 5
cluster-topology-refresh-period: 30s
maximum-in-flight-commands: 64
maximum-command-bytes: 65536
maximum-in-flight-bytes: 4194304
route-drain-timeout: 6s
default-write-ttl: 5m
sentinel-discovery-refresh-period: ${APP_REDIS_SENTINEL_DISCOVERY_REFRESH_PERIOD:30s}
semantic-probe-minimum-interval: ${APP_REDIS_SEMANTIC_PROBE_MINIMUM_INTERVAL:5s}
semantic-probe-maximum-staleness: ${APP_REDIS_SEMANTIC_PROBE_MAXIMUM_STALENESS:15s}
bootstrap:
# required, non-blank — startup fails if blank (see BootstrapSettings)
app-name: ${APP_NAME}
@@ -602,6 +571,12 @@ ca-skeleton:
# (which needs its project-supplied integration client bean). Domain namespace, NOT a
# generic `app.adapter.*` prefix (branch-note §Audit A1). Env keys are the registry SSOT.
app:
# The one global Redis switch. False (the default) means no Redis settings are bound, no Redis
# credential is required, no client, connection, thread or health contributor is created, and no
# Redis-specific resource is read. There is deliberately no second master switch: a role such as
# cache or session selects *which* Redis capabilities compose, never *whether* Redis exists.
redis:
enabled: ${APP_REDIS_ENABLED:false}
# Fileserver R2 exact destination/provider composition. Disabled by default: while false,
# these blank attestation placeholders do not create directories, probe a filesystem, or
# contribute FilePublicationPort. Enabling fails closed unless every local-persistent
@@ -629,6 +604,107 @@ app:
mount-sentinel-sha256: ${APP_FILESERVER_LOCAL_MOUNT_SENTINEL_SHA256:}
expected-owner: ${APP_FILESERVER_LOCAL_EXPECTED_OWNER:}
maximum-root-mode: "0750"
# HTTP Fileserver platform — a different capability from app.fileserver above, which publishes
# tabular exports. This one serves upload/download/lifecycle routes over HTTP and owns its own
# namespace so the two cannot be switched on by accident together.
#
# While enabled=false none of the detail below is bound: FileserverPlatformAutoConfiguration
# binds the block itself, and it is not processed until the master switch is true. Unknown keys
# under this prefix are refused rather than ignored.
# Outbound HTTP Client platform. Only the master switch lives here.
#
# The per-client surface is an indexed list, and templating one element would materialise a
# nameless client in every deployment — which the settings' own aggregate validation refuses, so
# the template could not be left in place. Clients are therefore declared straight from the
# environment as APP_HTTPCLIENT_CLIENTS_0_*, registered in
# docs/httpclient/env-fields.yaml, and an APP_HTTPCLIENT_ variable absent from that
# registry fails startup rather than being ignored.
#
# While enabled=false none of it is bound: HttpClientPlatformAutoConfiguration binds the block
# itself and is not processed until the master switch is true.
httpclient:
enabled: ${APP_HTTPCLIENT_ENABLED:false}
fileserver-platform:
enabled: ${APP_FILESERVER_PLATFORM_ENABLED:false}
# Writer-lease owner. Must be unique per instance in a multi-instance deployment; the startup
# gate treats the default as single-instance.
instance-id: ${APP_FILESERVER_PLATFORM_INSTANCE_ID:local-node}
default-namespace: ${APP_FILESERVER_PLATFORM_DEFAULT_NAMESPACE:default}
storage:
# Absolute, on its own volume, and never under a web or configuration root. A relative path
# resolves against the process working directory, which differs between a container and a
# test, so it is refused.
root: ${APP_FILESERVER_PLATFORM_STORAGE_ROOT:/var/lib/backend/files}
publish-mode: ${APP_FILESERVER_PLATFORM_STORAGE_PUBLISH_MODE:atomic-move-preferred}
buffer-size: ${APP_FILESERVER_PLATFORM_STORAGE_BUFFER_SIZE:128KB}
forbidden-root-ancestors: ${APP_FILESERVER_PLATFORM_STORAGE_FORBIDDEN_ROOT_ANCESTORS:/app,/etc,/usr/share/nginx/html}
upload:
# Shared with spring.servlet.multipart below through the same placeholder. Two independent
# limits would let the servlet container reject an upload the Fileserver policy allows,
# before any Fileserver code — including its error mapping — ever runs.
max-file-size: ${APP_FILESERVER_PLATFORM_UPLOAD_MAX_FILE_SIZE:100MB}
max-request-size: ${APP_FILESERVER_PLATFORM_UPLOAD_MAX_REQUEST_SIZE:110MB}
initial-reservation: ${APP_FILESERVER_PLATFORM_UPLOAD_INITIAL_RESERVATION:8MB}
max-parts: ${APP_FILESERVER_PLATFORM_UPLOAD_MAX_PARTS:16}
ttl: ${APP_FILESERVER_PLATFORM_UPLOAD_TTL:1h}
reservation-ttl: ${APP_FILESERVER_PLATFORM_UPLOAD_RESERVATION_TTL:24h}
lease-duration: ${APP_FILESERVER_PLATFORM_UPLOAD_LEASE_DURATION:30s}
require-content-length: ${APP_FILESERVER_PLATFORM_UPLOAD_REQUIRE_CONTENT_LENGTH:false}
download:
cache-control: ${APP_FILESERVER_PLATFORM_DOWNLOAD_CACHE_CONTROL:private, no-store}
inline-allowed: ${APP_FILESERVER_PLATFORM_DOWNLOAD_INLINE_ALLOWED:false}
max-ranges: ${APP_FILESERVER_PLATFORM_DOWNLOAD_MAX_RANGES:1}
# Applies to the single-range profile too, so the ceiling is not inert by default.
max-range-bytes: ${APP_FILESERVER_PLATFORM_DOWNLOAD_MAX_RANGE_BYTES:100MB}
zero-copy-enabled: ${APP_FILESERVER_PLATFORM_DOWNLOAD_ZERO_COPY_ENABLED:true}
zero-copy-minimum-bytes: ${APP_FILESERVER_PLATFORM_DOWNLOAD_ZERO_COPY_MINIMUM_BYTES:16MB}
transfer:
core-size: ${APP_FILESERVER_PLATFORM_TRANSFER_CORE_SIZE:8}
max-size: ${APP_FILESERVER_PLATFORM_TRANSFER_MAX_SIZE:32}
queue-capacity: ${APP_FILESERVER_PLATFORM_TRANSFER_QUEUE_CAPACITY:64}
await-seconds: ${APP_FILESERVER_PLATFORM_TRANSFER_AWAIT_SECONDS:300}
security:
# required | role-based | unenforced. `required` has no built-in policy and fails startup
# unless the deployment supplies a FileAccessPolicy bean; `unenforced` is refused under a
# production profile.
access-policy: ${APP_FILESERVER_PLATFORM_SECURITY_ACCESS_POLICY:required}
read-roles: ${APP_FILESERVER_PLATFORM_SECURITY_READ_ROLES:ROLE_FILE_READ}
write-roles: ${APP_FILESERVER_PLATFORM_SECURITY_WRITE_ROLES:ROLE_FILE_WRITE}
admin-roles: ${APP_FILESERVER_PLATFORM_SECURITY_ADMIN_ROLES:ROLE_FILE_ADMIN}
verification:
timeout: ${APP_FILESERVER_PLATFORM_VERIFICATION_TIMEOUT:5s}
require-media-type-verdict: ${APP_FILESERVER_PLATFORM_VERIFICATION_REQUIRE_MEDIA_TYPE_VERDICT:false}
inline-safe-profile: ${APP_FILESERVER_PLATFORM_VERIFICATION_INLINE_SAFE_PROFILE:false}
quota:
instance-upload-permits: ${APP_FILESERVER_PLATFORM_QUOTA_INSTANCE_UPLOAD_PERMITS:16}
scope-upload-permits: ${APP_FILESERVER_PLATFORM_QUOTA_SCOPE_UPLOAD_PERMITS:4}
direct-download-permits: ${APP_FILESERVER_PLATFORM_QUOTA_DIRECT_DOWNLOAD_PERMITS:64}
soft-high-water: ${APP_FILESERVER_PLATFORM_QUOTA_SOFT_HIGH_WATER:0.70}
hard-high-water: ${APP_FILESERVER_PLATFORM_QUOTA_HARD_HIGH_WATER:0.85}
admin:
enabled: ${APP_FILESERVER_PLATFORM_ADMIN_ENABLED:false}
orphan-minimum-age: ${APP_FILESERVER_PLATFORM_ADMIN_ORPHAN_MINIMUM_AGE:1h}
cleanup:
enabled: ${APP_FILESERVER_PLATFORM_CLEANUP_ENABLED:false}
interval: ${APP_FILESERVER_PLATFORM_CLEANUP_INTERVAL:60s}
max-items: ${APP_FILESERVER_PLATFORM_CLEANUP_MAX_ITEMS:100}
max-bytes: ${APP_FILESERVER_PLATFORM_CLEANUP_MAX_BYTES:1GB}
retry-backoff: ${APP_FILESERVER_PLATFORM_CLEANUP_RETRY_BACKOFF:5m}
tus:
enabled: ${APP_FILESERVER_PLATFORM_TUS_ENABLED:false}
httpbis-draft12:
# Unratified protocol; the contract can change without notice.
enabled: ${APP_FILESERVER_PLATFORM_HTTPBIS_DRAFT12_ENABLED:false}
nginx:
enabled: ${APP_FILESERVER_PLATFORM_NGINX_ENABLED:false}
internal-prefix: ${APP_FILESERVER_PLATFORM_NGINX_INTERNAL_PREFIX:/__files/}
object-suffix: ${APP_FILESERVER_PLATFORM_NGINX_OBJECT_SUFFIX:.bin}
minimum-size: ${APP_FILESERVER_PLATFORM_NGINX_MINIMUM_SIZE:16MB}
observability:
metrics-enabled: ${APP_FILESERVER_PLATFORM_OBSERVABILITY_METRICS_ENABLED:true}
# Secret. Keyed HMAC over file identifiers; an unkeyed digest of an enumerable id is
# reversible, so startup fails while metrics are on and this is blank.
fingerprint-key: ${APP_FILESERVER_PLATFORM_OBSERVABILITY_FINGERPRINT_KEY:}
rate-limit:
# Inbound HTTP enforcement is a separate axis from outbound provider activation.
# enabled=true with no exact EdgeRateLimitPort fails fast; it never installs a local fallback.
@@ -638,39 +714,6 @@ app:
caller-deadline-budget: 2s
# remote-addr-only | forwarded-headers-trusted (trusted ingress only)
client-ip-mode: ${APP_RATE_LIMIT_CLIENT_IP_MODE:remote-addr-only}
cache:
redis:
# true | false (boolean_strict). Redis cache adapter on/off.
enabled: ${APP_CACHE_REDIS_ENABLED}
# managed = module-owned Lettuce runtime; external = project-supplied RedisClient bean.
client-mode: ${APP_CACHE_REDIS_CLIENT_MODE:managed}
host: ${APP_CACHE_REDIS_HOST:}
port: ${APP_CACHE_REDIS_PORT:6379}
password: ${APP_CACHE_REDIS_PASSWORD:}
# Base64-encoded, at least 32 decoded bytes. Required when the managed runtime is enabled.
key-hmac-secret: ${APP_CACHE_REDIS_KEY_HMAC_SECRET:}
command-timeout: ${APP_CACHE_REDIS_COMMAND_TIMEOUT:2s}
maximum-queued-commands: ${APP_CACHE_REDIS_MAXIMUM_QUEUED_COMMANDS:8}
maximum-in-flight-bytes: ${APP_CACHE_REDIS_MAXIMUM_IN_FLIGHT_BYTES:16777216}
positive-ttl: ${APP_CACHE_DEFAULT_TTL:300s}
# Blank derives 80% of positive-ttl in typed settings.
positive-soft-ttl: ${APP_CACHE_REDIS_POSITIVE_SOFT_TTL:}
negative-ttl: ${APP_CACHE_NEGATIVE_TTL:60s}
ttl-jitter: ${APP_CACHE_REDIS_TTL_JITTER:0.10}
minimum-hard-ttl: ${APP_CACHE_REDIS_MINIMUM_HARD_TTL:1s}
namespace-application: ${APP_NAME:ca-skeleton}
namespace-environment: ${APP_CACHE_REDIS_NAMESPACE_ENVIRONMENT:local}
semantic-region: ${APP_CACHE_REDIS_SEMANTIC_REGION:default}
maximum-value-bytes: ${APP_CACHE_REDIS_MAXIMUM_VALUE_BYTES:1048576}
# Optional cache-only L1. Never reuse for session, idempotency or strict rate-limit state.
l1:
enabled: ${APP_CACHE_REDIS_L1_ENABLED:false}
maximum-entries: ${APP_CACHE_REDIS_L1_MAXIMUM_ENTRIES:10000}
maximum-weight-bytes: ${APP_CACHE_REDIS_L1_MAXIMUM_WEIGHT_BYTES:67108864}
maximum-entry-weight-bytes: ${APP_CACHE_REDIS_L1_MAXIMUM_ENTRY_WEIGHT_BYTES:1048576}
time-to-live: ${APP_CACHE_REDIS_L1_TTL:30s}
generation-recheck-interval: ${APP_CACHE_REDIS_L1_GENERATION_RECHECK_INTERVAL:5s}
invalidation-queue-capacity: ${APP_CACHE_REDIS_L1_INVALIDATION_QUEUE_CAPACITY:1024}
# Logical-cache-name → backendId routing (CacheStoreRouter). No keys by default —
# forks add e.g. `bindings: { worklog: redis }` or env APP_CACHE_BINDINGS_WORKLOG=redis.
# A binding to a backend that is not enabled fails startup (Layer 3 moved to router).
@@ -4,19 +4,9 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatCode;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import dev.caskeleton.adapter.outbound.cache.CacheRouterConfig;
import dev.caskeleton.adapter.outbound.cache.core.CacheBackend;
import dev.caskeleton.adapter.outbound.cache.core.CacheStore;
import dev.caskeleton.adapter.outbound.cache.core.CacheStoreRouter;
import dev.caskeleton.adapter.outbound.cache.redis.RedisCacheAdapterConfig;
import dev.caskeleton.adapter.outbound.cache.redis.RedisClient;
import dev.caskeleton.adapter.outbound.cache.redis.RedisRateLimitConfig;
import dev.caskeleton.adapter.outbound.fileserver.FileExportConfig;
import dev.caskeleton.adapter.outbound.fileserver.FileserverR2Config;
import dev.caskeleton.adapter.outbound.httpclient.OutboundHttpClient;
import dev.caskeleton.adapter.outbound.httpclient.OutboundHttpShutdownGuard;
import dev.caskeleton.adapter.outbound.httpclient.activation.ResolvedHttpClientCapability;
import dev.caskeleton.adapter.outbound.httpclient.resilience.OutboundHttpResilience;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import dev.caskeleton.adapter.outbound.messaging.MessagingConfig;
import dev.caskeleton.adapter.outbound.messaging.core.DisabledMessagePublisher;
import dev.caskeleton.adapter.outbound.messaging.core.MessageBroker;
@@ -41,29 +31,25 @@ import dev.caskeleton.application.notification.Notification;
import dev.caskeleton.application.notification.NotificationPort;
import dev.caskeleton.application.outbox.OutboxMessagePublishPort;
import dev.caskeleton.application.outbox.OutboxRelayFailureReportPort;
import dev.caskeleton.bootstrap.httpclient.HttpClientCompositionConfig;
import dev.caskeleton.bootstrap.autoconfigure.httpclient.HttpClientPlatformAutoConfiguration;
import dev.caskeleton.shared.error.AdapterDisabledException;
import dev.caskeleton.shared.ratelimit.EdgeRateLimitPort;
import java.util.Optional;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Layer 1 (D2) — {@code @ConditionalOnProperty} bean-gating contract (required_test {@code
* adapter-contract:{redis,kafka,slack-webhook,google-email}-disabled-default}).
* adapter-contract:{kafka,slack-webhook,google-email}-disabled-default}).
*
* <p>Asserts that with the default (env absent → disabled) the real adapter bean count is 0 and the
* router fails fast on unbound access; and that flipping the enable flag (with the integration
* client supplied) registers the real adapter and routes correctly. Also validates OCP: a second
* backend plugs in via new files only without changing existing configs.
* client supplied) registers the real adapter and routes correctly.
*
* <p>Notification: uses the router-fail-fast shape (mirrors cache D4). No per-channel {@code
* Disabled*Notifier} sentinel — unbound route → {@link AdapterDisabledException} from {@link
* RoutingNotifier}.
* <p>Notification: uses the router-fail-fast shape. No per-channel {@code Disabled*Notifier}
* sentinel — unbound route → {@link AdapterDisabledException} from {@link RoutingNotifier}.
*/
class OptionalAdapterBeanGatingTest {
@@ -72,20 +58,19 @@ class OptionalAdapterBeanGatingTest {
private final ApplicationContextRunner runner =
new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of())
// Registered as a real auto-configuration entry, which is how the composition root
// reaches it: the HTTP Client platform's off state is a property of that entry, not of a
// hand-assembled subset of its children.
.withConfiguration(AutoConfigurations.of(HttpClientPlatformAutoConfiguration.class))
.withUserConfiguration(
OutboundSupportConfig.class,
MessagingConfig.class,
KafkaAdapterConfig.class,
RedisCacheAdapterConfig.class,
RedisRateLimitConfig.class,
CacheRouterConfig.class,
NotificationConfig.class,
SlackNotificationAdapterConfig.class,
GoogleEmailNotificationAdapterConfig.class,
FileExportConfig.class,
FileserverR2Config.class,
HttpClientCompositionConfig.class,
StubClientsConfig.class);
@Test
@@ -97,16 +82,14 @@ class OptionalAdapterBeanGatingTest {
// real provider beans absent (Layer 1 — disabled, contributes nothing)
assertThat(context.getBeansOfType(MessageBroker.class)).isEmpty();
assertThat(context.getBeansOfType(CacheStore.class)).isEmpty();
assertThat(context.getBeansOfType(EdgeRateLimitPort.class)).isEmpty();
assertThat(context.containsBean("distributedRateLimiter")).isFalse();
assertThat(context.getBeansOfType(NotificationProvider.class)).isEmpty();
assertThat(context.getBeansOfType(FilePublicationPort.class)).isEmpty();
assertThat(context.getBeansOfType(OutboundHttpClient.class)).isEmpty();
assertThat(context.getBeansOfType(OutboundHttpShutdownGuard.class)).isEmpty();
assertThat(context.getBeansOfType(OutboundHttpResilience.class)).isEmpty();
assertThat(context.getBean(ResolvedHttpClientCapability.class).state())
.isEqualTo(ResolvedHttpClientCapability.State.DISABLED_VERIFIED);
// Not "an empty registry". With app.httpclient.enabled unset there is no registry, no
// transport provider and no gateway at all. The previous assertion — a registry bean
// holding no profiles — was what made the capability mandatory-with-a-switch rather than
// optional: the pool, TLS and credential machinery was still assembled around it.
assertThat(context.getBeansOfType(ClientRuntimeRegistry.class)).isEmpty();
// messaging: fail-fast sentinels satisfy the ports (Layer 3 fallback)
assertThat(context.getBean(MessagePublisher.class))
@@ -117,11 +100,6 @@ class OptionalAdapterBeanGatingTest {
assertThat(context.getBean(OutboxRelayFailureReportPort.class))
.isInstanceOf(Slf4jOutboxRelayFailureReportAdapter.class);
// cache D4: zero backends boot fine, unwired access fails fast in the router
CacheStoreRouter cacheRouter = context.getBean(CacheStoreRouter.class);
assertThatThrownBy(() -> cacheRouter.get("worklog", "k"))
.isInstanceOf(AdapterDisabledException.class);
// notification D4: zero providers boot fine, unbound route fails fast in RoutingNotifier
NotificationPort notificationPort = context.getBean(NotificationPort.class);
assertThat(notificationPort).isInstanceOf(RoutingNotifier.class);
@@ -153,34 +131,6 @@ class OptionalAdapterBeanGatingTest {
});
}
@Test
void legacyRedisEnableWithoutExplicitMigrationModeCreatesNoBackend() {
runner
.withPropertyValues("app.cache.redis.enabled=true", "app.cache.redis.client-mode=external")
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context.getBeansOfType(CacheBackend.class)).isEmpty();
});
}
@Test
void redisEnabledContributesTheBackendAndRoutesBoundLogicalCaches() {
runner
.withPropertyValues(
"app.cache.redis.enabled=true",
"app.cache.redis.client-mode=external",
"ca-skeleton.providers.redis.legacy-migration-enabled=true",
"app.cache.bindings.worklog=redis")
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context.getBeansOfType(CacheStore.class)).hasSize(1);
CacheStoreRouter router = context.getBean(CacheStoreRouter.class);
assertThat(router.get("worklog", "k")).isEmpty();
});
}
@Test
void slackWebhookEnabledContributesTheProviderAndRoutesBoundNotifications() {
runner
@@ -216,36 +166,6 @@ class OptionalAdapterBeanGatingTest {
});
}
@Test
void aSecondBackendPlugsInWithNewFilesOnlyAndBothRouteByLogicalName() {
// OCP proof: SecondBackendConfig simulates a future backend added as a NEW config
// only — RedisCacheAdapterConfig / CacheRouterConfig are not touched.
runner
.withUserConfiguration(SecondBackendConfig.class)
.withPropertyValues(
"app.cache.redis.enabled=true",
"app.cache.redis.client-mode=external",
"ca-skeleton.providers.redis.legacy-migration-enabled=true",
"app.cache.test-second.enabled=true",
"app.cache.bindings.worklog=redis",
"app.cache.bindings.session=test-second")
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context.getBeansOfType(CacheStore.class)).hasSize(2);
CacheStoreRouter router = context.getBean(CacheStoreRouter.class);
assertThat(router.get("session", "k")).contains("from-second-backend");
assertThat(router.get("worklog", "k")).isEmpty();
});
}
@Test
void aBindingToADisabledBackendFailsStartup() {
runner
.withPropertyValues("app.cache.bindings.worklog=redis")
.run(context -> assertThat(context).hasFailed());
}
@Test
void aRouteBindingToADisabledProviderFailsStartup() {
// configuration contradiction: route references a provider that contributed no bean
@@ -254,30 +174,6 @@ class OptionalAdapterBeanGatingTest {
.run(context -> assertThat(context).hasFailed());
}
/** Simulates a forking project's additional cache backend — new files only. */
@Configuration
static class SecondBackendConfig {
@Bean
@ConditionalOnProperty(name = "app.cache.test-second.enabled", havingValue = "true")
CacheBackend secondBackend() {
return new CacheBackend() {
@Override
public String backendId() {
return "test-second";
}
@Override
public Optional<String> get(String key) {
return Optional.of("from-second-backend");
}
@Override
public void put(String key, String value) {}
};
}
}
/** Supplies the integration-seam client beans an enabled adapter requires. */
@Configuration
static class StubClientsConfig {
@@ -287,19 +183,6 @@ class OptionalAdapterBeanGatingTest {
return message -> {};
}
@Bean
RedisClient redisClient() {
return new RedisClient() {
@Override
public Optional<String> read(String key) {
return Optional.empty();
}
@Override
public void write(String key, String value) {}
};
}
@Bean
SlackClient slackClient() {
return notification -> {};
@@ -0,0 +1,140 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import static org.assertj.core.api.Assertions.assertThat;
import dev.caskeleton.adapter.outbound.httpclient.api.ClientProfileName;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicCredentialBinding;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicTargetGateway;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import dev.caskeleton.adapter.outbound.httpclient.restclient.GenericHttpGateway;
import dev.caskeleton.adapter.outbound.httpclient.service.HttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.service.ReactiveHttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.webclient.ReactiveClientRuntime;
import dev.caskeleton.adapter.outbound.httpclient.webclient.ReactiveSseGateway;
import java.time.Clock;
import java.util.List;
import java.util.Map;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* What an enabled platform publishes.
*
* <p>The off-state contract lives in {@link HttpClientPlatformActivationTest}; every runner here is
* explicitly enabled, because "these beans exist" is only a meaningful claim once a deployment has
* asked for them.
*/
class HttpClientAutoConfigurationTest {
private final ApplicationContextRunner runner =
new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(HttpClientPlatformAutoConfiguration.class))
.withUserConfiguration(SupportingBeans.class)
.withPropertyValues("app.httpclient.enabled=true");
@Test
void publishesEveryCallerFacingEntryPoint() {
runner
.withPropertyValues(paymentClient())
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context).hasSingleBean(HttpServiceRegistry.class);
assertThat(context).hasSingleBean(ReactiveHttpServiceRegistry.class);
assertThat(context).hasSingleBean(GenericHttpGateway.class);
assertThat(context).hasSingleBean(ReactiveSseGateway.class);
assertThat(context).hasSingleBean(DynamicTargetGateway.class);
});
}
@Test
void bindsADynamicTargetPolicyWithoutAnyInheritedCredential() {
runner
.withPropertyValues(paymentClient())
.withPropertyValues(
"app.httpclient.dynamic-targets[0].name=webhook",
"app.httpclient.dynamic-targets[0].allowed-schemes[0]=https",
"app.httpclient.dynamic-targets[0].allowed-ports[0]=443",
"app.httpclient.dynamic-targets[0].max-redirect-hops=1")
.run(
context -> {
assertThat(context).hasNotFailed();
HttpClientPlatformSettings settings =
context.getBean(HttpClientPlatformSettings.class);
assertThat(settings.dynamicTargets())
.singleElement()
.satisfies(
target -> {
assertThat(target.name()).isEqualTo("webhook");
assertThat(target.tracePropagation()).isFalse();
});
});
}
@Test
void reactiveProfilesProduceAReactiveRuntime() {
runner
.withPropertyValues(
"app.httpclient.clients[0].name=events",
"app.httpclient.clients[0].base-url=https://events.test",
"app.httpclient.clients[0].allowed-hosts[0]=events.test",
"app.httpclient.clients[0].allowed-ports[0]=443",
"app.httpclient.clients[0].api=WEB_CLIENT",
"app.httpclient.clients[0].transport=REACTOR_NETTY",
"app.httpclient.clients[0].request.max-body-bytes=1024",
"app.httpclient.clients[0].tls.profile-id=events")
.run(
context -> {
assertThat(context).hasNotFailed();
ClientRuntimeRegistry registry = context.getBean(ClientRuntimeRegistry.class);
assertThat(registry.current(new ClientProfileName("events")))
.isInstanceOf(ReactiveClientRuntime.class);
});
}
@Test
void actuatorReportExposesNoTargetOrCredentialDetail() {
runner
.withPropertyValues(paymentClient())
.run(
context -> {
Map<String, Object> report =
new HttpClientActuatorEndpoint(context.getBean(ClientRuntimeRegistry.class))
.clients();
assertThat(report).containsKey("payment");
assertThat(report.toString())
.doesNotContain("https://payment.test")
.doesNotContain("secret")
.doesNotContain("Bearer");
});
}
private static String[] paymentClient() {
return new String[] {
"app.httpclient.clients[0].name=payment",
"app.httpclient.clients[0].base-url=https://payment.test",
"app.httpclient.clients[0].allowed-hosts[0]=payment.test",
"app.httpclient.clients[0].allowed-ports[0]=443",
"app.httpclient.clients[0].request.max-body-bytes=1024",
"app.httpclient.clients[0].tls.profile-id=payment"
};
}
/** Dynamic credential bindings are an explicit, empty-by-default list (design §9.4). */
@Configuration(proxyBeanMethods = false)
static class SupportingBeans {
@Bean
Clock clock() {
return Clock.systemUTC();
}
@Bean
List<DynamicCredentialBinding> dynamicCredentialBindings() {
return List.of();
}
}
}
@@ -0,0 +1,253 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import static org.assertj.core.api.Assertions.assertThat;
import dev.caskeleton.adapter.outbound.httpclient.auth.CredentialProviderRegistry;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicCredentialBinding;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicTargetGateway;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import dev.caskeleton.adapter.outbound.httpclient.resilience.ResilienceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.restclient.GenericHttpGateway;
import dev.caskeleton.adapter.outbound.httpclient.security.TlsMaterialProvider;
import dev.caskeleton.adapter.outbound.httpclient.service.HttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.service.ReactiveHttpServiceRegistry;
import dev.caskeleton.adapter.outbound.httpclient.webclient.ReactiveSseGateway;
import java.time.Clock;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* The HTTP Client platform exists only where a deployment asked for it.
*
* <p>Every case here was reachable before this boundary existed. A service that never made an
* outbound call still built transport providers, credential providers, a resilience registry and
* five caller-facing gateways, and still read — and could still be failed by — HTTP configuration
* it had never written. The switch that was supposed to control that did not exist at all: the nine
* configurations sat inside the composition root's component scan, so they were assembled
* unconditionally.
*
* <p>The runner registers the platform the same way the application does, through its
* auto-configuration entry, so what is under test is the real activation path rather than a
* hand-assembled approximation of it.
*/
class HttpClientPlatformActivationTest {
private final ApplicationContextRunner runner =
new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(HttpClientPlatformAutoConfiguration.class))
.withUserConfiguration(SupportingBeans.class);
@Test
@DisplayName("an absent toggle holds no HTTP bean at all")
void theCapabilityIsAbsentUntilItIsExplicitlyEnabled() {
runner.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context).doesNotHaveBean(HttpClientPlatformSettings.class);
assertThat(context).doesNotHaveBean(ClientRuntimeRegistry.class);
assertThat(context).doesNotHaveBean(GenericHttpGateway.class);
assertThat(context).doesNotHaveBean(HttpServiceRegistry.class);
assertThat(context).doesNotHaveBean(ReactiveHttpServiceRegistry.class);
assertThat(context).doesNotHaveBean(ReactiveSseGateway.class);
assertThat(context).doesNotHaveBean(DynamicTargetGateway.class);
assertThat(context).doesNotHaveBean(ResilienceRegistry.class);
assertThat(context).doesNotHaveBean(CredentialProviderRegistry.class);
assertThat(context).doesNotHaveBean(TlsMaterialProvider.class);
assertThat(context).doesNotHaveBean(HttpClientActuatorEndpoint.class);
});
}
@Test
@DisplayName("a false toggle with a full valid profile still holds nothing")
void aValidProfileDoesNothingWhileTheSwitchIsOff() {
runner
.withPropertyValues("app.httpclient.enabled=false")
.withPropertyValues(validPaymentClient())
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context).doesNotHaveBean(HttpClientPlatformSettings.class);
assertThat(context).doesNotHaveBean(ClientRuntimeRegistry.class);
});
}
/**
* A malformed detail setting must not fail a deployment that never wanted the capability.
*
* <p>This is the whole reason the settings are bound inside the gated auto-configuration rather
* than by the global properties scan: a scanned properties class binds — and rejects — regardless
* of the master switch, which turns an optional capability into a mandatory one.
*/
@Test
@DisplayName("malformed detail settings cannot fail a deployment that never enabled the platform")
void detailSettingsAreNotBoundWhileTheCapabilityIsOff() {
runner
.withPropertyValues(
"app.httpclient.clients[0].name=payment",
"app.httpclient.clients[0].timeout.total-call=not-a-duration",
"app.httpclient.clients[0].transport=NOT_A_TRANSPORT",
"app.httpclient.clients[0].request.max-body-bytes=not-a-number")
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context).doesNotHaveBean(HttpClientPlatformSettings.class);
});
}
/**
* Spring's property condition treats anything that is not the expected value as "no".
*
* <p>So {@code enabled=yes} silently disables the platform. A deployment that meant to turn
* outbound HTTP on then fails on its first call with a missing-bean error, and nothing in the
* startup log mentions the toggle. Asserting it here at least makes the semantics deliberate: an
* unusable toggle is off, never on.
*/
@Test
@DisplayName("a toggle that is not a strict boolean does not enable the platform")
void aToggleThatIsNotABooleanDoesNotEnableTheCapability() {
for (String unusable : List.of("yes", "1", "on", "")) {
runner
.withPropertyValues("app.httpclient.enabled=" + unusable)
.withPropertyValues(validPaymentClient())
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context).doesNotHaveBean(ClientRuntimeRegistry.class);
});
}
}
@Test
@DisplayName("enabling it assembles exactly the declared runtimes")
void enablingItAssemblesTheDeclaredRuntimes() {
enabled()
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context).hasSingleBean(HttpClientPlatformSettings.class);
assertThat(context).hasSingleBean(ClientRuntimeRegistry.class);
assertThat(context).hasSingleBean(GenericHttpGateway.class);
assertThat(context).hasSingleBean(HttpServiceRegistry.class);
assertThat(context).hasSingleBean(DynamicTargetGateway.class);
assertThat(context.getBean(ClientRuntimeRegistry.class).names())
.singleElement()
.satisfies(name -> assertThat(name.value()).isEqualTo("payment"));
});
}
/**
* A misspelled key is a configuration error, not a silently ignored one.
*
* <p>Dropping {@code timeout.total-call} leaves the client running the default four-second budget
* while the configuration says otherwise — the kind of divergence an outbound call platform
* should never make an operator discover from an incident.
*/
@Test
@DisplayName("an unknown key under the prefix is refused rather than ignored")
void anUnknownKeyUnderThePrefixIsRefused() {
enabled()
.withPropertyValues("app.httpclient.clients[0].timeuot.total-call=9s")
.run(context -> assertThat(context).hasFailed());
}
@Test
@DisplayName("an enabled platform with no client fails startup with the declared code")
void anEnabledPlatformWithoutAnyClientFailsStartup() {
runner
.withPropertyValues("app.httpclient.enabled=true")
.run(
context ->
assertThat(context)
.hasFailed()
.getFailure()
.hasStackTraceContaining("HTTPCLIENT_ACTIVE_WITHOUT_CLIENTS"));
}
@Test
@DisplayName("two clients whose names collide in the environment fail startup")
void collidingClientNamesFailStartup() {
enabled()
.withPropertyValues(
"app.httpclient.clients[1].name=payment_api",
"app.httpclient.clients[1].base-url=https://payment.test",
"app.httpclient.clients[1].allowed-hosts[0]=payment.test",
"app.httpclient.clients[1].allowed-ports[0]=443",
"app.httpclient.clients[1].request.max-body-bytes=1048576",
"app.httpclient.clients[1].tls.profile-id=payment",
"app.httpclient.clients[0].name=payment-api")
.run(
context ->
assertThat(context)
.hasFailed()
.getFailure()
.hasStackTraceContaining("normalise to the same environment variable segment"));
}
@Test
@DisplayName("a dynamic target policy is registered under the name it carries")
void aDynamicTargetPolicyIsRegisteredUnderItsOwnName() {
enabled()
.withPropertyValues(
"app.httpclient.dynamic-targets[0].name=webhook",
"app.httpclient.dynamic-targets[0].allowed-schemes[0]=https",
"app.httpclient.dynamic-targets[0].allowed-ports[0]=443",
"app.httpclient.dynamic-targets[0].max-redirect-hops=1")
.run(
context -> {
assertThat(context).hasNotFailed();
HttpClientPlatformSettings settings =
context.getBean(HttpClientPlatformSettings.class);
assertThat(settings.dynamicTargets())
.singleElement()
.satisfies(
target -> {
assertThat(target.name()).isEqualTo("webhook");
assertThat(target.tracePropagation()).isFalse();
});
});
}
private ApplicationContextRunner enabled() {
return runner
.withPropertyValues("app.httpclient.enabled=true")
.withPropertyValues(validPaymentClient());
}
private static String[] validPaymentClient() {
return new String[] {
"app.httpclient.clients[0].name=payment",
"app.httpclient.clients[0].base-url=https://payment.test",
"app.httpclient.clients[0].allowed-hosts[0]=payment.test",
"app.httpclient.clients[0].allowed-ports[0]=443",
"app.httpclient.clients[0].request.max-body-bytes=1048576",
"app.httpclient.clients[0].tls.profile-id=payment"
};
}
/**
* The collaborators the composition root normally supplies.
*
* <p>The {@link Clock} is the interesting one. It used to come from the platform's own resilience
* configuration, which meant every deployment inherited its clock from a capability it might not
* use; behind the master switch that would have removed the application's clock whenever outbound
* HTTP was off. It now comes from the composition root, and this fixture stands in for it.
*/
@Configuration(proxyBeanMethods = false)
static class SupportingBeans {
@Bean
Clock clock() {
return Clock.systemUTC();
}
@Bean
List<DynamicCredentialBinding> dynamicCredentialBindings() {
return List.of();
}
}
}
@@ -0,0 +1,205 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.core.env.StandardEnvironment;
import org.springframework.core.env.SystemEnvironmentPropertySource;
/**
* Closes the loop between the settings tree, its documented environment surface, and the binder.
*
* <p>"Every setting is managed through the environment" is two claims at once: that each field has
* an environment form, and that each documented name still maps to a field. Nothing enforced
* either. A field added to a nested record acquired no documentation, and a documented name whose
* field had been renamed kept being published to operators who would set it and see nothing happen.
*
* <p>The Gradle {@code verifyEnvKeys} check cannot cover this: it compares three text files, which
* proves a key is declared consistently but not that anything reads it. Only {@code
* APP_HTTPCLIENT_ENABLED} goes through that check, because it is the one key with a
* deployment-independent value; the per-client surface is indexed and per-deployment, and
* templating it in {@code application.yml} would materialise a nameless client in every deployment
* — which the settings' own aggregate validation correctly refuses.
*
* <p>The names go in as real environment variables through a {@link
* SystemEnvironmentPropertySource} rather than as hand-translated property names, so what is under
* test is the mapping the runtime actually performs.
*/
class HttpClientPlatformEnvManifestTest {
private static final String MANIFEST = "docs/httpclient/env-fields.yaml";
@Test
@DisplayName("the manifest and the settings tree describe the same fields")
void theManifestAndTheSettingsTreeAgree() {
Map<String, String> derived = HttpClientEnvironmentKeys.fieldToEnvTemplate();
assertThat(derived).as("the derivation itself must find something").isNotEmpty();
assertThat(manifest())
.as(
"%s must list exactly the leaf fields of HttpClientPlatformSettings, and map each to "
+ "the environment name the platform accepts. Derived:%n%s",
MANIFEST, asYaml(derived))
.containsExactlyInAnyOrderEntriesOf(derived);
}
@Test
@DisplayName("a client declared purely through environment variables binds")
void aClientDeclaredThroughTheEnvironmentBinds() {
Map<String, Object> variables = new LinkedHashMap<>();
variables.put("APP_HTTPCLIENT_ENABLED", "true");
variables.put("APP_HTTPCLIENT_CLIENTS_0_NAME", "payment");
variables.put("APP_HTTPCLIENT_CLIENTS_0_BASE_URL", "https://payment.test");
variables.put("APP_HTTPCLIENT_CLIENTS_0_ALLOWED_HOSTS_0", "payment.test");
variables.put("APP_HTTPCLIENT_CLIENTS_0_ALLOWED_PORTS_0", "443");
variables.put("APP_HTTPCLIENT_CLIENTS_0_REQUEST_MAX_BODY_BYTES", "1048576");
variables.put("APP_HTTPCLIENT_CLIENTS_0_TIMEOUT_TOTAL_CALL", "6s");
variables.put("APP_HTTPCLIENT_CLIENTS_0_PROTOCOLS_0", "HTTP_2");
variables.put("APP_HTTPCLIENT_CLIENTS_0_TLS_PROFILE_ID", "payment");
variables.put("APP_HTTPCLIENT_DYNAMIC_TARGETS_0_NAME", "webhook");
variables.put("APP_HTTPCLIENT_DYNAMIC_TARGETS_0_ALLOWED_SCHEMES_0", "https");
HttpClientPlatformSettings bound = bind(variables);
assertThat(bound.enabled()).isTrue();
assertThat(bound.clients())
.singleElement()
.satisfies(
client -> {
assertThat(client.name()).isEqualTo("payment");
assertThat(client.baseUrl()).isEqualTo("https://payment.test");
assertThat(client.allowedHosts()).containsExactly("payment.test");
assertThat(client.allowedPorts()).containsExactly(443);
assertThat(client.protocols()).containsExactly("HTTP_2");
assertThat(client.request().maxBodyBytes()).isEqualTo(1048576L);
assertThat(client.timeout().totalCall()).hasSeconds(6);
assertThat(client.tls().profileId()).isEqualTo("payment");
});
assertThat(bound.dynamicTargets())
.singleElement()
.satisfies(
target -> {
assertThat(target.name()).isEqualTo("webhook");
assertThat(target.allowedSchemes()).containsExactly("https");
});
}
/** Two clients from the environment must stay two clients, not one merged one. */
@Test
@DisplayName("indexed clients keep their identity through the environment")
void twoIndexedClientsRemainDistinct() {
Map<String, Object> variables = new LinkedHashMap<>();
variables.put("APP_HTTPCLIENT_ENABLED", "true");
variables.put("APP_HTTPCLIENT_CLIENTS_0_NAME", "payment");
variables.put("APP_HTTPCLIENT_CLIENTS_1_NAME", "search");
assertThat(bind(variables).clients())
.extracting(HttpClientPlatformSettings.ClientSettings::name)
.containsExactly("payment", "search");
}
/**
* The check that strict binding cannot perform.
*
* <p>Spring enumerates an environment variable with dots where the property name has hyphens, so
* the unbound-element handler cannot tell a misspelling from a correct name. Left to it, this
* typo would silently leave the client on its default budget.
*/
@Test
@DisplayName("a misspelled environment variable is refused")
void aMisspelledEnvironmentVariableIsRefused() {
Map<String, Object> variables = new LinkedHashMap<>();
variables.put("APP_HTTPCLIENT_ENABLED", "true");
variables.put("APP_HTTPCLIENT_CLIENTS_0_NAME", "payment");
variables.put("APP_HTTPCLIENT_CLIENTS_0_TIMEUOT_TOTAL_CALL", "6s");
assertThatThrownBy(() -> bind(variables))
.isInstanceOf(IllegalStateException.class)
.hasMessageContaining("APP_HTTPCLIENT_CLIENTS_0_TIMEUOT_TOTAL_CALL");
}
@Test
@DisplayName("src/.env ships the platform disabled")
void theShippedEnvironmentKeepsThePlatformOff() {
assertThat(readLines(repositoryRoot().resolve("src/.env")))
.as("src/.env must ship the master switch, and ship it off")
.anySatisfy(line -> assertThat(line.trim()).isEqualTo("APP_HTTPCLIENT_ENABLED=false"));
}
/** Binds through the production binder, so the test exercises the real strictness rules. */
private static HttpClientPlatformSettings bind(Map<String, Object> variables) {
StandardEnvironment environment = new StandardEnvironment();
environment
.getPropertySources()
.addFirst(
new SystemEnvironmentPropertySource(
StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, variables));
return HttpClientPlatformSettingsBinder.bind(environment);
}
/** Renders the derivation as the manifest body, so a failure tells you what to write. */
private static String asYaml(Map<String, String> entries) {
StringBuilder yaml = new StringBuilder("fields:\n");
entries.forEach(
(field, env) ->
yaml.append(" - field: ")
.append(field)
.append('\n')
.append(" env: ")
.append(env)
.append('\n'));
return yaml.toString();
}
/** Reads the manifest without a YAML parser: it is a flat two-key list by construction. */
private static Map<String, String> manifest() {
Path path = repositoryRoot().resolve(MANIFEST);
if (!Files.exists(path)) {
return Map.of();
}
Map<String, String> entries = new LinkedHashMap<>();
String field = null;
for (String line : readLines(path)) {
String trimmed = line.trim();
if (trimmed.startsWith("- field:")) {
field = trimmed.substring("- field:".length()).trim();
} else if (trimmed.startsWith("env:") && field != null) {
entries.put(field, trimmed.substring("env:".length()).trim());
field = null;
}
}
return entries;
}
/** The module's working directory is {@code src/app-bootstrap} under Gradle. */
private static Path repositoryRoot() {
Path candidate = Path.of(System.getProperty("user.dir")).toAbsolutePath();
List<Path> tried = new ArrayList<>();
for (int depth = 0; depth < 4 && candidate != null; depth++) {
tried.add(candidate);
if (Files.exists(candidate.resolve("docs/registries/env-keys.yaml"))) {
return candidate;
}
candidate = candidate.getParent();
}
throw new AssertionError("repository root not found from " + tried);
}
private static List<String> readLines(Path path) {
try {
return Files.readAllLines(path);
} catch (IOException exception) {
throw new UncheckedIOException(path + " could not be read", exception);
}
}
}
@@ -0,0 +1,124 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
/**
* The aggregate rules a single client's own fields cannot express.
*
* <p>Constructed directly rather than through a context, because these are invariants of the value
* itself: a test that built them by hand and got an object back would be the bug.
*/
class HttpClientPlatformSettingsTest {
@Test
@DisplayName("an enabled platform with no client is a startup failure, not an idle platform")
void anEnabledPlatformWithoutAnyClientIsRefused() {
assertThatThrownBy(() -> new HttpClientPlatformSettings(true, List.of(), List.of()))
.isInstanceOf(IllegalStateException.class)
.hasMessageContaining("HTTPCLIENT_ACTIVE_WITHOUT_CLIENTS");
}
@Test
@DisplayName("a disabled platform with no client is the normal case")
void aDisabledPlatformWithoutAnyClientIsFine() {
assertThat(new HttpClientPlatformSettings(false, List.of(), List.of()).clients()).isEmpty();
}
@Test
@DisplayName("null lists bind as empty rather than exploding later")
void absentListsBecomeEmptyOnes() {
HttpClientPlatformSettings settings = new HttpClientPlatformSettings(false, null, null);
assertThat(settings.clients()).isEmpty();
assertThat(settings.dynamicTargets()).isEmpty();
}
@Test
@DisplayName("two clients with the same name are refused")
void duplicateClientNamesAreRefused() {
assertThatThrownBy(
() ->
new HttpClientPlatformSettings(
true, List.of(client("payment"), client("payment")), List.of()))
.isInstanceOf(IllegalStateException.class)
.hasMessageContaining("more than once")
.hasMessageContaining("payment");
}
/**
* Two names that are distinct as properties but identical as environment variables.
*
* <p>{@code payment-api} and {@code payment_api} both render as {@code PAYMENT_API}. Under the
* previous map-keyed shape one would have overwritten the other with nothing said about it, so a
* deployment could believe it had configured two upstreams and be calling one of them twice.
*/
@Test
@DisplayName("client names that collide once normalised for the environment are refused")
void environmentCollidingClientNamesAreRefused() {
assertThatThrownBy(
() ->
new HttpClientPlatformSettings(
true, List.of(client("payment-api"), client("payment_api")), List.of()))
.isInstanceOf(IllegalStateException.class)
.hasMessageContaining("normalise to the same environment variable segment")
.hasMessageContaining("PAYMENTAPI");
}
@Test
@DisplayName("a client without a name is refused")
void anUnnamedClientIsRefused() {
assertThatThrownBy(() -> new HttpClientPlatformSettings(true, List.of(client(" ")), List.of()))
.isInstanceOf(IllegalStateException.class)
.hasMessageContaining("name must be non-blank");
}
@Test
@DisplayName("the same rules apply to dynamic target policies")
void dynamicTargetNamesFollowTheSameRules() {
assertThatThrownBy(
() ->
new HttpClientPlatformSettings(
false, List.of(), List.of(dynamicTarget("web-hook"), dynamicTarget("webhook"))))
.isInstanceOf(IllegalStateException.class)
.hasMessageContaining("dynamic-targets");
}
/**
* A client whose only meaningful field here is its name.
*
* <p>The aggregate rules read nothing else, and filling in nineteen components would state a
* dependency this test does not have.
*/
private static HttpClientPlatformSettings.ClientSettings client(String name) {
return new HttpClientPlatformSettings.ClientSettings(
name,
"TRUSTED",
null,
List.of(),
List.of(),
"REST_CLIENT",
"APACHE",
List.of("HTTP_1_1"),
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null);
}
private static HttpClientPlatformSettings.DynamicTargetSettings dynamicTarget(String name) {
return new HttpClientPlatformSettings.DynamicTargetSettings(
name, List.of("https"), List.of(443), List.of(), List.of(), 0, false, List.of());
}
}
@@ -0,0 +1,144 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import static org.assertj.core.api.Assertions.assertThat;
import dev.caskeleton.adapter.outbound.httpclient.auth.CredentialType;
import dev.caskeleton.adapter.outbound.httpclient.auth.ReactiveCredentialProviderRegistry;
import dev.caskeleton.adapter.outbound.httpclient.auth.ReactiveRequestCredentialProvider;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicCredentialBinding;
import java.time.Clock;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* A reactive profile gets the credential it declared, or refuses to start.
*
* <p>It used to get neither. The composition root wired {@code NoAuthCredentialProvider} as the one
* reactive provider for every profile, so a WEB_CLIENT profile declaring BASIC, an API key or a
* static bearer started cleanly and then sent every request anonymously. The 401 that came back was
* indistinguishable from an upstream problem.
*/
class ReactiveAuthenticationContractTest {
private final ApplicationContextRunner runner =
new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(HttpClientPlatformAutoConfiguration.class))
.withUserConfiguration(SupportingBeans.class)
.withPropertyValues("app.httpclient.enabled=true");
@Test
@DisplayName("the reactive provider is a registry, not a hard-wired no-auth provider")
void theReactiveProviderServesEveryNonBlockingMechanism() {
runner
.withPropertyValues(reactiveClient("NONE"))
.run(
context -> {
assertThat(context).hasNotFailed();
ReactiveRequestCredentialProvider provider =
context.getBean(ReactiveRequestCredentialProvider.class);
assertThat(provider).isInstanceOf(ReactiveCredentialProviderRegistry.class);
ReactiveCredentialProviderRegistry registry =
(ReactiveCredentialProviderRegistry) provider;
assertThat(registry.supports(CredentialType.BASIC)).isTrue();
assertThat(registry.supports(CredentialType.API_KEY_HEADER)).isTrue();
assertThat(registry.supports(CredentialType.STATIC_BEARER)).isTrue();
// No non-blocking token load exists, so this one must not be quietly present either.
assertThat(registry.supports(CredentialType.OAUTH2_CLIENT_CREDENTIALS)).isFalse();
});
}
@Test
@DisplayName("a reactive profile declaring a supported mechanism starts")
void aReactiveProfileWithASupportedMechanismStarts() {
runner
.withPropertyValues(reactiveClient("STATIC_BEARER"))
.withPropertyValues(
"app.httpclient.clients[0].authentication.secret-reference=secret://env/EVENTS_TOKEN")
.run(context -> assertThat(context).hasNotFailed());
}
/**
* The combination with no non-blocking implementation fails at startup.
*
* <p>Refusing to start is the only honest outcome: the alternative that shipped was a context
* that started and sent nothing.
*/
@Test
@DisplayName("a reactive profile declaring OAuth2 is refused at startup")
void aReactiveProfileDeclaringOauthIsRefused() {
runner
.withPropertyValues(reactiveClient("OAUTH2_CLIENT_CREDENTIALS"))
.withPropertyValues("app.httpclient.clients[0].authentication.registration-id=events")
.run(
context ->
assertThat(context)
.hasFailed()
.getFailure()
.hasStackTraceContaining("REACTIVE_AUTHENTICATION_UNSUPPORTED"));
}
/**
* The new rule is about the reactive path only.
*
* <p>A blocking OAuth2 profile does fail in this context, but for its own long-standing reason:
* the runner supplies no {@code OAuth2AuthorizedClientManager}, so the blocking registry has no
* provider to register. The distinction matters — asserting merely "it failed" would let the
* reactive rule start rejecting blocking profiles too without anything noticing.
*/
@Test
@DisplayName("OAuth2 on a blocking profile is not rejected by the reactive rule")
void oauthOnABlockingProfileIsUnaffected() {
runner
.withPropertyValues(
"app.httpclient.clients[0].name=payment",
"app.httpclient.clients[0].base-url=https://payment.test",
"app.httpclient.clients[0].allowed-hosts[0]=payment.test",
"app.httpclient.clients[0].allowed-ports[0]=443",
"app.httpclient.clients[0].request.max-body-bytes=1024",
"app.httpclient.clients[0].tls.profile-id=payment",
"app.httpclient.clients[0].authentication.type=OAUTH2_CLIENT_CREDENTIALS",
"app.httpclient.clients[0].authentication.registration-id=payment")
.run(
context -> {
assertThat(context).hasFailed();
assertThat(
org.assertj.core.util.Throwables.getStackTrace(context.getStartupFailure()))
.contains("no credential provider is registered")
.doesNotContain("REACTIVE_AUTHENTICATION_UNSUPPORTED");
});
}
private static String[] reactiveClient(String authenticationType) {
return new String[] {
"app.httpclient.clients[0].name=events",
"app.httpclient.clients[0].base-url=https://events.test",
"app.httpclient.clients[0].allowed-hosts[0]=events.test",
"app.httpclient.clients[0].allowed-ports[0]=443",
"app.httpclient.clients[0].api=WEB_CLIENT",
"app.httpclient.clients[0].transport=REACTOR_NETTY",
"app.httpclient.clients[0].request.max-body-bytes=1024",
"app.httpclient.clients[0].tls.profile-id=events",
"app.httpclient.clients[0].authentication.type=" + authenticationType
};
}
@Configuration(proxyBeanMethods = false)
static class SupportingBeans {
@Bean
Clock clock() {
return Clock.systemUTC();
}
@Bean
List<DynamicCredentialBinding> dynamicCredentialBindings() {
return List.of();
}
}
}
@@ -0,0 +1,146 @@
package dev.caskeleton.bootstrap.autoconfigure.httpclient;
import static org.assertj.core.api.Assertions.assertThat;
import dev.caskeleton.adapter.outbound.httpclient.dynamic.DynamicCredentialBinding;
import dev.caskeleton.adapter.outbound.httpclient.profile.ClientRuntimeRegistry;
import dev.caskeleton.adapter.outbound.httpclient.service.HttpServiceRegistry;
import java.time.Clock;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Configurations an operator can write but must not be allowed to run.
*
* <p>Each case is refused before any runtime resource exists, which is the point: a rejected
* configuration must not have opened a connection pool, built a TLS context or resolved a
* credential on its way to being rejected.
*/
class UnsafeStartupConfigurationTest {
private static final String[] VALID_PAYMENT_PROFILE = {
"app.httpclient.enabled=true",
"app.httpclient.clients[0].name=payment",
"app.httpclient.clients[0].base-url=https://payment.test",
"app.httpclient.clients[0].allowed-hosts[0]=payment.test",
"app.httpclient.clients[0].allowed-ports[0]=443",
"app.httpclient.clients[0].transport=APACHE",
"app.httpclient.clients[0].request.max-body-bytes=1048576",
"app.httpclient.clients[0].tls.profile-id=payment"
};
private final ApplicationContextRunner runner =
new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(HttpClientPlatformAutoConfiguration.class))
.withUserConfiguration(SupportingBeans.class);
@Test
void productionTrustAllConfigurationFailsStartup() {
runner
.withPropertyValues(VALID_PAYMENT_PROFILE)
.withPropertyValues(
"spring.profiles.active=prod", "app.httpclient.clients[0].tls.trust-all=true")
.run(
context -> {
assertThat(context).hasFailed();
assertThat(context.getStartupFailure()).hasMessageContaining("TRUST_ALL_FORBIDDEN");
});
}
@Test
void productionPlaintextTargetFailsStartup() {
runner
.withPropertyValues(
"spring.profiles.active=prod",
"app.httpclient.enabled=true",
"app.httpclient.clients[0].name=payment",
"app.httpclient.clients[0].base-url=http://payment.test",
"app.httpclient.clients[0].allowed-hosts[0]=payment.test",
"app.httpclient.clients[0].allowed-ports[0]=80",
"app.httpclient.clients[0].request.max-body-bytes=1024",
"app.httpclient.clients[0].tls.profile-id=payment")
.run(
context -> {
assertThat(context).hasFailed();
assertThat(context.getStartupFailure())
.hasMessageContaining("PLAINTEXT_PRODUCTION_TARGET");
});
}
@Test
void productionSimpleRequestFactoryFailsStartup() {
runner
.withPropertyValues(VALID_PAYMENT_PROFILE)
.withPropertyValues(
"spring.profiles.active=prod", "app.httpclient.clients[0].transport=SIMPLE")
.run(
context -> {
assertThat(context).hasFailed();
assertThat(context.getStartupFailure())
.hasMessageContaining("PRODUCTION_SIMPLE_FACTORY_FORBIDDEN");
});
}
@Test
void unacknowledgedHttp3FailsStartup() {
runner
.withPropertyValues(VALID_PAYMENT_PROFILE)
.withPropertyValues("app.httpclient.clients[0].protocols[0]=HTTP_3")
.run(
context -> {
assertThat(context).hasFailed();
assertThat(context.getStartupFailure())
.hasMessageContaining("HTTP3_STABLE_FORBIDDEN");
});
}
@Test
void dynamicProfileWithADefaultCredentialFailsStartup() {
runner
.withPropertyValues(VALID_PAYMENT_PROFILE)
.withPropertyValues(
"app.httpclient.clients[0].mode=DYNAMIC",
"app.httpclient.clients[0].authentication.type=OAUTH2_CLIENT_CREDENTIALS",
"app.httpclient.clients[0].authentication.registration-id=payment")
.run(
context -> {
assertThat(context).hasFailed();
assertThat(context.getStartupFailure())
.hasMessageContaining("DYNAMIC_DEFAULT_CREDENTIAL_FORBIDDEN");
});
}
@Test
void bindsNamedProfileAndCreatesTypedRegistry() {
runner
.withPropertyValues(VALID_PAYMENT_PROFILE)
.run(
context -> {
assertThat(context).hasNotFailed();
assertThat(context).hasSingleBean(ClientRuntimeRegistry.class);
assertThat(context).hasSingleBean(HttpServiceRegistry.class);
assertThat(context.getBean(ClientRuntimeRegistry.class).names())
.singleElement()
.satisfies(name -> assertThat(name.value()).isEqualTo("payment"));
});
}
/** The collaborators the composition root normally supplies. */
@Configuration(proxyBeanMethods = false)
static class SupportingBeans {
@Bean
Clock clock() {
return Clock.systemUTC();
}
@Bean
List<DynamicCredentialBinding> dynamicCredentialBindings() {
return List.of();
}
}
}
@@ -0,0 +1,688 @@
package dev.caskeleton.bootstrap.contract;
import static org.assertj.core.api.Assertions.assertThat;
import dev.caskeleton.bootstrap.contract.support.RepositoryContractResources;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;
class ConditionalTransportQualificationContractTest {
// 29 pre-existing controls plus the eight release-blocking HTTP Client Platform gates
// registered in .github/ci-gate-matrix.yml (design §38).
private static final int EXPECTED_GATE_COUNT = 38;
/**
* Filler gates a well-formed fixture needs beside its one target gate.
*
* <p>Derived rather than written down. The validator refuses a matrix whose size differs from its
* own embedded count, so a fixture built from a stale literal fails for the wrong reason and
* hides whatever the test was actually about.
*/
private static final int FILLER_GATE_COUNT = EXPECTED_GATE_COUNT - 1;
private static final Duration VALIDATOR_TIMEOUT = Duration.ofSeconds(10);
private static final Set<String> EXPECTED_GATE_FIELDS =
Set.of("id", "release_blocking", "mechanism", "ref", "workflow", "job", "execution");
private static final Set<String> ALLOWED_MECHANISMS =
Set.of(
"gradle-custom-task",
"gradle-plugin-task",
"contract-test",
"workflow-job",
"delegated-pending");
private static final Set<String> ALLOWED_EXECUTIONS = Set.of("check", "explicit", "job");
private static final Set<String> EXPECTED_GATE_IDS =
Set.of(
"format-lint",
"unit-and-contract-tests",
"conditional-transport-qualification",
"clean-architecture-dependencies",
"environment-contract",
"one-type-per-file",
"readme-command-drift",
"trivy-suppression-governance",
"quarantine-sunset",
"public-path-snapshot",
"dependency-locks",
"architecture-contract-test",
"sample-off",
"gate-matrix-lint",
"redis-sdk",
"jpa-candidate-evidence",
"jpa-r2-evidence",
"quality-release-gate",
"flaky-quarantine",
"dependency-review",
"dependency-submission",
"filesystem-vulnerability-scan",
"documentation-links",
"object-storage-minio-managed-contract",
"poster-image-migration",
"object-storage-minio-managed-fault",
"object-storage-aws-protected-qualification",
"redis-sdk-support-matrix",
"redis-sdk-topology-evidence",
// HTTP Client Platform release gates (design §38).
"httpclient-stable-contract",
"httpclient-security-suite",
"httpclient-fault-injection",
"httpclient-performance-certification",
"httpclient-spring62-api-surface",
"httpclient-spring62-runtime",
"httpclient-spring70-compatibility",
"httpclient-documentation-drift",
"httpclient-event-loop-blocking");
@Test
void ownerQualificationsNameEveryRequiredWireClassAndRootOnlyAggregates() throws IOException {
Path root = repositoryRoot();
String convention =
Files.readString(root.resolve("src/gradle/strict-qualification-test.gradle"));
String rootBuild = Files.readString(root.resolve("src/build.gradle"));
String graphql = Files.readString(root.resolve("src/adapter/inbound/graphql/build.gradle"));
String grpc = Files.readString(root.resolve("src/adapter/inbound/grpc/build.gradle"));
String websocket = Files.readString(root.resolve("src/adapter/inbound/websocket/build.gradle"));
assertThat(convention)
.contains("failOnNoMatchingTests = true")
.contains("failOnNoDiscoveredTests = true")
.contains("forbids skipped tests")
.contains("verifyRequiredJUnitClasses");
assertThat(graphql)
.contains("registerStrictQualificationTest")
.contains("dev.caskeleton.adapter.inbound.graphql.GraphqlHttpBoundaryQualificationTest");
assertThat(grpc)
.contains("registerStrictQualificationTest")
.contains("dev.caskeleton.adapter.inbound.grpc.GrpcSafeActivationTest")
.contains("dev.caskeleton.adapter.inbound.grpc.GrpcP1BoundaryWireTest");
assertThat(websocket)
.contains("registerStrictQualificationTest")
.contains("dev.caskeleton.adapter.inbound.websocket.WebSocketBoundaryQualificationTest");
assertThat(rootBuild)
.contains("tasks.register('conditionalTransportQualification')")
.contains(":adapter:inbound:graphql:graphqlTransportQualificationTest")
.contains(":adapter:inbound:grpc:grpcTransportQualificationTest")
.contains(":adapter:inbound:websocket:websocketTransportQualificationTest")
.doesNotContain("registerConditionalTransportQualificationTest")
.doesNotContain("GraphqlHttpBoundaryQualificationTest")
.doesNotContain("GrpcP1BoundaryWireTest")
.doesNotContain("WebSocketBoundaryQualificationTest");
}
@Test
void releaseBlockingQualityJobAndGateMatrixInvokeTheAggregate() throws IOException {
Path root = repositoryRoot();
String workflow = Files.readString(root.resolve(".github/workflows/ci-quality-gates.yml"));
String matrix = Files.readString(root.resolve(".github/ci-gate-matrix.yml"));
String validator = Files.readString(root.resolve(".github/scripts/verify-gate-matrix.sh"));
assertThat(workflow)
.contains("./gradlew conditionalTransportQualification")
.doesNotContain("conditionalTransportQualification --continue");
assertThat(matrix)
.contains("id: conditional-transport-qualification")
.contains("ref: conditionalTransportQualification")
.contains("job: quality-gates")
.contains("execution: explicit");
assertThat(validator).contains("readonly EXPECTED_GATE_COUNT=" + EXPECTED_GATE_COUNT);
}
@Test
void explicitFixtureRootRunsTheActualValidatorOutsideItsScriptLocation(@TempDir Path tempDir)
throws IOException {
Path fixtureRoot =
writeFixture(
tempDir.resolve("fixture"), "Run target", "./gradlew targetGate", FILLER_GATE_COUNT);
ScriptResult result = runValidator(fixtureRoot);
assertThat(result.exitCode()).isZero();
assertThat(result.output())
.contains(
"gate-matrix-lint: "
+ EXPECTED_GATE_COUNT
+ " gates, "
+ EXPECTED_GATE_COUNT
+ " verified, 0 delegated-pending")
.contains("gate-matrix-lint: OK");
}
@Test
void defaultModeValidatesTheRealRepositoryAndRetainsItsLocationGuard() throws IOException {
Path root = repositoryRoot();
String validator = Files.readString(validatorPath());
ScriptResult result = runScript(root, List.of());
assertThat(result.exitCode()).isZero();
assertThat(result.output()).contains("gate-matrix-lint: OK");
assertThat(validator)
.contains("EXPECTED_SCRIPT_DIR")
.contains("script location must be repository .github/scripts directory");
}
@Test
void defaultModeRejectsARelocatedScript(@TempDir Path tempDir) throws IOException {
Path fixtureRoot =
writeFixture(
tempDir.resolve("fixture"), "Run target", "./gradlew targetGate", FILLER_GATE_COUNT);
Files.createDirectories(fixtureRoot.resolve(".github/scripts"));
Path relocatedScript = fixtureRoot.resolve("relocated-verify-gate-matrix.sh");
Files.copy(validatorPath(), relocatedScript);
ScriptResult gitInit =
runCommand(fixtureRoot, List.of("git", "init", "--quiet", fixtureRoot.toString()));
assertThat(gitInit.exitCode()).isZero();
ScriptResult result = runScriptAt(relocatedScript, fixtureRoot, List.of());
assertThat(result.exitCode()).isNotZero();
assertThat(result.output())
.contains("script location must be repository .github/scripts directory");
}
@Test
void validatorRejectsMoreThanOneRepositoryRootArgument(@TempDir Path tempDir) throws IOException {
Path fixtureRoot =
writeFixture(
tempDir.resolve("fixture"), "Run target", "./gradlew targetGate", FILLER_GATE_COUNT);
ScriptResult result = runScript(fixtureRoot, List.of(fixtureRoot.toString(), "extra"));
assertThat(result.exitCode()).isNotZero();
assertThat(result.output()).contains("expected zero arguments or one repository root");
}
@Test
void validatorRejectsMissingRepositoryRootAndMatrix(@TempDir Path tempDir) throws IOException {
Path missingRoot = tempDir.resolve("missing-root");
ScriptResult missingRootResult = runScript(tempDir, List.of(missingRoot.toString()));
assertThat(missingRootResult.exitCode()).isNotZero();
assertThat(missingRootResult.output())
.contains("repository root is not a directory: " + missingRoot);
Path emptyRoot = tempDir.resolve("empty-root");
Files.createDirectories(emptyRoot);
ScriptResult missingMatrixResult = runValidator(emptyRoot);
assertThat(missingMatrixResult.exitCode()).isNotZero();
assertThat(missingMatrixResult.output())
.contains("missing " + emptyRoot.resolve(".github/ci-gate-matrix.yml"));
}
@Test
void deceptiveStepNameAndEchoDoNotSatisfyExplicitExecution(@TempDir Path tempDir)
throws IOException {
Path fixtureRoot =
writeFixture(
tempDir.resolve("fixture"), "./gradlew targetGate", "echo disabled", FILLER_GATE_COUNT);
ScriptResult result = runValidator(fixtureRoot);
assertRejectedAsNotExplicit(result);
}
@Test
void differentProjectTaskWithTheSameNameDoesNotSatisfyExplicitExecution(@TempDir Path tempDir)
throws IOException {
Path fixtureRoot =
writeFixture(
tempDir.resolve("fixture"),
"Run target",
"./gradlew :other:targetGate",
FILLER_GATE_COUNT);
ScriptResult result = runValidator(fixtureRoot);
assertRejectedAsNotExplicit(result);
}
@Test
void shorthandRunStepSatisfiesExplicitExecution(@TempDir Path tempDir) throws IOException {
Path fixtureRoot =
writeFixture(
tempDir.resolve("fixture"), "Run target", "./gradlew targetGate", FILLER_GATE_COUNT);
replace(
fixtureRoot.resolve(".github/workflows/fixture.yml"),
" - name: Run target\n run: ./gradlew targetGate\n",
" - run: ./gradlew targetGate\n");
ScriptResult result = runValidator(fixtureRoot);
assertThat(result.exitCode()).isZero();
assertThat(result.output()).contains("gate-matrix-lint: OK");
}
@Test
void leafCheckDoesNotSatisfyTheRequiredRootCheck(@TempDir Path tempDir) throws IOException {
Path fixtureRoot =
writeCheckFixture(tempDir.resolve("fixture"), "./gradlew :app-bootstrap:check", true);
ScriptResult result = runValidator(fixtureRoot);
assertThat(result.exitCode()).isNotZero();
assertThat(result.output())
.contains("gate 'target-gate' expects Gradle check in job 'target-job'");
}
@Test
void suppressionAndNonExecutionArgumentsDoNotSatisfyExplicitExecution(@TempDir Path tempDir)
throws IOException {
List<String> rejectedCommands =
List.of(
"./gradlew targetGate --dry-run",
"./gradlew targetGate -m",
"./gradlew targetGate -x targetGate",
"./gradlew targetGate --exclude-task targetGate",
"./gradlew targetGate \"--dry-run\"",
"./gradlew targetGate \\--dry-run",
"./gradlew targetGate --help",
"./gradlew targetGate --status");
for (int index = 0; index < rejectedCommands.size(); index++) {
Path fixtureRoot =
writeFixture(
tempDir.resolve("fixture-" + index),
"Run target",
rejectedCommands.get(index),
FILLER_GATE_COUNT);
ScriptResult result = runValidator(fixtureRoot);
assertThat(result.output()).as("command: %s", rejectedCommands.get(index)).isNotBlank();
assertRejectedAsNotExplicit(result);
}
}
@Test
void validatorRejectsWrongCountDuplicateIdUnregisteredTaskAndMissingJob(@TempDir Path tempDir)
throws IOException {
Path shortMatrix =
writeFixture(
tempDir.resolve("short-matrix"),
"Run target",
"./gradlew targetGate",
FILLER_GATE_COUNT - 1);
ScriptResult shortMatrixResult = runValidator(shortMatrix);
assertThat(shortMatrixResult.exitCode()).isNotZero();
assertThat(shortMatrixResult.output())
.contains(
"matrix has " + (EXPECTED_GATE_COUNT - 1) + " gates; expected " + EXPECTED_GATE_COUNT);
Path duplicateId =
writeFixture(
tempDir.resolve("duplicate-id"),
"Run target",
"./gradlew targetGate",
FILLER_GATE_COUNT);
replace(
duplicateId.resolve(".github/ci-gate-matrix.yml"), "id: filler-gate-01", "id: target-gate");
ScriptResult duplicateResult = runValidator(duplicateId);
assertThat(duplicateResult.exitCode()).isNotZero();
assertThat(duplicateResult.output()).contains("duplicate gate id 'target-gate'");
Path unregisteredTask =
writeFixture(
tempDir.resolve("unregistered-task"),
"Run target",
"./gradlew targetGate",
FILLER_GATE_COUNT);
Files.writeString(unregisteredTask.resolve("src/sample/build.gradle"), "plugins {}\n");
ScriptResult unregisteredResult = runValidator(unregisteredTask);
assertThat(unregisteredResult.exitCode()).isNotZero();
assertThat(unregisteredResult.output())
.contains("gate 'target-gate' references unregistered Gradle task 'targetGate'");
Path unrelatedName =
writeFixture(
tempDir.resolve("unrelated-name"),
"Run target",
"./gradlew targetGate",
FILLER_GATE_COUNT);
Files.writeString(
unrelatedName.resolve("src/sample/build.gradle"),
"someUnrelatedConfiguration {\n name: 'targetGate'\n}\n");
ScriptResult unrelatedNameResult = runValidator(unrelatedName);
assertThat(unrelatedNameResult.exitCode()).isNotZero();
assertThat(unrelatedNameResult.output())
.contains("gate 'target-gate' references unregistered Gradle task 'targetGate'");
Path missingJob =
writeFixture(
tempDir.resolve("missing-job"),
"Run target",
"./gradlew targetGate",
FILLER_GATE_COUNT);
replace(
missingJob.resolve(".github/ci-gate-matrix.yml"), "job: target-job", "job: missing-job");
ScriptResult missingJobResult = runValidator(missingJob);
assertThat(missingJobResult.exitCode()).isNotZero();
assertThat(missingJobResult.output())
.contains("gate 'target-gate' references missing job 'missing-job' in 'fixture.yml'");
}
@Test
void validatorRejectsUnsafeCustomTaskRefAndMissingCheckWiring(@TempDir Path tempDir)
throws IOException {
Path unsafeRef =
writeFixture(
tempDir.resolve("unsafe-ref"), "Run target", "./gradlew targetGate", FILLER_GATE_COUNT);
replace(
unsafeRef.resolve(".github/ci-gate-matrix.yml"), "ref: targetGate", "ref: targetGate.*");
ScriptResult unsafeRefResult = runValidator(unsafeRef);
assertThat(unsafeRefResult.exitCode()).isNotZero();
assertThat(unsafeRefResult.output())
.contains("gate 'target-gate' has unsafe Gradle custom task ref 'targetGate.*'");
Path missingWiring =
writeCheckFixture(tempDir.resolve("missing-wiring"), "./gradlew check", false);
ScriptResult missingWiringResult = runValidator(missingWiring);
assertThat(missingWiringResult.exitCode()).isNotZero();
assertThat(missingWiringResult.output())
.contains("gate 'target-gate' task 'targetGate' exists but is not wired into Gradle check");
}
@Test
void validatorDoesNotInterpretCustomTaskOrPluginRefsAsRegularExpressions(@TempDir Path tempDir)
throws IOException {
Path dottedTask =
writeFixture(
tempDir.resolve("dotted-task"), "Run target", "./gradlew foo.bar", FILLER_GATE_COUNT);
replace(dottedTask.resolve(".github/ci-gate-matrix.yml"), "ref: targetGate", "ref: foo.bar");
Files.writeString(dottedTask.resolve("src/sample/build.gradle"), "tasks.register('fooXbar')\n");
ScriptResult dottedTaskResult = runValidator(dottedTask);
assertThat(dottedTaskResult.exitCode()).isNotZero();
assertThat(dottedTaskResult.output())
.contains("gate 'target-gate' has unsafe Gradle custom task ref 'foo.bar'");
Path unsafePlugin =
writeCheckFixture(tempDir.resolve("unsafe-plugin"), "./gradlew check", true);
replace(
unsafePlugin.resolve(".github/ci-gate-matrix.yml"),
"mechanism: gradle-custom-task",
"mechanism: gradle-plugin-task");
replace(
unsafePlugin.resolve(".github/ci-gate-matrix.yml"),
"ref: targetGate",
"ref: com.diffplug.*@spotlessCheck");
Files.writeString(
unsafePlugin.resolve("src/sample/build.gradle"),
"plugins { id 'com.diffplug.unrelated' }\n");
ScriptResult unsafePluginResult = runValidator(unsafePlugin);
assertThat(unsafePluginResult.exitCode()).isNotZero();
assertThat(unsafePluginResult.output())
.contains(
"gate 'target-gate' has unsafe Gradle plugin task ref "
+ "'com.diffplug.*@spotlessCheck'");
}
@Test
void realGateMatrixHasTheExactSafeSchema() throws IOException {
LoaderOptions options = new LoaderOptions();
options.setAllowDuplicateKeys(false);
options.setMaxAliasesForCollections(0);
Object loaded =
new Yaml(new SafeConstructor(options))
.load(Files.readString(repositoryRoot().resolve(".github/ci-gate-matrix.yml")));
assertThat(loaded).isInstanceOf(Map.class);
Map<?, ?> root = (Map<?, ?>) loaded;
assertThat(root.keySet().stream().map(String::valueOf).toList()).containsExactly("gates");
assertThat(root.get("gates")).isInstanceOf(List.class);
List<?> gates = (List<?>) root.get("gates");
assertThat(gates).hasSize(EXPECTED_GATE_COUNT);
Set<String> ids = new LinkedHashSet<>();
for (Object rawGate : gates) {
assertThat(rawGate).isInstanceOf(Map.class);
Map<?, ?> gate = (Map<?, ?>) rawGate;
assertThat(gate).hasSize(EXPECTED_GATE_FIELDS.size());
assertThat(gate.keySet().stream().map(String::valueOf).toList())
.containsExactlyInAnyOrderElementsOf(EXPECTED_GATE_FIELDS);
String id = requireString(gate, "id");
assertThat(id).matches("[a-z0-9]+(?:-[a-z0-9]+)*");
assertThat(ids.add(id)).as("unique gate id: %s", id).isTrue();
assertThat(requireString(gate, "mechanism")).isIn(ALLOWED_MECHANISMS);
assertThat(requireString(gate, "execution")).isIn(ALLOWED_EXECUTIONS);
assertThat(requireString(gate, "ref")).isNotBlank();
assertThat(requireString(gate, "workflow")).endsWith(".yml");
assertThat(requireString(gate, "job")).isNotBlank();
Object releaseBlocking = gate.get("release_blocking");
assertThat(releaseBlocking).isInstanceOfAny(Boolean.class, String.class);
String releaseBlockingValue = String.valueOf(releaseBlocking);
assertThat(releaseBlockingValue).isIn("true", "false", "conditional");
if (releaseBlocking instanceof String) {
assertThat(releaseBlocking).isEqualTo("conditional");
}
}
assertThat(ids).containsExactlyInAnyOrderElementsOf(EXPECTED_GATE_IDS);
Map<?, ?> posterGate =
gates.stream()
.map(Map.class::cast)
.filter(gate -> "poster-image-migration".equals(gate.get("id")))
.findFirst()
.orElseThrow(() -> new AssertionError("missing Poster image migration gate"));
assertThat(requireString(posterGate, "ref")).isEqualTo("posterImageMigrationTest");
assertThat(requireString(posterGate, "workflow")).isEqualTo("object-storage-qualification.yml");
assertThat(requireString(posterGate, "job")).isEqualTo("poster-image-v7-migration");
assertThat(requireString(posterGate, "execution")).isEqualTo("explicit");
}
private static void assertRejectedAsNotExplicit(ScriptResult result) {
assertThat(result.exitCode()).isNotZero();
assertThat(result.output())
.contains("gate 'target-gate' task 'targetGate' is not explicit in job 'target-job'");
}
private static String requireString(Map<?, ?> gate, String field) {
Object value = gate.get(field);
assertThat(value).as("field %s", field).isInstanceOf(String.class);
return (String) value;
}
private static Path writeFixture(
Path root, String targetStepName, String targetCommand, int fillerGateCount)
throws IOException {
Path workflows = root.resolve(".github/workflows");
Files.createDirectories(workflows);
Files.createDirectories(root.resolve("src/sample"));
Files.writeString(root.resolve("src/sample/build.gradle"), "tasks.register('targetGate')\n");
StringBuilder workflow =
new StringBuilder()
.append("name: fixture\n")
.append("on: [push]\n")
.append("jobs:\n")
.append(" target-job:\n")
.append(" runs-on: ubuntu-latest\n")
.append(" steps:\n")
.append(" - name: ")
.append(targetStepName)
.append("\n")
.append(" run: ")
.append(targetCommand)
.append("\n");
for (int index = 1; index <= FILLER_GATE_COUNT; index++) {
workflow
.append(" filler-job-")
.append(twoDigits(index))
.append(":\n")
.append(" runs-on: ubuntu-latest\n")
.append(" steps:\n")
.append(" - run: echo filler\n");
}
Files.writeString(workflows.resolve("fixture.yml"), workflow);
StringBuilder matrix =
new StringBuilder()
.append("gates:\n")
.append(" - id: target-gate\n")
.append(" release_blocking: true\n")
.append(" mechanism: gradle-custom-task\n")
.append(" ref: targetGate\n")
.append(" workflow: fixture.yml\n")
.append(" job: target-job\n")
.append(" execution: explicit\n");
for (int index = 1; index <= fillerGateCount; index++) {
String suffix = twoDigits(index);
matrix
.append(" - id: filler-gate-")
.append(suffix)
.append("\n")
.append(" release_blocking: false\n")
.append(" mechanism: workflow-job\n")
.append(" ref: filler-job-")
.append(suffix)
.append("\n")
.append(" workflow: fixture.yml\n")
.append(" job: filler-job-")
.append(suffix)
.append("\n")
.append(" execution: job\n");
}
Files.writeString(root.resolve(".github/ci-gate-matrix.yml"), matrix);
return root;
}
private static Path writeCheckFixture(Path root, String checkCommand, boolean wireIntoCheck)
throws IOException {
Path fixtureRoot = writeFixture(root, "Run check", checkCommand, FILLER_GATE_COUNT);
replace(
fixtureRoot.resolve(".github/ci-gate-matrix.yml"),
"execution: explicit",
"execution: check");
if (wireIntoCheck) {
Files.writeString(
fixtureRoot.resolve("src/sample/build.gradle"),
"""
tasks.register('targetGate')
tasks.named('check') { dependsOn tasks.named('targetGate') }
""");
}
return fixtureRoot;
}
private static ScriptResult runValidator(Path fixtureRoot) throws IOException {
return runScript(fixtureRoot, List.of(fixtureRoot.toString()));
}
private static ScriptResult runScript(Path workingDirectory, List<String> arguments)
throws IOException {
return runScriptAt(validatorPath(), workingDirectory, arguments);
}
private static ScriptResult runScriptAt(
Path script, Path workingDirectory, List<String> arguments) throws IOException {
List<String> command = new ArrayList<>();
command.add("bash");
command.add(script.toString());
command.addAll(arguments);
return runCommand(workingDirectory, command);
}
private static ScriptResult runCommand(Path workingDirectory, List<String> command)
throws IOException {
Path outputFile = Files.createTempFile("gate-matrix-validator-", ".log");
Process process = null;
try {
process =
new ProcessBuilder(command)
.directory(workingDirectory.toFile())
.redirectErrorStream(true)
.redirectOutput(outputFile.toFile())
.start();
boolean finished;
try {
finished = process.waitFor(VALIDATOR_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS);
} catch (InterruptedException exception) {
terminateAndWait(process);
Thread.currentThread().interrupt();
throw new AssertionError("interrupted while waiting for gate matrix validator", exception);
}
if (!finished) {
terminateAndWait(process);
throw new AssertionError("gate matrix validator exceeded " + VALIDATOR_TIMEOUT);
}
return new ScriptResult(process.exitValue(), Files.readString(outputFile));
} finally {
if (process != null && process.isAlive()) {
terminateAndWait(process);
}
Files.deleteIfExists(outputFile);
}
}
private static void terminateAndWait(Process process) {
List<ProcessHandle> descendants = process.descendants().toList();
descendants.forEach(ProcessHandle::destroy);
process.destroy();
List<ProcessHandle> processTree = new ArrayList<>(descendants);
processTree.add(process.toHandle());
boolean interrupted = false;
try {
if (awaitExit(processTree)) {
return;
}
} catch (InterruptedException exception) {
interrupted = true;
}
processTree.stream().filter(ProcessHandle::isAlive).forEach(ProcessHandle::destroyForcibly);
try {
awaitExit(processTree);
} catch (InterruptedException exception) {
interrupted = true;
}
if (interrupted) {
Thread.currentThread().interrupt();
}
}
private static boolean awaitExit(List<ProcessHandle> processTree) throws InterruptedException {
CompletableFuture<?>[] exits =
processTree.stream().map(ProcessHandle::onExit).toArray(CompletableFuture<?>[]::new);
try {
CompletableFuture.allOf(exits).get(2, TimeUnit.SECONDS);
return true;
} catch (ExecutionException | TimeoutException exception) {
return false;
}
}
private static void replace(Path path, String target, String replacement) throws IOException {
String original = Files.readString(path);
assertThat(original).contains(target);
Files.writeString(path, original.replaceFirst(target, replacement));
}
private static String twoDigits(int value) {
return String.format("%02d", value);
}
private static Path validatorPath() {
return repositoryRoot().resolve(".github/scripts/verify-gate-matrix.sh");
}
private static Path repositoryRoot() {
return RepositoryContractResources.fromSystemProperty().repositoryRoot();
}
private record ScriptResult(int exitCode, String output) {}
}