mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Allow multiseal to mismatch stored conf type (#23573)
* allow multiseal to mismatch stored conf type * changelog
This commit is contained in:
5
changelog/23573.txt
Normal file
5
changelog/23573.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
```release-note:bug
|
||||
* Seal HA (enterprise/beta): Fix rejection of a seal configuration change
|
||||
from two to one auto seal due to persistence of the previous seal type being
|
||||
"multiseal".
|
||||
```
|
||||
@@ -194,7 +194,7 @@ func (d *autoSeal) BarrierConfig(ctx context.Context) (*SealConfig, error) {
|
||||
|
||||
barrierTypeUpgradeCheck(d.BarrierSealConfigType(), conf)
|
||||
|
||||
if conf.Type != d.BarrierSealConfigType().String() && conf.Type != "multiseal" {
|
||||
if conf.Type != d.BarrierSealConfigType().String() && conf.Type != SealConfigTypeMultiseal.String() && d.BarrierSealConfigType() != SealConfigTypeMultiseal {
|
||||
d.logger.Error("barrier seal type does not match loaded type", "seal_type", conf.Type, "loaded_type", d.BarrierSealConfigType())
|
||||
return nil, fmt.Errorf("barrier seal type of %q does not match loaded type of %q", conf.Type, d.BarrierSealConfigType())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user