Skip to content

Commit 61d0304

Browse files
chore: Merge branch 'main' into feat/airflow-opa
2 parents 33bcbf5 + a4a8953 commit 61d0304

File tree

3 files changed

+41
-11
lines changed

3 files changed

+41
-11
lines changed

.scripts/upload_new_jmx_exporter_version.sh

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,20 @@ fi
2323

2424
# deletes the temp directory
2525
function cleanup {
26-
rm -rf "$WORK_DIR"
26+
rm -rf "$WORK_DIR"
2727
}
2828

2929
# register the cleanup function to be called on the EXIT signal
3030
trap cleanup EXIT
3131

3232
cd "$WORK_DIR" || exit
3333

34-
src_file=jmx_prometheus-$VERSION-src.tar.gz
35-
3634
# JMX Exporter does not currently publish signatures or SBOMs (as of 2023-07-24, latest version at this point 0.19.0)
3735
echo "Downloading JMX Exporter"
38-
# JMX Exporter provides no offficial source tarballs, download from Git
39-
git clone https://github.com/prometheus/jmx_exporter "jmx_prometheus-${VERSION}" "--branch=${VERSION}" --depth=1
40-
41-
echo "Archiving JMX Exporter"
42-
git -C "jmx_prometheus-${VERSION}" archive "${VERSION}" --format=tar.gz --prefix="jmx_prometheus-${VERSION}-src/" > "${src_file}"
43-
sha256sum "${src_file}" | cut --delimiter=' ' --field=1 > "${src_file}.sha256"
36+
curl --fail -LOs "https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/$VERSION/jmx_prometheus_javaagent-$VERSION.jar"
4437

4538
echo "Uploading to Nexus"
46-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
47-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha256" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
39+
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "jmx_prometheus_javaagent-$VERSION.jar" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
4840

4941
echo "Successfully uploaded new version of JMX Exporter ($VERSION) to Nexus"
5042
echo "https://repo.stackable.tech/service/rest/repository/browse/packages/jmx-exporter/"

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
2424

2525
### Fixed
2626

27+
- druid: Fix CVE-2023-34455 in Druid `30.0.0` by deleting a dependency ([#935]).
2728
- hadoop: Fix the JMX exporter configuration for metrics suffixed with
2829
`_total`, `_info` and `_created` ([#962]).
2930

@@ -32,6 +33,7 @@ All notable changes to this project will be documented in this file.
3233
[#943]: https://github.com/stackabletech/docker-images/pull/943
3334
[#958]: https://github.com/stackabletech/docker-images/pull/958
3435
[#959]: https://github.com/stackabletech/docker-images/pull/959
36+
[#935]: https://github.com/stackabletech/docker-images/pull/935
3537
[#962]: https://github.com/stackabletech/docker-images/pull/962
3638
[#978]: https://github.com/stackabletech/docker-images/pull/978
3739
[#980]: https://github.com/stackabletech/docker-images/pull/980
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Fix CVE-2023-34455
2+
see https://github.com/stackabletech/vulnerabilities/issues/558
3+
4+
At the end of build process, Druid downloads dependencies directly from a remote
5+
Maven repository ignoring existing patches that have been applyed locally.
6+
These dependencies include all transitive dependencies too.
7+
The hadoop client depends on a vulnerable version of the snappy library which
8+
is then also downloaded even though a newer version is already on the system.
9+
10+
This patch removes the vulnerable jars.
11+
12+
diff --git a/distribution/pom.xml b/distribution/pom.xml
13+
index d5918710ef..2d5bfc6ab4 100644
14+
--- a/distribution/pom.xml
15+
+++ b/distribution/pom.xml
16+
@@ -259,6 +259,20 @@
17+
</arguments>
18+
</configuration>
19+
</execution>
20+
+ <execution>
21+
+ <id>fix-cve-2023-34455-remove-snappy</id>
22+
+ <phase>package</phase>
23+
+ <goals>
24+
+ <goal>exec</goal>
25+
+ </goals>
26+
+ <configuration>
27+
+ <executable>/usr/bin/rm</executable>
28+
+ <arguments>
29+
+ <argument>${project.build.directory}/hadoop-dependencies/hadoop-client-api/3.3.6/snappy-java-1.1.8.2.jar</argument>
30+
+ <argument>${project.build.directory}/hadoop-dependencies/hadoop-client-runtime/3.3.6/snappy-java-1.1.8.2.jar</argument>
31+
+ </arguments>
32+
+ </configuration>
33+
+ </execution>
34+
</executions>
35+
</plugin>
36+
<plugin>

0 commit comments

Comments
 (0)