filter all encryption headers in gateway (#9661)

fixes #9655
This commit is contained in:
kannappanr 2020-05-21 11:07:50 -07:00 committed by GitHub
parent a546047c95
commit fade056244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ func RemoveSensitiveEntries(metadata map[string]string) { // The functions is te
// header entries from the metadata map. // header entries from the metadata map.
func RemoveSSEHeaders(metadata map[string]string) { func RemoveSSEHeaders(metadata map[string]string) {
delete(metadata, SSEHeader) delete(metadata, SSEHeader)
delete(metadata, SSEKmsID)
delete(metadata, SSEKmsContext)
delete(metadata, SSECKeyMD5) delete(metadata, SSECKeyMD5)
delete(metadata, SSECAlgorithm) delete(metadata, SSECAlgorithm)
} }