mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04:00
rekey: remove the check from vault/rekey.go in favor of check in http layer
This commit is contained in:
parent
3cd4cb1381
commit
e7598ed5db
1 changed files with 0 additions and 5 deletions
|
|
@ -350,11 +350,6 @@ func (c *Core) BarrierRekeyUpdate(key []byte, nonce string) (*RekeyResult, error
|
|||
}
|
||||
|
||||
if len(c.barrierRekeyConfig.PGPKeys) > 0 {
|
||||
if len(results.SecretShares) != len(c.barrierRekeyConfig.PGPKeys) {
|
||||
c.logger.Error(fmt.Sprintf("core: mismatch between the number of PGP keys %q and the number of shares %q", len(c.barrierRekeyConfig.PGPKeys), len(results.SecretShares)))
|
||||
return nil, fmt.Errorf("mismatch between the number of PGP keys %q and the number of shares %q", len(c.barrierRekeyConfig.PGPKeys), len(results.SecretShares))
|
||||
}
|
||||
|
||||
hexEncodedShares := make([][]byte, len(results.SecretShares))
|
||||
for i, _ := range results.SecretShares {
|
||||
hexEncodedShares[i] = []byte(hex.EncodeToString(results.SecretShares[i]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue