Skip to content

Commit

Permalink
Use the correct number of shares/threshold for the migrated seal.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Jan 17, 2020
1 parent 29a422b commit 8d589df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vault/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,8 @@ func (c *Core) unsealPart(ctx context.Context, seal Seal, key []byte, useRecover

if err := c.seal.SetBarrierConfig(ctx, &SealConfig{
Type: wrapping.Shamir,
SecretShares: 1,
SecretThreshold: 1,
SecretShares: config.SecretShares,
SecretThreshold: config.SecretThreshold,
StoredShares: 1,
}); err != nil {
return nil, errwrap.Wrapf("failed to store barrier config migration: {{err}}", err)
Expand Down

0 comments on commit 8d589df

Please sign in to comment.