From 35427a017df200779b18c4902c187773ed698076 Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Sun, 11 Aug 2019 18:50:25 +0200 Subject: [PATCH] fix type conversion in `UpdateKey` for Vault (#8058) This commit fixes a type conversion in the `UpdateKey` implementation of Vault. --- cmd/crypto/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }