mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-19 03:09:30 +00:00
Merge pull request #74 from ceph/devel
rbd: add AAD(additionalAuthData) while unwrapping the DEK
This commit is contained in:
commit
25d252ab2a
@ -251,7 +251,8 @@ func (kms *keyProtectKMS) DecryptDEK(volumeID, encryptedDEK string) (string, err
|
|||||||
err)
|
err)
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := kms.client.Unwrap(context.TODO(), kms.customerRootKey, ciphertextBlob, nil)
|
aadVolID := []string{volumeID}
|
||||||
|
result, err := kms.client.Unwrap(context.TODO(), kms.customerRootKey, ciphertextBlob, &aadVolID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("failed to unwrap the DEK: %w", err)
|
return "", fmt.Errorf("failed to unwrap the DEK: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user