Automatic Token Handling in nomad login
#20478
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/cli
type/enhancement
Projects
Proposal
The current functionality of the nomad login command in HashiCorp Nomad only outputs the secret token to standard output. This feature request proposes enhancing the nomad login command to persist the secret token and automatically use it in subsequent commands without manual intervention. It would also be useful to handle token expiration, either by displaying a warning to the user or automatically requesting a new token after expiration.
Use-cases
Automatically handling secret tokens generated by
nomad login
would increase usability and make handling tokens easier.Attempted Solutions
I have a shell script to export the NOMAD_TOKEN variable based on the output of `nomad login -t "{{.SecretID}}".
However, using this on a team requires adding it to everyone's shell setup, and it's not always clear that there is a separate shell function.
The text was updated successfully, but these errors were encountered: