From 8d589df0ecd176ad4576d8773e2f28ae5f1f9333 Mon Sep 17 00:00:00 2001 From: Nick Cabatoff Date: Fri, 17 Jan 2020 08:58:27 -0500 Subject: [PATCH] Use the correct number of shares/threshold for the migrated seal. --- vault/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vault/core.go b/vault/core.go index 8d221bb48bce..8b1eda39caff 100644 --- a/vault/core.go +++ b/vault/core.go @@ -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)