CopyObject: fix regression in key rotation (#6331)

After key rotation, metadata was not being replaced with new sealed key.
Regression introduced in commit e71ef905f9
master
poornas 6 years ago committed by kannappanr
parent 68b9e9e7e7
commit 19db921555
  1. 1
      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
}
}

Loading…
Cancel
Save