From ae14ef2d1fc22e6de70a1d924bf1e3769616b3ac Mon Sep 17 00:00:00 2001 From: exceptionfactory Date: Mon, 12 Sep 2022 10:47:49 -0500 Subject: [PATCH] NIFI-10373 Set managed version for AWS 1 and 2 SDK - Replaced individual AWS SDK versions with root managed dependency version - Set AWS SDK 1 version to 1.12.299 - Set AWS SDK 2 version to 2.17.270 - Suppressed false positive dependency vulnerability for aws-sdk-swf-libraries Signed-off-by: Pierre Villard This closes #6405. --- .../minifi-c2-cache-s3/pom.xml | 1 - minifi/pom.xml | 1 - .../nifi-property-protection-aws/pom.xml | 6 ---- nifi-dependency-check-maven/suppressions.xml | 5 +++ nifi-nar-bundles/nifi-aws-bundle/pom.xml | 25 --------------- .../nifi-registry-aws/pom.xml | 16 ---------- pom.xml | 32 +++++++++++++++++++ 7 files changed, 37 insertions(+), 49 deletions(-) diff --git a/minifi/minifi-c2/minifi-c2-cache/minifi-c2-cache-s3/pom.xml b/minifi/minifi-c2/minifi-c2-cache/minifi-c2-cache-s3/pom.xml index b13bba93fa09..68b285815f3f 100644 --- a/minifi/minifi-c2/minifi-c2-cache/minifi-c2-cache-s3/pom.xml +++ b/minifi/minifi-c2/minifi-c2-cache/minifi-c2-cache-s3/pom.xml @@ -34,7 +34,6 @@ limitations under the License. com.amazonaws aws-java-sdk-s3 - ${aws.sdk.version} commons-logging diff --git a/minifi/pom.xml b/minifi/pom.xml index bf0c402b5565..fb90e0d7128e 100644 --- a/minifi/pom.xml +++ b/minifi/pom.xml @@ -41,7 +41,6 @@ limitations under the License. 1.19.0 - 1.12.267 2.2.0 diff --git a/nifi-commons/nifi-property-protection-aws/pom.xml b/nifi-commons/nifi-property-protection-aws/pom.xml index 46ba7b2f1877..c1d241633d24 100644 --- a/nifi-commons/nifi-property-protection-aws/pom.xml +++ b/nifi-commons/nifi-property-protection-aws/pom.xml @@ -21,9 +21,6 @@ 1.18.0-SNAPSHOT nifi-property-protection-aws - - 2.17.106 - org.apache.nifi @@ -46,12 +43,10 @@ software.amazon.awssdk url-connection-client - ${aws.sdk.version} software.amazon.awssdk kms - ${aws.sdk.version} software.amazon.awssdk @@ -66,7 +61,6 @@ software.amazon.awssdk secretsmanager - ${aws.sdk.version} software.amazon.awssdk diff --git a/nifi-dependency-check-maven/suppressions.xml b/nifi-dependency-check-maven/suppressions.xml index 4397a9a5a3b9..90d67d1063a7 100644 --- a/nifi-dependency-check-maven/suppressions.xml +++ b/nifi-dependency-check-maven/suppressions.xml @@ -199,4 +199,9 @@ ^pkg:maven/org\.apache\.avro/avro@.*$ CVE-2021-43045 + + CVE-2022-31159 applies to AWS S3 library not the SWF libraries + ^pkg:maven/com\.amazonaws/aws\-java\-sdk\-swf\-libraries@.*$ + CVE-2022-31159 + diff --git a/nifi-nar-bundles/nifi-aws-bundle/pom.xml b/nifi-nar-bundles/nifi-aws-bundle/pom.xml index 529b9f23ce7e..a6ab4fc31e22 100644 --- a/nifi-nar-bundles/nifi-aws-bundle/pom.xml +++ b/nifi-nar-bundles/nifi-aws-bundle/pom.xml @@ -26,35 +26,10 @@ pom - - 1.12.267 1.14.8 - - - - com.amazonaws - aws-java-sdk-bom - ${aws-java-sdk-version} - pom - import - - - com.amazonaws - aws-java-sdk-core - ${aws-java-sdk-version} - - - commons-logging - commons-logging - - - - - - nifi-aws-processors nifi-aws-nar diff --git a/nifi-registry/nifi-registry-extensions/nifi-registry-aws/pom.xml b/nifi-registry/nifi-registry-extensions/nifi-registry-aws/pom.xml index f3620feb61e0..3900e33f9203 100644 --- a/nifi-registry/nifi-registry-extensions/nifi-registry-aws/pom.xml +++ b/nifi-registry/nifi-registry-extensions/nifi-registry-aws/pom.xml @@ -28,20 +28,4 @@ nifi-registry-aws-assembly nifi-registry-aws-extensions - - - 2.5.9 - - - - - - software.amazon.awssdk - bom - ${aws-java-sdk-version} - pom - import - - - diff --git a/pom.xml b/pom.xml index c2832538c8b7..80d07832046c 100644 --- a/pom.xml +++ b/pom.xml @@ -104,6 +104,8 @@ UTF-8 UTF-8 2014 + 1.12.299 + 2.17.270 2.9.1 1.7.10 4.10.0 @@ -516,6 +518,36 @@ snakeyaml ${snakeyaml.version} + + com.amazonaws + aws-java-sdk-bom + ${com.amazonaws.version} + pom + import + + + com.amazonaws + aws-java-sdk-core + ${com.amazonaws.version} + + + commons-logging + commons-logging + + + + + com.amazonaws + aws-java-sdk-bundle + ${com.amazonaws.version} + + + software.amazon.awssdk + bom + ${software.amazon.awssdk.version} + pom + import + com.fasterxml.jackson jackson-bom