GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@kuhe kuhe commented Sep 30, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@kuhe
kuhe requested a review from a team as a code owner September 30, 2024 16:44
@kuhe
kuhe force-pushed the fix/s3-sign branch from 86285c8 to c797084 Compare September 30, 2024 17:02
@kuhe kuhe changed the title fix/s3 sign fix(s3-request-presigner): enable overriding hoistable headers Sep 30, 2024
@kuhe
kuhe force-pushed the fix/s3-sign branch from c797084 to c80a162 Compare September 30, 2024 17:15
siddsriv
siddsriv approved these changes Sep 30, 2024
View reviewed changes
@kuhe
kuhe requested a review from a team as a code owner September 30, 2024 20:45
kuhe added 3 commits September 30, 2024 20:45
@kuhe
fix(s3-request-presigner): enable overriding hoistable headers
3f3f3a3
@kuhe
chore: update smithy hash
5fd7de9
@kuhe
chore: update versions
1a0f644
@kuhe
kuhe force-pushed the fix/s3-sign branch from 58bebdc to 1a0f644 Compare September 30, 2024 20:45
@kuhe
kuhe merged commit 3c2e59c into aws:main Oct 1, 2024
@kuhe
kuhe deleted the fix/s3-sign branch October 1, 2024 15:49
@github-actions

github-actions Bot commented Oct 17, 2024

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@siddsriv siddsriv siddsriv approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@kuhe @siddsriv
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.