GeezerVison is showing github.com — fix(s3-request-presigner): enable overriding hoistable headers by kuhe · Pull Request #6535 · aws/aws-sdk-js-v3
Conversation
kuhe
commented
Sep 30, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This requires codegen update to include smithy-lang/smithy-typescript#1421
This adds the hoistableHeaders configuration to s3 presigning.
This change enables the following and potentially other use cases while maintaining backwards compatibility:
const params = {
Key: "...",
Bucket: "...",
ServerSideEncryption: "aws:kms",
SSEKMSKeyId: "arn:aws:kms:us-west-2:0000:key/abcd-1234-abcd",
};
const s3Client = new S3Client();
const command = new PutObjectCommand(params);
const preSignedUrl =
(await getSignedUrl(s3Client, command, {
hoistableHeaders: new Set(["x-amz-server-side-encryption", "x-amz-server-side-encryption-aws-kms-key-id"]),
}));
context: #1701
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
kuhe
changed the title
fix/s3 sign
fix(s3-request-presigner): enable overriding hoistable headers
Sep 30, 2024
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
siddsriv
siddsriv approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.