From 3165803ecbc8dc261669aad3874413cd0d6dd445 Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Thu, 17 Dec 2020 13:37:37 +0100 Subject: [PATCH] encrypt: fix SSE-KMS HTTP context header This commit fixes a bug in the SSE-KMS. The current SSE-KMS implementation sets the wrong header for the SSE-KMS context. Now, the correct header is set: ``` X-Amz-Server-Side-Encryption-Context ``` --- pkg/encrypt/server-side.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/encrypt/server-side.go b/pkg/encrypt/server-side.go index 5276f63fc1..ce7d215310 100644 --- a/pkg/encrypt/server-side.go +++ b/pkg/encrypt/server-side.go @@ -34,7 +34,7 @@ const ( // sseKmsKeyID is the AWS SSE-KMS key id. sseKmsKeyID = sseGenericHeader + "-Aws-Kms-Key-Id" // sseEncryptionContext is the AWS SSE-KMS Encryption Context data. - sseEncryptionContext = sseGenericHeader + "-Encryption-Context" + sseEncryptionContext = sseGenericHeader + "-Context" // sseCustomerAlgorithm is the AWS SSE-C algorithm HTTP header key. sseCustomerAlgorithm = sseGenericHeader + "-Customer-Algorithm"