Skip to content

Commit

Permalink
encrypt: fix SSE-KMS HTTP context header
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
Andreas Auernhammer committed Dec 17, 2020
1 parent 930886a commit 3165803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/encrypt/server-side.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3165803

Please sign in to comment.