mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
backport of commit 8fe7076c02 (#20939)
Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ff0f8d8bed
commit
c826572328
@@ -517,7 +517,7 @@ func (c *AgentCommand) Run(args []string) int {
|
|||||||
var listeners []net.Listener
|
var listeners []net.Listener
|
||||||
|
|
||||||
// If there are templates, add an in-process listener
|
// If there are templates, add an in-process listener
|
||||||
if len(config.Templates) > 0 {
|
if len(config.Templates) > 0 || len(config.EnvTemplates) > 0 {
|
||||||
config.Listeners = append(config.Listeners, &configutil.Listener{Type: listenerutil.BufConnType})
|
config.Listeners = append(config.Listeners, &configutil.Listener{Type: listenerutil.BufConnType})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ func (c *Config) ValidateConfig() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if c.Cache != nil {
|
if c.Cache != nil {
|
||||||
if len(c.Listeners) < 1 && len(c.Templates) < 1 {
|
if len(c.Listeners) < 1 && len(c.Templates) < 1 && len(c.EnvTemplates) < 1 {
|
||||||
return fmt.Errorf("enabling the cache requires at least 1 template or 1 listener to be defined")
|
return fmt.Errorf("enabling the cache requires at least 1 template or 1 listener to be defined")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ auto_auth {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cache {}
|
||||||
|
|
||||||
template_config {
|
template_config {
|
||||||
static_secret_render_interval = "5m"
|
static_secret_render_interval = "5m"
|
||||||
exit_on_retry_failure = true
|
exit_on_retry_failure = true
|
||||||
|
|||||||
Reference in New Issue
Block a user