Skip to content

Add a special case for how S3 requests should be signed - #1605

Merged
kubukoz merged 10 commits into
series/0.18from
s3-signing
Jan 2, 2025
Merged

Add a special case for how S3 requests should be signed#1605
kubukoz merged 10 commits into
series/0.18from
s3-signing

Conversation

@Baccata

@Baccata Baccata commented Oct 2, 2024

Copy link
Copy Markdown
Contributor

S3 enforces the presence of the X-AMZ-CONTENT-SHA256 header. This PR adds the necessary logic to special case this addition, and tests it against the S3-specific signer provided by the official java AWS SDK.

Replaces #1560

PR Checklist (not all items are relevant to all PRs)

  • Added unit-tests (for runtime code)
  • Updated changelog

authHeader ++ baseHeaders
}
(request: Request[F]) =>
preSign(request).flatMap { case (payloadHash, preparedRequest) =>

@Baccata Baccata Oct 2, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This PR is best compared side-by-side (split) in github, with whitespace hidden. This is one of the important changes

Comment thread modules/aws-http4s/src/smithy4s/aws/internals/AwsSigning.scala Outdated
Comment thread modules/aws-http4s/src/smithy4s/aws/internals/AwsSigning.scala Outdated
Comment thread modules/aws-http4s/src/smithy4s/aws/internals/AwsSigning.scala

@kubukoz kubukoz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mostly nitpicks

Comment thread modules/aws-http4s/src/smithy4s/aws/internals/AwsSigning.scala Outdated
Comment thread CHANGELOG.md
Comment thread CHANGELOG.md Outdated
@kubukoz
kubukoz merged commit 1d128fa into series/0.18 Jan 2, 2025
@kubukoz
kubukoz deleted the s3-signing branch January 2, 2025 16:59
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.

2 participants