Skip to content

Commit

Permalink
fix type conversion in UpdateKey for Vault (#8058)
Browse files Browse the repository at this point in the history
This commit fixes a type conversion in the `UpdateKey`
implementation of Vault.
  • Loading branch information
Andreas Auernhammer authored and nitisht committed Aug 11, 2019
1 parent a0715f3 commit 35427a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crypto/vault.go
Expand Up @@ -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
}

0 comments on commit 35427a0

Please sign in to comment.