mirror of
https://github.com/minio/minio.git
synced 2025-01-28 15:06:00 -05:00
avoid unnecessary logging for KMS secret key mismatch (#20549)
This commit is contained in:
parent
86a41d1631
commit
1593cb615d
@ -1099,7 +1099,9 @@ func (o *ObjectInfo) decryptPartsChecksums(h http.Header) {
|
|||||||
if _, encrypted := crypto.IsEncrypted(o.UserDefined); encrypted {
|
if _, encrypted := crypto.IsEncrypted(o.UserDefined); encrypted {
|
||||||
decrypted, err := o.metadataDecrypter(h)("object-checksum", data)
|
decrypted, err := o.metadataDecrypter(h)("object-checksum", data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
encLogIf(GlobalContext, err)
|
if !errors.Is(err, crypto.ErrSecretKeyMismatch) {
|
||||||
|
encLogIf(GlobalContext, err)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
data = decrypted
|
data = decrypted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user