Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions kms/azurekms/key_vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,9 @@ func (k *KeyVault) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyRespo
return nil, err
}

// Override protection level to HSM only if it's not specified, and is given
// in the uri.
// Override protection level to HSM only if is given in the uri.
protectionLevel := req.ProtectionLevel
if protectionLevel == apiv1.UnspecifiedProtectionLevel && hsm {
if hsm {
protectionLevel = apiv1.HSM
}

Expand Down