Skip to content
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

feat(s3): support generating endpoints from multi-region access point #2796

Merged
merged 9 commits into from
Sep 20, 2021

Conversation

AllanZhengYP
Copy link
Contributor

@AllanZhengYP AllanZhengYP commented Sep 18, 2021

Issue

Reverts: cfb3fff.

This change marks @aws-sdk/signature-v4-crt package is peer dependency. It makes sure the SDK won't install the package out-of-box. Because the @aws-sdk/signature-v4-crt package contains native code, it takes up 10MB on disk, and it is only required for signing MRAP request. So for users requiring this feature, they need to install the package explicitly.

TODO: Create Known Issues to the README.md too document users to install @aws-sdk/signature-v4-crt package explicitly

Testing

Manual test(Lambda, Lambda with bundler, Browser with Webpack), Unit test


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2021

Codecov Report

Merging #2796 (f2874d5) into main (66de569) will increase coverage by 0.24%.
The diff coverage is 88.88%.

❗ Current head f2874d5 differs from pull request most recent head d42f69e. Consider uploading reports for the commit d42f69e to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2796      +/-   ##
==========================================
+ Coverage   60.17%   60.41%   +0.24%     
==========================================
  Files         548      554       +6     
  Lines       28592    28883     +291     
  Branches     7000     7076      +76     
==========================================
+ Hits        17204    17450     +246     
- Misses      11388    11433      +45     
Impacted Files Coverage Δ
...s/middleware-bucket-endpoint/src/configurations.ts 70.00% <29.41%> (-30.00%) ⬇️
packages/signature-v4/src/headerUtil.ts 47.05% <47.05%> (ø)
packages/signature-v4-crt/src/headerUtil.ts 58.82% <58.82%> (ø)
packages/middleware-sdk-s3/src/S3SignatureV4.ts 88.00% <88.00%> (ø)
packages/signature-v4-crt/src/CrtSignerV4.ts 88.49% <88.49%> (ø)
...dleware-bucket-endpoint/src/bucketHostnameUtils.ts 96.07% <94.11%> (-0.63%) ⬇️
...re-bucket-endpoint/src/bucketEndpointMiddleware.ts 92.30% <96.77%> (-0.20%) ⬇️
...s/middleware-bucket-endpoint/src/bucketHostname.ts 100.00% <100.00%> (ø)
packages/middleware-signing/src/configurations.ts 88.88% <100.00%> (+0.51%) ⬆️
packages/s3-request-presigner/src/presigner.ts 100.00% <100.00%> (ø)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66de569...d42f69e. Read the comment docs.

… usage

This makes sure the type of CRT package is available and the Lerna builds
packages in right order--build crt signer package before buiding s3 middleware
package.
@AllanZhengYP AllanZhengYP marked this pull request as ready for review September 20, 2021 17:30
@github-actions
Copy link

github-actions bot commented Oct 5, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants