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

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

Merged
merged 10 commits into from
Jan 2, 2025

Conversation

Baccata
Copy link
Contributor

@Baccata Baccata commented Oct 2, 2024

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) =>
Copy link
Contributor Author

@Baccata Baccata Oct 2, 2024

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

Copy link
Member

@kubukoz kubukoz left a comment

Choose a reason for hiding this comment

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

mostly nitpicks

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@kubukoz kubukoz merged commit 1d128fa into series/0.18 Jan 2, 2025
11 checks passed
@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