-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(agent): add retry configuration for vault agent (#10644)
* feat(agent): add retry configuration for vault agent * feat(agent): add test fixtures for retry * fix(retry): move retry stanza to top level as template_retry * fix(retry): add retry config to ServerConfig struct * fix(retry): point config parser to parse template_retry instead of retry * remove netlify config (#10711) * Fix build (#10749) * Move the declaration to a OSS build tag file to not have it collide w… (#10750) * Move the declaration to a OSS build tag file to not have it collide with ent declarations * Add comment * Remove comment to trigger ci * Unconditionally use the root namespace when calling sys/seal-status. (#10742) * feat(agent): add retry configuration for vault agent * feat(agent): add test fixtures for retry * fix(retry): move retry stanza to top level as template_retry * fix(retry): add retry config to ServerConfig struct * fix(retry): point config parser to parse template_retry instead of retry Co-authored-by: Hridoy Roy <roy@hashicorp.com> Co-authored-by: Jeff Escalante <jescalan@users.noreply.github.com> Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com> Co-authored-by: Mark Gritter <mgritter@hashicorp.com>
- Loading branch information
1 parent
f61280b
commit 8c304ed
Showing
6 changed files
with
234 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
command/agent/config/test-fixtures/config-vault-retry-empty.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
pid_file = "./pidfile" | ||
|
||
auto_auth { | ||
method { | ||
type = "aws" | ||
namespace = "my-namespace/" | ||
|
||
config = { | ||
role = "foobar" | ||
} | ||
} | ||
|
||
sink { | ||
type = "file" | ||
config = { | ||
path = "/tmp/file-foo" | ||
} | ||
aad = "foobar" | ||
dh_type = "curve25519" | ||
dh_path = "/tmp/file-foo-dhpath" | ||
} | ||
} | ||
|
||
vault { | ||
address = "http://127.0.0.1:1111" | ||
} | ||
|
||
template_retry {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
pid_file = "./pidfile" | ||
|
||
auto_auth { | ||
method { | ||
type = "aws" | ||
namespace = "my-namespace/" | ||
|
||
config = { | ||
role = "foobar" | ||
} | ||
} | ||
|
||
sink { | ||
type = "file" | ||
config = { | ||
path = "/tmp/file-foo" | ||
} | ||
aad = "foobar" | ||
dh_type = "curve25519" | ||
dh_path = "/tmp/file-foo-dhpath" | ||
} | ||
} | ||
|
||
vault { | ||
address = "http://127.0.0.1:1111" | ||
} | ||
|
||
template_retry { | ||
enabled = true | ||
attempts = 5 | ||
backoff = "100ms" | ||
max_backoff = "400ms" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters