Skip to content

Commit

Permalink
Add X-Amz-Server-Side-Encryption-Context header to required signed he…
Browse files Browse the repository at this point in the history
…aders allowlist (#2228)
  • Loading branch information
fenak committed Aug 17, 2023
1 parent 4682b6a commit 18635b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changelog/81f52efa843043448ea62016b7471af7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "81f52efa-8430-4344-8ea6-2016b7471af7",
"type": "bugfix",
"description": "Sign `X-Amz-Server-Side-Encryption-Context` header to fix signing for PutObject requests that set `SSEKMSEncryptionContext`.",
"modules": [
"."
]
}
1 change: 1 addition & 0 deletions aws/signer/internal/v4/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var RequiredSignedHeaders = Rules{
"X-Amz-Request-Payer": struct{}{},
"X-Amz-Server-Side-Encryption": struct{}{},
"X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": struct{}{},
"X-Amz-Server-Side-Encryption-Context": struct{}{},
"X-Amz-Server-Side-Encryption-Customer-Algorithm": struct{}{},
"X-Amz-Server-Side-Encryption-Customer-Key": struct{}{},
"X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
Expand Down

0 comments on commit 18635b8

Please sign in to comment.