diff --git a/cmd/crypto/vault.go b/cmd/crypto/vault.go index 1ccd39747..95838739f 100644 --- a/cmd/crypto/vault.go +++ b/cmd/crypto/vault.go @@ -274,6 +274,6 @@ func (v *vaultService) UpdateKey(keyID string, sealedKey []byte, ctx Context) (r if !ok { return nil, errMissingUpdatedKey } - rotatedKey = ciphertext.([]byte) + rotatedKey = []byte(ciphertext.(string)) return rotatedKey, nil }