-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nomad validate does not recognize VAULT_TOKEN #13062
Comments
Actual result
Nomad Server logs
That makes me wonder: how safe it is, to deploy a job file without either |
Thanks for the report @EtienneBruines, indeed this is a bug. Previously the vault validation was not happening except during |
This bug still exists for
there is no -vault-token option for Additionally, it seems that if I run a validate on any system other than a nomad leader node, i get this error:
|
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Things worked fine on Nomad 1.2.6, but ever since upgrading to 1.3.0 we've had this issue.
Intermittently(The Intermittently was due to a data-race issue where the Nomad tokens issued by Vault weren't valid yet and thenomad validate
therefore skipped checking completely. Thenomad validate
command ignores myVAULT_TOKEN
values 100% of the time)Operating system and Environment details
Ubuntu 21.10 Impish Indri on amd64
Issue
Unable to validate jobs with a
vault.policies
value.Reproduced on multiple different machines.
Reproduction steps
Use the example job file below.
VAULT_TOKEN="enter-root-token-here" nomad validate job.nomad
The problem is not limited to using the vault root token, but also occurs with other valid tokens. Rubbish tokens (e.g. typing
abc
as a token) also give the same error.It is later picked up on by
nomad run
- but somehow thenomad validate
seems to completely ignore the value I provide.Expected Result
Everything OK.
Actual Result
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
Request made by nomad cli to the Nomad Server
Potentially related commits
7af0c3c
The text was updated successfully, but these errors were encountered: