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
Vault agent should exit when accessing a non-existing secret from Vault that does not exist, if the agent configuration specifies num_retries, exit_after_retry_failure, error_on_missing_key and exit-after-auth.
Instead, Vault agent will stop the runner after failing to fetch the non-existing secret, but then creates a new runner that will again fail to fetch the non-existing secret. This will be an infinite loop.
This problem occurs with Agent version 1.8.1. This is working fine (=as expected) with version 1.7.3.
As the specified secret does not exist, Vault agent should exit with failure after 3 retries when started with vault agent -config /home/vault/vault-agent-config.hcl -exit-after-auth
I see that we mention exit_after_retry_failure on the docs, but it should be exit_on_retry_failure. Can you give that a try (I also don't see that being provided in the config)? Note that you need to specify both in order for an exit to occur.
Describe the bug
Vault agent should exit when accessing a non-existing secret from Vault that does not exist, if the agent configuration specifies
num_retries
,exit_after_retry_failure
,error_on_missing_key
andexit-after-auth
.Instead, Vault agent will stop the runner after failing to fetch the non-existing secret, but then creates a new runner that will again fail to fetch the non-existing secret. This will be an infinite loop.
This problem occurs with Agent version 1.8.1. This is working fine (=as expected) with version 1.7.3.
To Reproduce
Vault agent config file:
Expected behavior
As the specified secret does not exist, Vault agent should exit with failure after 3 retries when started with
vault agent -config /home/vault/vault-agent-config.hcl -exit-after-auth
Environment:
Vault Agent v1.8.1
Version Sha: 4b0264f
Vault agent log file:
Additional context
I wonder if this is possibly related to the following changes:
The text was updated successfully, but these errors were encountered: