10000 Add support for sigV4a signing by fabianfett · Pull Request #645 · soto-project/soto-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for sigV4a signing #645

New issue

8000 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

Merged
merged 11 commits into from
Mar 24, 2025
Merged

Conversation

fabianfett
Copy link
Contributor
@fabianfett fabianfett commented Mar 20, 2025
  • Tested signing manually against S3 for both query and header
  • Writing a full test case is hard, as signing ECDSA signing is non deterministic
  • Added new HexEncoding mode, that can be used to make hexDigest() much faster :)

Fixes: #532

Copy link
codecov bot commented Mar 20, 2025

Codecov Report

Attention: Patch coverage is 77.06093% with 64 lines in your changes missing coverage. Please review.

Project coverage is 80.31%. Comparing base (a61299a) to head (fc1c49a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/SotoSignerV4/HexEncoding.swift 53.96% 29 Missing ⚠️
Sources/SotoSignerV4/signer.swift 82.56% 19 Missing ⚠️
Sources/SotoSignerV4/SigV4a.swift 85.04% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #645      +/-   ##
==========================================
- Coverage   80.49%   80.31%   -0.19%     
==========================================
  Files          81       83
10000
       +2     
  Lines        7019     7284     +265     
==========================================
+ Hits         5650     5850     +200     
- Misses       1369     1434      +65     

☔ 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.

@fabianfett fabianfett mentioned this pull request Mar 20, 2025
Copy link
Member
@adam-fowler adam-fowler left a comment

Choose a reason for hiding this comment

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

In general looks pretty good. Couple of minor issues
One question is there a plan to provide some API to choose sigv4a in AWSClient

var eq: UInt8 = 1
let length = lhs.count

for i in 0..<length {
Copy link
Member

Choose a reason for hiding this comment

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

Can you a comment explaining what is happening here

@adam-fowler adam-fowler merged commit f1728a7 into soto-project:main Mar 24, 2025
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SigV4a
2 participants
0