Skip to content

Commit 81b36f9

Browse files
authored
Merge pull request #158 from RADAR-base/security/march-2025-fixes
Apply security upgrades March 2025 platform upgrade
2 parents b090c1d + 39ba14a commit 81b36f9

File tree

6 files changed

+30
-19
lines changed

6 files changed

+30
-19
lines changed

.snyk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.25.0
3+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
4+
ignore:
5+
patch: {}

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ object Versions {
44

55
const val java = 17
66
const val kotlin = "1.9.22"
7-
const val wrapper = "8.4"
7+
const val wrapper = "8.9"
88

9-
const val radarCommons = "1.1.2"
10-
const val confluent = "7.7.0"
9+
const val radarCommons = "1.1.3"
10+
const val confluent = "7.8.1"
1111
const val kafka = "$confluent-ce"
1212
const val avro = "1.12.0"
1313

@@ -28,4 +28,6 @@ object Versions {
2828
const val junit = "5.10.2"
2929
const val wiremock = "3.0.1"
3030
const val mockito = "5.11.0"
31+
32+
const val nettyVersion = "4.1.118.Final"
3133
}

kafka-connect-fitbit-source/Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM --platform=$BUILDPLATFORM gradle:8.4-jdk17 as builder
15+
FROM --platform=$BUILDPLATFORM gradle:8.9-jdk17 AS builder
1616

1717
RUN mkdir /code
1818
WORKDIR /code
@@ -32,16 +32,11 @@ COPY ./kafka-connect-fitbit-source/src/ /code/kafka-connect-fitbit-source/src
3232

3333
RUN gradle jar
3434

35-
FROM confluentinc/cp-kafka-connect-base:7.5.0
36-
37-
USER root
38-
39-
RUN yum remove -y zulu11-ca-jdk-headless && yum remove -y zulu11-ca-jre-headless
40-
RUN yum install -y zulu17-ca-jdk-headless && yum install -y zulu17-ca-jre-headless
35+
FROM confluentinc/cp-kafka-connect-base:7.8.1
4136

4237
USER appuser
4338

44-
MAINTAINER Joris Borgdorff <joris@thehyve.nl>
39+
LABEL org.opencontainers.image.authors="pim@thehyve.nl"
4540

4641
LABEL description="Kafka REST API Source connector"
4742

kafka-connect-fitbit-source/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
description = "Kafka connector for Fitbit API source"
22

33
dependencies {
4+
5+
/* The entries in the block below are added here to force the version of
6+
* transitive dependencies and mitigate reported vulnerabilities
7+
*/
8+
implementation("io.netty:netty-handler-proxy:${Versions.nettyVersion}")
9+
implementation("io.netty:netty-handler:${Versions.nettyVersion}")
10+
411
api(project(":kafka-connect-rest-source"))
512
api(project(":oura-library"))
613
api("io.confluent:kafka-connect-avro-converter:${Versions.confluent}")

kafka-connect-oura-source/Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM --platform=$BUILDPLATFORM gradle:8.4-jdk17 as builder
15+
FROM --platform=$BUILDPLATFORM gradle:8.9-jdk17 AS builder
1616

1717
RUN mkdir /code
1818
WORKDIR /code
@@ -32,16 +32,11 @@ COPY ./oura-library/src/ /code/oura-library/src
3232

3333
RUN gradle jar
3434

35-
FROM confluentinc/cp-kafka-connect-base:7.5.0
36-
37-
USER root
38-
39-
RUN yum remove -y zulu11-ca-jdk-headless && yum remove -y zulu11-ca-jre-headless
40-
RUN yum install -y zulu17-ca-jdk-headless && yum install -y zulu17-ca-jre-headless
35+
FROM confluentinc/cp-kafka-connect-base:7.8.1
4136

4237
USER appuser
4338

44-
MAINTAINER Pauline Conde <[email protected]>
39+
LABEL org.opencontainers.image.authors="[email protected]"
4540

4641
LABEL description="Kafka Oura REST API Source connector"
4742

kafka-connect-oura-source/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
description = "Kafka connector for Oura API source"
22

33
dependencies {
4+
5+
/* The entries in the block below are added here to force the version of
6+
* transitive dependencies and mitigate reported vulnerabilities
7+
*/
8+
implementation("io.netty:netty-handler-proxy:${Versions.nettyVersion}")
9+
implementation("io.netty:netty-handler:${Versions.nettyVersion}")
10+
411
api(project(":oura-library"))
512
api("io.confluent:kafka-connect-avro-converter:${Versions.confluent}")
613
api("org.radarbase:radar-schemas-commons:${Versions.radarSchemas}")

0 commit comments

Comments
 (0)