mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cleanup: various source code comment corrections
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
b0c9b3e752
commit
0fae0e53b6
@ -236,7 +236,7 @@ func RegisterKMSProvider(provider KMSProvider) bool {
|
||||
}
|
||||
_, ok := kmsManager.providers[provider.UniqueID]
|
||||
if ok {
|
||||
panic("duplicate tegistration of KMSProvider.UniqueID: " + provider.UniqueID)
|
||||
panic("duplicate registration of KMSProvider.UniqueID: " + provider.UniqueID)
|
||||
}
|
||||
|
||||
// validate the Initializer
|
||||
|
@ -163,8 +163,8 @@ func (kms SecretsMetadataKMS) EncryptDEK(volumeID, plainDEK string) (string, err
|
||||
return string(emdData), nil
|
||||
}
|
||||
|
||||
// DecryptDEK takes the JSON formatted `encryptedMetedataDEK` contents, and it
|
||||
// fetches SecretsKMS passphase to decrypt the DEK.
|
||||
// DecryptDEK takes the JSON formatted `encryptedMetadataDEK` contents, and it
|
||||
// fetches SecretsKMS passphrase to decrypt the DEK.
|
||||
func (kms SecretsMetadataKMS) DecryptDEK(volumeID, encryptedDEK string) (string, error) {
|
||||
// use the passphrase from the SecretsKMS
|
||||
passphrase, err := kms.SecretsKMS.FetchDEK(volumeID)
|
||||
|
@ -99,7 +99,7 @@ func (v *vaultTokenConf) convertStdVaultToCSIConfig(s *standardVault) {
|
||||
// convertConfig takes the keys/values in standard Vault environment variable
|
||||
// format, and converts them to the format that is used in the configuration
|
||||
// file.
|
||||
// This uses JSON marshaling and unmarshaling to map the Vault environment
|
||||
// This uses JSON marshaling and unmarshalling to map the Vault environment
|
||||
// configuration into bytes, then in the standardVault struct, which is passed
|
||||
// through convertStdVaultToCSIConfig before converting back to a
|
||||
// map[string]interface{} configuration.
|
||||
|
Reference in New Issue
Block a user