open-vault/command
Calvin Leung Huang c1a2a939f9
agent: restart template runner on retry for unlimited retries (#11775)
* agent: restart template runner on retry for unlimited retries

* template: log error message early

* template: delegate retries back to template if param is set to true

* agent: add and use the new template config stanza

* agent: fix panic, fix existing tests

* changelog: add changelog entry

* agent: add tests for exit_on_retry_failure

* agent: properly check on agent exit cases, add separate tests for missing key vs missing secrets

* agent: add note on difference between missing key vs missing secret

* docs: add docs for template_config

* Update website/content/docs/agent/template-config.mdx

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>

* Update website/content/docs/agent/template-config.mdx

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>

* Update website/content/docs/agent/template-config.mdx

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>

* Update website/content/docs/agent/template-config.mdx

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>

* Update website/content/docs/agent/template-config.mdx

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>

* docs: fix exit_on_retry_failure, fix Functionality section

* docs: update interaction title

* template: add internal note on behavior for persist case

* docs: update agent, template, and template-config docs

* docs: update agent docs on retry stanza

* Apply suggestions from code review

Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>
Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>

* Update changelog/11775.txt

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* agent/test: rename expectExit to expectExitFromError

* agent/test: add check on early exits on the happy path

* Update website/content/docs/agent/template-config.mdx

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>
Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>
2021-06-21 16:10:15 -07:00
..
agent
config
server
test-fixtures
token
agent.go
agent_test.go
approle_concurrency_integ_test.go
audit.go
audit_disable.go
audit_disable_test.go
audit_enable.go
audit_enable_test.go
audit_list.go
audit_list_test.go
auth.go
auth_disable.go
auth_disable_test.go
auth_enable.go
auth_enable_test.go
auth_help.go
auth_help_test.go
auth_list.go
auth_list_test.go
auth_test.go
auth_tune.go
auth_tune_test.go
base.go
base_flags.go
base_flags_test.go
base_helpers.go
base_helpers_test.go
base_predict.go
base_predict_test.go
command_test.go
commands.go
commands_nonwindows.go
commands_windows.go
config.go
config_test.go
debug.go
debug_test.go
delete.go
delete_test.go
format.go
format_test.go
kv.go
kv_delete.go
kv_destroy.go
kv_enable_versioning.go
kv_get.go
kv_helpers.go
kv_list.go
kv_metadata.go
kv_metadata_delete.go
kv_metadata_get.go
kv_metadata_put.go
kv_metadata_put_test.go
kv_patch.go
kv_put.go
kv_rollback.go
kv_test.go
kv_undelete.go
lease.go
lease_lookup.go
lease_lookup_test.go
lease_renew.go
lease_renew_test.go
lease_revoke.go
lease_revoke_test.go
list.go
list_test.go
login.go
login_test.go
main.go
monitor.go
monitor_test.go
namespace.go
namespace_create.go
namespace_delete.go
namespace_list.go
namespace_lookup.go
operator.go
operator_diagnose.go
operator_diagnose_test.go
operator_generate_root.go
operator_generate_root_test.go
operator_init.go
operator_init_test.go
operator_key_status.go
operator_key_status_test.go
operator_migrate.go
operator_migrate_test.go
operator_raft.go
operator_raft_autopilot_get_config.go
operator_raft_autopilot_set_config.go
operator_raft_autopilot_state.go
operator_raft_join.go
operator_raft_listpeers.go
operator_raft_remove_peer.go
operator_raft_snapshot.go
operator_raft_snapshot_restore.go
operator_raft_snapshot_save.go
operator_rekey.go
operator_rekey_test.go
operator_seal.go
operator_seal_test.go
operator_step_down.go
operator_step_down_test.go
operator_unseal.go
operator_unseal_test.go
operator_usage.go
path_help.go
path_help_test.go
path_map_upgrade_api_test.go
pgp_test.go
plugin.go
plugin_deregister.go
plugin_deregister_test.go
plugin_info.go
plugin_info_test.go
plugin_list.go
plugin_list_test.go
plugin_register.go
plugin_register_test.go
plugin_reload.go
plugin_reload_status.go
plugin_reload_test.go
plugin_test.go
policy.go
policy_delete.go
policy_delete_test.go
policy_fmt.go
policy_fmt_test.go
policy_list.go
policy_list_test.go
policy_read.go
policy_read_test.go
policy_write.go
policy_write_test.go
print.go
print_token.go
read.go
read_test.go
rotate.go
rotate_test.go
secrets.go
secrets_disable.go
secrets_disable_test.go
secrets_enable.go
secrets_enable_test.go
secrets_list.go
secrets_list_test.go
secrets_move.go
secrets_move_test.go
secrets_tune.go
secrets_tune_test.go
server.go
server_noprofile.go
server_profile.go
server_test.go
server_util.go
ssh.go
ssh_test.go
status.go
status_test.go
token.go
token_capabilities.go
token_capabilities_test.go
token_create.go
token_create_test.go
token_lookup.go
token_lookup_test.go
token_renew.go
token_renew_test.go
token_revoke.go
token_revoke_test.go
unwrap.go
unwrap_test.go
util.go
version.go
version_test.go
write.go
write_test.go