mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
Add HSMAutoDeprecated for ent upgrade (#5704)
This commit is contained in:
parent
895076403c
commit
c4b31d5bda
@ -21,7 +21,7 @@ func adjustCoreForSealMigration(ctx context.Context, core *vault.Core, coreConfi
|
||||
}
|
||||
var existSeal vault.Seal
|
||||
var newSeal vault.Seal
|
||||
if existBarrierSealConfig != nil &&
|
||||
if existBarrierSealConfig != nil && existBarrierSealConfig.Type != vaultseal.HSMAutoDeprecated &&
|
||||
(existBarrierSealConfig.Type != seal.BarrierType() ||
|
||||
config.Seal != nil && config.Seal.Disabled) {
|
||||
// If the existing seal is not Shamir, we're going to Shamir, which
|
||||
|
||||
@ -14,6 +14,10 @@ const (
|
||||
GCPCKMS = "gcpckms"
|
||||
AzureKeyVault = "azurekeyvault"
|
||||
Test = "test-auto"
|
||||
|
||||
// HSMAutoDeprecated is a deprecated seal type prior to 0.9.0.
|
||||
// It is still referenced in certain code paths for upgrade purporses
|
||||
HSMAutoDeprecated = "hsm-auto"
|
||||
)
|
||||
|
||||
// Access is the embedded implemention of autoSeal that contains logic
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user