mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
security: add CT executeTemplate to default function_denylist (#24541)
This PR adds Consul Template's executeTemplate function to the denylist by default, in order to prevent accidental or malicious infinitely recursive execution. --------- Co-authored-by: Tim Gross <tgross@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
368241dbf2
commit
f7a4ded2c0
@@ -1535,7 +1535,7 @@ func TestConfig_LoadConsulTemplateConfig(t *testing.T) {
|
||||
agentConfig = defaultConfig.Merge(agentConfig)
|
||||
|
||||
templateConfig := agentConfig.Client.TemplateConfig
|
||||
must.Len(t, 2, templateConfig.FunctionDenylist)
|
||||
must.Len(t, 3, templateConfig.FunctionDenylist)
|
||||
})
|
||||
|
||||
t.Run("client config with basic template", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user