Skip to content

Commit 5dd52e4

Browse files
committed
Security rem 3.0 kwa 1579
1 parent 0a3a0d3 commit 5dd52e4

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defaultsWithElasticsearch: &defaultsWithElasticsearch
1515
- GRADLE_USER_HOME: /home/circleci/repo/.gradle_home
1616
docker:
1717
- image: circleci/openjdk:11-jdk # primary container to issue gradle commands from
18-
- image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
18+
- image: docker.elastic.co/elasticsearch/elasticsearch:7.17.9
1919
environment:
2020
- cluster.name: elasticsearch-test
2121
- xpack.security.enabled: false

build.gradle.kts

+15-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ plugins {
5252
// https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/html/
5353
// - A Gradle plugin that allows you to package executable jar or war archives,
5454
// run Spring Boot applications, and use the dependency management provided by spring-boot-dependencies
55-
id("org.springframework.boot").version("2.7.0").apply(false)
55+
id("org.springframework.boot").version("2.7.9").apply(false)
5656

5757
// Gogradle plugin
5858
// https://github.com/gogradle/gogradle
@@ -301,6 +301,20 @@ subprojects {
301301
}
302302
}
303303

304+
if (requested.group == "org.yaml" && requested.name == "snakeyaml") {
305+
if(requested.version!! < "1.33") {
306+
useVersion(Versions.SNAKE_YAML)
307+
because("multiple CVEs for versions < 1.33")
308+
}
309+
}
310+
311+
if (requested.group == "org.apache.httpcomponents" && requested.name == "httpclient") {
312+
if(requested.version!! < "4.5.14") {
313+
useVersion("4.5.14")
314+
because("multiple CVEs for versions < 4.5.13")
315+
}
316+
}
317+
304318
if (requested.group == "org.apache.avro" && requested.name == "avro") {
305319
if(requested.version!! < "2.0") {
306320
useVersion(Versions.AVRO)

buildSrc/src/main/kotlin/utils.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ object Versions {
2121
const val NODE: String = "14.17.0"
2222
const val NPM: String = "8.4.1"
2323

24-
const val ELASTIC: String = "7.17.5"
25-
const val CONFLUENT: String = "7.1.5"
24+
const val ELASTIC: String = "7.17.9"
25+
const val CONFLUENT: String = "7.3.2"
2626
const val KAFKA: String = "${CONFLUENT}-ccs"
2727
const val SPRING_KAFKA: String = "3.1.2.RELEASE"
2828
const val AVRO: String = "1.11.1"
2929

3030
const val GROOVY: String = "3.0.9"
3131
const val SPOCK: String = "2.2-M1-groovy-3.0"
32-
const val ELASTIC_SERVER: String = "7.17.5" // When changed update references to ElasticsearchVersion and ./circleci/config.yml. This used by TestContainers.
32+
const val ELASTIC_SERVER: String = "7.17.9" // When changed update references to ElasticsearchVersion and ./circleci/config.yml. This used by TestContainers.
3333
const val TEST_CONTAINERS: String = "1.16.3"
3434
const val OPEN_SAML = "3.4.3"
3535
const val LOGBACK = "1.4.4"
@@ -38,10 +38,10 @@ object Versions {
3838
const val JUNIT = "4.12"
3939
const val AUTH0_JAVA_JWT = "3.4.1"
4040
const val PAC4J = "4.5.5"
41-
const val SNAKE_YAML = "1.30"
41+
const val SNAKE_YAML = "1.33"
4242
const val REACTOR_BOM = "Dysprosium-SR7"
4343
const val JSONP = "2.0.0-RC2"
44-
const val JACKSON_CORE = "2.13.3" // A lot of other dependencies bring this in though.
44+
const val JACKSON_CORE = "2.14.2" // A lot of other dependencies bring this in though.
4545

4646
const val ONESTOP_SCHEMAS: String = "0.7.6"
4747
}

kafka-common/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies {
2020

2121
// reactor release train BOM governs reactor dependency versions
2222
implementation(platform("io.projectreactor:reactor-bom:${Versions.REACTOR_BOM}"))
23-
implementation("io.projectreactor.netty:reactor-netty:1.0.16")
23+
implementation("io.projectreactor.netty:reactor-netty:1.0.28")
2424

2525
testImplementation("org.codehaus.groovy:groovy:${Versions.GROOVY}")
2626
testImplementation("org.spockframework:spock-core:${Versions.SPOCK}")

registry/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ dependencies {
4646
testImplementation("org.spockframework:spock-spring:${Versions.SPOCK}")
4747
testImplementation("org.spockframework:spock-core:${Versions.SPOCK}")
4848
testImplementation("org.codehaus.groovy.modules.http-builder:http-builder:0.7.1")
49-
testImplementation("org.springframework.boot:spring-boot-starter-test")
5049
testImplementation("org.springframework.kafka:spring-kafka-test:2.9.5")
5150
testImplementation("org.apache.kafka:kafka-streams-test-utils:${Versions.KAFKA}")
5251
testImplementation("org.apache.kafka:kafka-clients:${Versions.KAFKA}:test")

registry/src/test/groovy/org/cedar/onestop/registry/service/KafkaBeanConfigSpec.groovy

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import spock.lang.Specification
77
import spock.lang.Unroll
88

99
import java.util.concurrent.CompletableFuture
10+
import java.util.concurrent.TimeUnit
1011

1112
import static org.apache.kafka.streams.KafkaStreams.State.*
1213

@@ -37,6 +38,8 @@ class KafkaBeanConfigSpec extends Specification {
3738

3839
then:
3940
noExceptionThrown()
41+
// the test future sometimes hasn't completed by the time we check that it is done, so take a short nap
42+
sleep(1000)
4043
testFuture.isDone()
4144
}
4245

0 commit comments

Comments
 (0)