diff --git a/vault/core.go b/vault/core.go index 9d2f37dc60e3..73a6e97b3778 100644 --- a/vault/core.go +++ b/vault/core.go @@ -1963,6 +1963,7 @@ func (c *Core) SetSealsForMigration(migrationSeal, newSeal, unwrapSeal Seal) { c.seal = newSeal c.seal.SetCore(c) c.logger.Warn("entering seal migration mode; Vault will not automatically unseal even if using an autoseal", "from_barrier_type", c.migrationSeal.BarrierType(), "to_barrier_type", c.seal.BarrierType()) + c.initSealsForMigration() } } diff --git a/vault/core_util.go b/vault/core_util.go index 2e8aaf5569c5..6e85ea79f3f8 100644 --- a/vault/core_util.go +++ b/vault/core_util.go @@ -122,3 +122,5 @@ func (c *Core) removeAllPerfStandbySecondaries() {} func (c *Core) perfStandbyClusterHandler() (*replication.Cluster, *cache.Cache, chan struct{}, error) { return nil, cache.New(2*cluster.HeartbeatInterval, 1*time.Second), make(chan struct{}), nil } + +func (c *Core) initSealsForMigration() {}