mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
set Vault namespace from task in vault_hook JWT login (#19080)
The JWT login codepath for the `vault_hook` was missing the Vault namespace, so the login request for non-default namespaces would fail.
This commit is contained in:
@@ -431,8 +431,9 @@ func (h *vaultHook) deriveVaultTokenJWT() (string, error) {
|
||||
|
||||
// Derive Vault token with signed identity.
|
||||
token, err := h.client.DeriveTokenWithJWT(h.ctx, vaultclient.JWTLoginRequest{
|
||||
JWT: signed.JWT,
|
||||
Role: role,
|
||||
JWT: signed.JWT,
|
||||
Role: role,
|
||||
Namespace: h.vaultBlock.Namespace,
|
||||
})
|
||||
if err != nil {
|
||||
return "", structs.WrapRecoverable(
|
||||
|
||||
Reference in New Issue
Block a user