diff --git a/.changelog/16266.txt b/.changelog/16266.txt new file mode 100644 index 000000000000..af9ffd1d4873 --- /dev/null +++ b/.changelog/16266.txt @@ -0,0 +1,3 @@ +```release-note:bug +template: Fixed a bug where the template runner's Nomad token would be erased by in-place updates to a task +``` diff --git a/client/allocrunner/taskrunner/task_runner_hooks.go b/client/allocrunner/taskrunner/task_runner_hooks.go index 7ea501982884..40ea084ba1a9 100644 --- a/client/allocrunner/taskrunner/task_runner_hooks.go +++ b/client/allocrunner/taskrunner/task_runner_hooks.go @@ -487,6 +487,7 @@ func (tr *TaskRunner) updateHooks() { // Build the request req := interfaces.TaskUpdateRequest{ + NomadToken: tr.getNomadToken(), VaultToken: tr.getVaultToken(), Alloc: alloc, TaskEnv: tr.envBuilder.Build(),