minio/cmd/crypto
Andreas Auernhammer 0ba8c0a19b
sse-kms: fix assignment to potential nil map (#12250)
This commit fixes a bug introduced by af0c65b.
When there is no / an empty client-provided SSE-KMS
context the `ParseMetadata` may return a nil map
(`kms.Context`).

When unsealing the object key we must check that
the context is nil before assigning a key-value pair.

Signed-off-by: Andreas Auernhammer <aead@mail.de>
2021-05-07 09:16:49 -07:00
..
config.go update license change for MinIO 2021-04-23 11:58:53 -07:00
doc.go update license change for MinIO 2021-04-23 11:58:53 -07:00
error.go update license change for MinIO 2021-04-23 11:58:53 -07:00
header.go update license change for MinIO 2021-04-23 11:58:53 -07:00
header_test.go add SSE-KMS support and use SSE-KMS for auto encryption (#12237) 2021-05-06 15:24:01 -07:00
help.go update license change for MinIO 2021-04-23 11:58:53 -07:00
json.go update license change for MinIO 2021-04-23 11:58:53 -07:00
kes.go update license change for MinIO 2021-04-23 11:58:53 -07:00
key.go update license change for MinIO 2021-04-23 11:58:53 -07:00
key_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
kms.go update license change for MinIO 2021-04-23 11:58:53 -07:00
metadata.go update license change for MinIO 2021-04-23 11:58:53 -07:00
metadata_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
retry.go update license change for MinIO 2021-04-23 11:58:53 -07:00
sse-c.go update license change for MinIO 2021-04-23 11:58:53 -07:00
sse-kms.go sse-kms: fix assignment to potential nil map (#12250) 2021-05-07 09:16:49 -07:00
sse-s3.go update license change for MinIO 2021-04-23 11:58:53 -07:00
sse.go update license change for MinIO 2021-04-23 11:58:53 -07:00
sse_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00