build(deps): Kafka 클라이언트의 lz4-java·snappy-java를 고정한다
문제: Boot 4.0.9가 고르는 kafka-clients 4.1.2가 압축 라이브러리 두 개의 낡은 버전을 가져온다. - at.yawk.lz4:lz4-java 1.10.1: HIGH CVE-2026-106451(공유 임시 폴더로 native 라이브러리를 풀어 코드 실행). 1.11.4에서 고쳤다. - org.xerial.snappy:snappy-java 1.1.10.7: HIGH CVE-2026-93451(손상된 압축 입력으로 버퍼 넘침), CVE-2026-108106(압축 해제 중 메모리 할당 제한 없음). 1.1.10.9에서 고쳤다. messaging 플랫폼의 kafka leaf 셋, adapter:inbound:messaging, adapter:outbound:messaging-kafka, app-bootstrap이 가진다. 고친 방법: `pinned-*` 묶음에 `pinned-lz4-java`(1.11.4)와 `pinned-snappy-java`(1.1.10.9)를 더한다. 둘 다 고친 가장 작은 버전이다. lz4 1.11.4는 1.11.1~1.11.4에서 고친 lz4 MEDIUM·LOW 공지 다섯도 함께 푼다. - 버린 대안: kafka-clients를 올리기(`kafka.version` override). 4.1 줄에는 고친 패치가 없고, 4.3.2가 lz4 1.11.4·snappy 1.1.10.11을 가져오지만 Boot 4.0의 spring-kafka가 시험한 Kafka 줄을 벗어난다. 위험·한계: kafka-clients 4.1.2는 lz4 1.10.1에 맞춰 빌드됐다. Kafka 4.2.2가 1.11.2를, 4.3.2가 1.11.4를 쓰므로 Kafka가 쓰는 lz4 API는 1.11에서도 같다. 이 저장소는 Kafka 압축을 켜지 않아(설정·테스트에 `compression.type` 없음) 기존 테스트는 두 라이브러리를 부르지 않는다. 그래서 아래 탐침으로 kafka-clients의 압축 경로를 따로 봤다. 압축을 켠 실제 브로커 왕복은 보지 않았다. 검증(desktop, 이 트리 c5ed4659): - 세 빌드를 `--write-locks`로 다시 썼다. Kafka를 쓰는 lockfile 6개에서 lz4-java 1.10.1→1.11.4, snappy-java 1.1.10.7→1.1.10.9만 바뀌었다. - `:messaging:messaging-kafka:check :messaging:messaging-spring-boot-starter-kafka:check :messaging:messaging-spring-boot-starter:check :adapter:inbound:messaging:check :adapter:outbound:messaging-kafka:check :app-bootstrap:check verifyDependencyLocks` rc=0. 클래스패스가 바뀐 leaf의 test가 다시 돌았다: messaging-kafka 87, starter 77, starter-kafka 2, adapter:outbound:messaging-kafka 4, 실패 0. - `verifyMessagingCertificationEvidence`(messaging-certification workflow의 PR job, 실제 Kafka 컨테이너) rc=0, 인증 lane 37 실패 0. - 탐침(커밋하지 않음): kafka-clients 4.1.2의 `MemoryRecords.withRecords`로 lz4·snappy batch를 만들고 다시 읽는 프로그램. 새 jar 쌍과 옛 jar 쌍 모두 rc=0, 두 레코드와 값 10006바이트를 그대로 읽었고 batch 크기도 같다(lz4 145, snappy 581바이트).
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# 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.
|
||||
at.yawk.lz4:lz4-java:1.10.1=integrationTestRuntimeClasspath,jmhRuntimeClasspath,runtimeClasspath,testFixturesRuntimeClasspath,testRuntimeClasspath
|
||||
at.yawk.lz4:lz4-java:1.11.4=integrationTestRuntimeClasspath,jmhRuntimeClasspath,runtimeClasspath,testFixturesRuntimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.21=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
com.github.ben-manes.caffeine:caffeine:3.2.4=annotationProcessor,integrationTestAnnotationProcessor,jmhAnnotationProcessor,testAnnotationProcessor,testFixturesAnnotationProcessor
|
||||
com.github.docker-java:docker-java-api:3.7.1=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
@@ -108,6 +108,6 @@ org.testcontainers:testcontainers-junit-jupiter:2.0.5=integrationTestCompileClas
|
||||
org.testcontainers:testcontainers-kafka:2.0.5=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
org.testcontainers:testcontainers-toxiproxy:2.0.5=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
org.testcontainers:testcontainers:2.0.5=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.7=integrationTestRuntimeClasspath,jmhRuntimeClasspath,runtimeClasspath,testFixturesRuntimeClasspath,testRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.9=integrationTestRuntimeClasspath,jmhRuntimeClasspath,runtimeClasspath,testFixturesRuntimeClasspath,testRuntimeClasspath
|
||||
org.xmlresolver:xmlresolver:5.3.3=checkstyle,spotbugs
|
||||
empty=
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 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.
|
||||
at.yawk.lz4:lz4-java:1.10.1=runtimeClasspath,testRuntimeClasspath
|
||||
at.yawk.lz4:lz4-java:1.11.4=runtimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.21=runtimeClasspath,testRuntimeClasspath
|
||||
com.github.ben-manes.caffeine:caffeine:3.2.4=annotationProcessor,testAnnotationProcessor
|
||||
com.github.kevinstern:software-and-algorithms:1.0=annotationProcessor,testAnnotationProcessor
|
||||
@@ -99,7 +99,7 @@ org.springframework:spring-core:7.0.10=compileClasspath,runtimeClasspath,testCom
|
||||
org.springframework:spring-expression:7.0.10=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-jdbc:7.0.10=runtimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-tx:7.0.10=runtimeClasspath,testRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.7=runtimeClasspath,testRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.9=runtimeClasspath,testRuntimeClasspath
|
||||
org.xmlresolver:xmlresolver:5.3.3=checkstyle,spotbugs
|
||||
tools.jackson.core:jackson-core:3.1.7=runtimeClasspath,testRuntimeClasspath
|
||||
tools.jackson.core:jackson-databind:3.1.7=runtimeClasspath,testRuntimeClasspath
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 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.
|
||||
at.yawk.lz4:lz4-java:1.10.1=integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
at.yawk.lz4:lz4-java:1.11.4=integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.21=integrationTestCompileClasspath,integrationTestRuntimeClasspath,runtimeClasspath,testRuntimeClasspath
|
||||
com.github.ben-manes.caffeine:caffeine:3.2.4=annotationProcessor,integrationTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.github.docker-java:docker-java-api:3.7.1=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
@@ -118,7 +118,7 @@ org.testcontainers:testcontainers-junit-jupiter:2.0.5=integrationTestCompileClas
|
||||
org.testcontainers:testcontainers-kafka:2.0.5=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
org.testcontainers:testcontainers-postgresql:2.0.5=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
org.testcontainers:testcontainers:2.0.5=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.7=integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.9=integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.xmlresolver:xmlresolver:5.3.3=checkstyle,spotbugs
|
||||
org.yaml:snakeyaml:2.5=integrationTestCompileClasspath,integrationTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
tools.jackson.core:jackson-core:3.1.7=integrationTestRuntimeClasspath,runtimeClasspath,testRuntimeClasspath
|
||||
|
||||
Reference in New Issue
Block a user