diff --git a/cmd/encryption-v1.go b/cmd/encryption-v1.go index e1990c135..1d87d4886 100644 --- a/cmd/encryption-v1.go +++ b/cmd/encryption-v1.go @@ -147,6 +147,7 @@ func rotateKey(oldKey []byte, newKey []byte, bucket, object string, metadata map } copy(extKey[:], newKey) sealedKey = objectKey.Seal(extKey, sealedKey.IV, crypto.SSEC.String(), bucket, object) + crypto.SSEC.CreateMetadata(metadata, sealedKey) return nil } }