Skip to content

[SPARK-52803][BUILD] Update aws-java-sdk-sts to 1.12.720 in kinesis-asl module #51498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eschcam
Copy link
Contributor

@eschcam eschcam commented Jul 15, 2025

What changes were proposed in this pull request?

Upgrading aws-java-sdk-sts from 1.11.655 to 1.12.720

Does this PR introduce any user-facing change?

No

How was this patch tested?

Using the run-tests script

Was this patch authored or co-authored using generative AI tooling?

No

Upgrading aws-java-sdk-s3 from 1.11.655 to 1.12.261 resolves the following vulnerability
https://osv.dev/vulnerability/GHSA-c28r-hw5m-5gv3
@github-actions github-actions bot added the BUILD label Jul 15, 2025
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @eschcam . However, please follow HADOOP-19172 instead of 1.12.261.

@eschcam eschcam requested a review from dongjoon-hyun July 15, 2025 16:02
@dongjoon-hyun
Copy link
Member

The PR title and description is outdated, @eschcam .

@eschcam eschcam changed the title [SPARK-52803][BUILD] Update aws-java-sdk-s3 to 1.12.261 [SPARK-52803][BUILD] Update aws-java-sdk-s3 to 1.12.720 Jul 15, 2025
@eschcam eschcam force-pushed the aws-java-sdk-update branch from 785898b to a49de95 Compare July 15, 2025 16:13
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that you want to update aws-java-sdk-s3?

[SPARK-52803][BUILD] Update aws-java-sdk-s3 to 1.12.720

If then, this PR looks invalid because we don't use it, @eschcam . For S3, we use AWS SDK v2.

@eschcam
Copy link
Contributor Author

eschcam commented Jul 15, 2025

Are you sure that you want to update aws-java-sdk-s3?

[SPARK-52803][BUILD] Update aws-java-sdk-s3 to 1.12.720

If then, this PR looks invalid because we don't use it, @eschcam . For S3, we use AWS SDK v2.

* #50731

I was taking the package name from OSV Scanner. I believe it was detected as part of aws-java-sdk-sts

@dongjoon-hyun
Copy link
Member

Then, why do you mention aws-java-sdk-s3 in the PR title? I'm wondering where it comes from?

I was taking the package name from OSV Scanner. I believe it was detected as part of aws-java-sdk-sts

@eschcam
Copy link
Contributor Author

eschcam commented Jul 15, 2025

Then, why do you mention aws-java-sdk-s3 in the PR title? I'm wondering where it comes from?

I guess saying Update AWS Java SDK would be more accurate then?

I honestly didn't realise aws-java-sdk-s3 wasn't used in the project
That's what I get for taking package names from an OSV report 😆

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Jul 15, 2025

$ git grep -C1 aws.java.sdk.version
connector/kinesis-asl/pom.xml-      <artifactId>aws-java-sdk-sts</artifactId>
connector/kinesis-asl/pom.xml:      <version>${aws.java.sdk.version}</version>
connector/kinesis-asl/pom.xml-    </dependency>
--
pom.xml-    <!-- Should be consistent with Kinesis client dependency -->
pom.xml:    <aws.java.sdk.version>1.11.655</aws.java.sdk.version>
pom.xml-    <aws.java.sdk.v2.version>2.29.52</aws.java.sdk.v2.version>

It's only aws-java-sdk-sts dependency in kinesis-asl module. So, it seems that this PR is completely irrelevant any CVE issue. Please remove all irrelevant information. This is a false alarm.

@eschcam eschcam changed the title [SPARK-52803][BUILD] Update aws-java-sdk-s3 to 1.12.720 [SPARK-52803][BUILD] Update aws-java-sdk-sts to 1.12.720 Jul 16, 2025
@eschcam eschcam force-pushed the aws-java-sdk-update branch from a49de95 to 9bae3d5 Compare July 16, 2025 09:24
@eschcam eschcam requested a review from dongjoon-hyun July 16, 2025 13:59
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-52803][BUILD] Update aws-java-sdk-sts to 1.12.720 [SPARK-52803][BUILD] Update aws-java-sdk-sts to 1.12.720 in kinesis-asl module Jul 16, 2025
@@ -158,7 +158,7 @@
<avro.version>1.12.0</avro.version>
<aws.kinesis.client.version>1.12.0</aws.kinesis.client.version>
<!-- Should be consistent with Kinesis client dependency -->
<aws.java.sdk.version>1.11.655</aws.java.sdk.version>
<aws.java.sdk.version>1.12.720</aws.java.sdk.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, could you double-check that this is consistent with Kinesis client dependency? The line 160 show a requirement for kinesis-asl module.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 1.15.3 of amazon-kinesis-client seems to use version 1.12.681 of the aws-java-sdk libs https://mvnrepository.com/artifact/com.amazonaws/amazon-kinesis-client/1.15.3

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more recent versions of the client appear to use the V2 versions of the SDK https://mvnrepository.com/artifact/software.amazon.kinesis/amazon-kinesis-client/3.1.1

Copy link
Member

@dongjoon-hyun dongjoon-hyun Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double-checked the pom file. Unfortunately, it seems that we cannot change this dependency while we are using aws-kinesis-client 1.12.0.

<aws.kinesis.client.version>1.12.0</aws.kinesis.client.version>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would updating aws-kinesis-client to 1.15.3 and aws-java-sdk-sts to 1.12.681 be okay?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, it requires a manual testing for this module. Can you verify it with the real AWS Kinesis? Unfortunately, there were a few attempts on this module but nobody verified their updates with the real AWS Kinesis. That's the reason why this module is sitting on AWS SKD v1 exceptionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants