From ef92ea9931fa4358bea21bb0e1b211b4085e0555 Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Thu, 3 Oct 2024 09:22:27 -0700 Subject: [PATCH] SNOW-1707031 hadoop upgrade for vulnerability fix (#849) * fix: pom.xml to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-8089372 * test * test remove * revert * fix whitespace * upgrade netty too for the hadoop upgrade * Fix maven package * Fix maven install - works locally --------- Co-authored-by: snyk-bot Co-authored-by: Xin Huang --- pom.xml | 16 ++++++++++++++-- scripts/check_content.sh | 1 + scripts/process_licenses.py | 8 ++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 4ecf1e26a..f1c746a56 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ 1.11.0 2.17.2 32.0.1-jre - 3.3.6 + 3.4.0 1.5.2 true 0.8.5 @@ -61,7 +61,7 @@ 1.8 1.8 2.4.9 - 4.1.94.Final + 4.1.113.Final 9.37.3 3.1 1.14.1 @@ -240,6 +240,10 @@ org.apache.zookeeper zookeeper + + org.bouncycastle + bcprov-jdk15on + org.eclipse.jetty jetty-server @@ -385,6 +389,14 @@ javax.xml.bind jaxb-api + + org.apache.hadoop + hadoop-yarn-common + + + org.bouncycastle + bcprov-jdk15on + org.slf4j slf4j-reload4j diff --git a/scripts/check_content.sh b/scripts/check_content.sh index e4d3e2076..7608c23ec 100755 --- a/scripts/check_content.sh +++ b/scripts/check_content.sh @@ -28,6 +28,7 @@ if jar tvf $DIR/../target/snowflake-ingest-sdk.jar | awk '{print $8}' | \ grep -v PropertyList-1.0.dtd | \ grep -v properties.dtd | \ grep -v parquet.thrift | \ + grep -v assets/org/apache/commons/math3/random/new-joe-kuo-6.1000 | \ # Native zstd libraries are allowed grep -v -E '^darwin' | \ diff --git a/scripts/process_licenses.py b/scripts/process_licenses.py index 9f715abd6..b5181bce1 100644 --- a/scripts/process_licenses.py +++ b/scripts/process_licenses.py @@ -50,6 +50,14 @@ "com.nimbusds:nimbus-jose-jwt": APACHE_LICENSE, "com.github.stephenc.jcip:jcip-annotations": APACHE_LICENSE, "io.netty:netty-common": APACHE_LICENSE, + "io.netty:netty-handler": APACHE_LICENSE, + "io.netty:netty-resolver": APACHE_LICENSE, + "io.netty:netty-buffer": APACHE_LICENSE, + "io.netty:netty-transport": APACHE_LICENSE, + "io.netty:netty-transport-native-unix-common": APACHE_LICENSE, + "io.netty:netty-codec": APACHE_LICENSE, + "io.netty:netty-transport-native-epoll": APACHE_LICENSE, + "io.netty:netty-transport-classes-epoll": APACHE_LICENSE, "com.google.re2j:re2j": GO_LICENSE, "com.google.protobuf:protobuf-java": BSD_3_CLAUSE_LICENSE, "com.google.code.gson:gson": APACHE_LICENSE,