You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validateRole function checks that the deprecated "period" attribute of the Vault token role is non-zero instead of the new "token_period" attribute. If "period" is zero and "token_period" is non-zero, the job will fail.
Since the "period" attribute is not set in Terraform, it will be set to 0 in Vault, resulting in an error in Nomad:
Vault: server failed to derive vault token: failed to establish connection to Vault: 1 error(s) occurred: * Role must have a non-zero period to make tokens periodic.
Both attributes cannot be used at the same time, and using "period" throws a deprecation warning.
Thanks for reading and your hard work!
The text was updated successfully, but these errors were encountered:
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
Nomad v0.10.0 (25ee121)
Issue
The validateRole function checks that the deprecated "period" attribute of the Vault token role is non-zero instead of the new "token_period" attribute. If "period" is zero and "token_period" is non-zero, the job will fail.
Reproduction steps
Create a Vault token role in Terraform.
Since the "period" attribute is not set in Terraform, it will be set to 0 in Vault, resulting in an error in Nomad:
Both attributes cannot be used at the same time, and using "period" throws a deprecation warning.
Thanks for reading and your hard work!
The text was updated successfully, but these errors were encountered: