mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
VAULT-4306 Ensure /raft/bootstrap/challenge call ignores erroneous namespaces set (#15519)
* VAULT-4306 Ensure /raft/bootstrap/challenge call ignores erroneous namespaces set * VAULT-4306 Add changelog * VAULT-4306 Update changelog/15519.txt Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com> Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
This commit is contained in:
3
changelog/15519.txt
Normal file
3
changelog/15519.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
storage/raft: joining a node to a cluster now ignores any VAULT_NAMESPACE environment variable set on the server process
|
||||||
|
```
|
||||||
@@ -777,6 +777,8 @@ func (c *Core) getRaftChallenge(leaderInfo *raft.LeaderJoinInfo) (*raftInformati
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to create api client: %w", err)
|
return nil, fmt.Errorf("failed to create api client: %w", err)
|
||||||
}
|
}
|
||||||
|
// Clearing namespace, as this client should only ever be using the root namespace
|
||||||
|
apiClient.ClearNamespace()
|
||||||
|
|
||||||
// Attempt to join the leader by requesting for the bootstrap challenge
|
// Attempt to join the leader by requesting for the bootstrap challenge
|
||||||
secret, err := apiClient.Logical().Write("sys/storage/raft/bootstrap/challenge", map[string]interface{}{
|
secret, err := apiClient.Logical().Write("sys/storage/raft/bootstrap/challenge", map[string]interface{}{
|
||||||
|
|||||||
Reference in New Issue
Block a user