From fade0562443f78dac8f099d1a879571e9c28f5bf Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Thu, 21 May 2020 11:07:50 -0700 Subject: [PATCH] filter all encryption headers in gateway (#9661) fixes #9655 --- cmd/crypto/metadata.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/crypto/metadata.go b/cmd/crypto/metadata.go index c89255c0d..ee0864bfd 100644 --- a/cmd/crypto/metadata.go +++ b/cmd/crypto/metadata.go @@ -44,6 +44,8 @@ func RemoveSensitiveEntries(metadata map[string]string) { // The functions is te // header entries from the metadata map. func RemoveSSEHeaders(metadata map[string]string) { delete(metadata, SSEHeader) + delete(metadata, SSEKmsID) + delete(metadata, SSEKmsContext) delete(metadata, SSECKeyMD5) delete(metadata, SSECAlgorithm) }