vault: reload master key before keyring

This commit is contained in:
Armon Dadgar 2015-05-29 14:30:03 -07:00
parent f6729b29f8
commit daffef08db
1 changed files with 3 additions and 0 deletions

View File

@ -1185,6 +1185,9 @@ func (c *Core) postUnseal() error {
if err := c.checkKeyUpgrades(); err != nil {
return err
}
if err := c.barrier.ReloadMasterKey(); err != nil {
return err
}
if err := c.barrier.ReloadKeyring(); err != nil {
return err
}