mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-21 02:31:11 +01:00
storage/raft: Refresh TLS keyring on snapshot restore (#8546)
This commit is contained in:
parent
74b06003fe
commit
84bb04eca4
@ -484,6 +484,12 @@ func (c *Core) raftSnapshotRestoreCallback(grabLock bool, sealNode bool) func(co
|
|||||||
// Purge the cache so we make sure we are operating on fresh data
|
// Purge the cache so we make sure we are operating on fresh data
|
||||||
c.physicalCache.Purge(ctx)
|
c.physicalCache.Purge(ctx)
|
||||||
|
|
||||||
|
// Refresh the raft TLS keys
|
||||||
|
if err := c.checkRaftTLSKeyUpgrades(ctx); err != nil {
|
||||||
|
c.logger.Info("failed to perform TLS key upgrades, sealing", "error", err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// Reload the keyring in case it changed. If this fails it's likely
|
// Reload the keyring in case it changed. If this fails it's likely
|
||||||
// we've changed master keys.
|
// we've changed master keys.
|
||||||
err := c.performKeyUpgrades(ctx)
|
err := c.performKeyUpgrades(ctx)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user