Skip to content

Commit

Permalink
Bust recovery cache after unsealed is set true to force migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Dec 19, 2017
1 parent f46e6ca commit 10ab224
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vault/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,12 @@ func (c *Core) unsealInternal(masterKey []byte) (bool, error) {

// Success!
c.sealed = false

// Force a cache bust here, which will also run migration code
if c.seal.RecoveryKeySupported() {
c.seal.SetRecoveryConfig(nil)
}

if c.ha != nil {
sd, ok := c.ha.(physical.ServiceDiscovery)
if ok {
Expand Down

0 comments on commit 10ab224

Please sign in to comment.