Skip to content

Commit

Permalink
backport of commit d2b7831
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller authored Oct 17, 2023
1 parent 39b6c45 commit 2fc2d59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/23573.txt
Original file line number Diff line number Diff line change
@@ -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".
```
2 changes: 1 addition & 1 deletion vault/seal_autoseal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 2fc2d59

Please sign in to comment.