From 2b91fee1281e6e8c3d02e26a7ccc2608b87e9c36 Mon Sep 17 00:00:00 2001 From: Ran Vaknin Date: Thu, 9 Nov 2023 11:10:28 -0800 Subject: [PATCH 1/3] Add x-amz-expected-bucket-owner to headers to sign in presigned URL --- aws/signer/v4/v4.go | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/signer/v4/v4.go b/aws/signer/v4/v4.go index b2097937440..b542df93156 100644 --- a/aws/signer/v4/v4.go +++ b/aws/signer/v4/v4.go @@ -125,6 +125,7 @@ var requiredSignedHeaders = rules{ "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{}, "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{}, "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{}, + "X-Amz-Expected-Bucket-Owner": struct{}{}, "X-Amz-Grant-Full-control": struct{}{}, "X-Amz-Grant-Read": struct{}{}, "X-Amz-Grant-Read-Acp": struct{}{}, From 969ff2dd39e1dbbf0dea4003140428a2bcd23556 Mon Sep 17 00:00:00 2001 From: Ran Vaknin Date: Thu, 9 Nov 2023 11:18:40 -0800 Subject: [PATCH 2/3] changelog added --- CHANGELOG_PENDING.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 8a1927a39ca..2435849bc37 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,5 +1,2 @@ -### SDK Features - ### SDK Enhancements - -### SDK Bugs +"x-amz-expected-bucket-owner" header was added to the list of headers that need to be presigned From 0a64080992012d5a512baf77261e03f68b340216 Mon Sep 17 00:00:00 2001 From: Ran Vaknin Date: Thu, 9 Nov 2023 11:25:46 -0800 Subject: [PATCH 3/3] updated changelog --- CHANGELOG_PENDING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 2435849bc37..3591a794d07 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,2 +1,6 @@ +### SDK Features + ### SDK Enhancements "x-amz-expected-bucket-owner" header was added to the list of headers that need to be presigned + +### SDK Bugs