Skip to content

Conversation

@q-andy
Copy link
Contributor

@q-andy q-andy commented Aug 13, 2025

Description

Use AwsV4HttpSigner instead of Aws4Signer (deprecated)

https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/auth/aws/signer/AwsV4HttpSigner.html
https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/auth/signer/Aws4Signer.html

Related Issues

Resolves #4100

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@brianf-aws
Copy link
Contributor

Thank you for the fix! Lets apply spotless.

Team can we place backport labels I would say until 2.19 would be good

@q-andy q-andy temporarily deployed to ml-commons-cicd-env-require-approval August 13, 2025 23:15 — with GitHub Actions Inactive
@q-andy q-andy temporarily deployed to ml-commons-cicd-env-require-approval August 13, 2025 23:15 — with GitHub Actions Inactive
@q-andy q-andy temporarily deployed to ml-commons-cicd-env-require-approval August 13, 2025 23:15 — with GitHub Actions Inactive
@q-andy q-andy temporarily deployed to ml-commons-cicd-env-require-approval August 13, 2025 23:15 — with GitHub Actions Inactive
Copy link
Collaborator

@Zhangxunmt Zhangxunmt left a comment

Choose a reason for hiding this comment

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

LGTM. let's check the UTs before merging.

@dhrubo-os
Copy link
Collaborator

LGTM. let's check the UTs before merging.

+1

Copy link
Collaborator

@mingshl mingshl left a comment

Choose a reason for hiding this comment

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

ITs passed, thanks for the fix @q-andy

@codecov
Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.52%. Comparing base (a51e2a8) to head (c1b42f1).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #4102   +/-   ##
=========================================
  Coverage     81.52%   81.52%           
- Complexity     8800     8802    +2     
=========================================
  Files           761      761           
  Lines         38102    38104    +2     
  Branches       4248     4248           
=========================================
+ Hits          31061    31066    +5     
+ Misses         5196     5193    -3     
  Partials       1845     1845           
Flag Coverage Δ
ml-commons 81.52% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@q-andy q-andy temporarily deployed to ml-commons-cicd-env-require-approval August 14, 2025 00:19 — with GitHub Actions Inactive
@q-andy q-andy temporarily deployed to ml-commons-cicd-env-require-approval August 14, 2025 00:19 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt merged commit 71d47e9 into opensearch-project:main Aug 15, 2025
13 checks passed
q-andy added a commit to q-andy/ml-commons that referenced this pull request Aug 21, 2025
@q-andy
Copy link
Contributor Author

q-andy commented Sep 10, 2025

@dhrubo-os can we backport this to 3.1, 3.0, and 2.19?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Remote connector incorrectly SigV4 signs requests to certain remote services

5 participants