1 Commits

Author SHA1 Message Date
Tim Gross
5c9a851f5f vault: fix legacy token workflow for poststop tasks (#19268)
The new Workload Identity workflow for Vault tokens correctly handles post-stop
tasks, however the legacy workflow does not. Attempts to get a Vault token are
rejected if the allocation is server-terminal or client-terminal, but we should
be waiting until the allocation is client-terminal (only) so that poststop tasks
get a chance to get Vault tokens too.

Fixes: https://github.com/hashicorp/nomad/issues/16886
2023-12-01 13:25:43 -05:00