mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Fix panic when rotating transit managed keys produces an error (#30214)
* remove extra Unlock call * add changelog
This commit is contained in:
parent
3f65999d2b
commit
6a3aef7bf5
2 changed files with 3 additions and 1 deletions
|
|
@ -70,7 +70,6 @@ func (b *backend) pathRotateWrite(ctx context.Context, req *logical.Request, d *
|
|||
var keyId string
|
||||
keyId, err = GetManagedKeyUUID(ctx, b, managedKeyName, managedKeyId)
|
||||
if err != nil {
|
||||
p.Unlock()
|
||||
return nil, err
|
||||
}
|
||||
err = p.RotateManagedKey(ctx, req.Storage, keyId)
|
||||
|
|
|
|||
3
changelog/30214.txt
Normal file
3
changelog/30214.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
secrets/transit: fix a panic when rotating on a managed key returns an error
|
||||
```
|
||||
Loading…
Reference in a new issue