Skip to content

Vault Agent aborts evaluation of all temlates and reschedules all if one fails #32035

Description

@Freddo3000

Describe the bug
If using Vault Agent to render multiple templates, if one fails then all of the other ones are aborted. Then, even the successfully rendered templates are also rescheduled to run again. This is problematic when combined with exec {} blocks within the template as those are also re-executed on all rescheduled templates which on our case causes the nomad agents to constantly restart.

To Reproduce
Steps to reproduce the behavior:

  1. Write two template {} blocks for Vault Agent
  2. Make one of them contain an exec {} template that always fails
  3. See that both templates keep re-rendering despite only one failing, alternatively that the functioning one never renders at all.

Expected behavior
Only the failing template should fail and be rescheduled, not all templates.

Environment:

  • Vault Server Version (retrieve with vault status): v2.0.1
  • Vault CLI Version (retrieve with vault version): v2.0.3
  • Server Operating System/Architecture: Ubuntu 24.04

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions