open-nomad/command/agent
Michael Schurter 7a28fcb8af template: disallow `writeToFile` by default
Resolves #12095 by WONTFIXing it.

This approach disables `writeToFile` as it allows arbitrary host
filesystem writes and is only a small quality of life improvement over
multiple `template` stanzas.

This approach has the significant downside of leaving people who have
altered their `template.function_denylist` *still vulnerable!* I added
an upgrade note, but we should have implemented the denylist as a
`map[string]bool` so that new funcs could be denied without overriding
custom configurations.

This PR also includes a bug fix that broke enabling all consul-template
funcs. We repeatedly failed to differentiate between a nil (unset)
denylist and an empty (allow all) one.
2022-03-28 17:05:42 -07:00
..
consul
event
host
monitor
pprof
test-resources
testdata
acl_endpoint.go
acl_endpoint_test.go
agent.go
agent_endpoint.go
agent_endpoint_test.go
agent_oss.go
agent_test.go
alloc_endpoint.go
alloc_endpoint_test.go
bindata_assetfs.go
command.go
command_test.go
config.go
config_oss.go
config_parse.go
config_parse_test.go
config_test.go
csi_endpoint.go
csi_endpoint_test.go
deployment_endpoint.go
deployment_endpoint_test.go
eval_endpoint.go
eval_endpoint_test.go
event_endpoint.go
event_endpoint_test.go
fs_endpoint.go
fs_endpoint_test.go
helpers.go
helpers_test.go
http.go
http_oss.go
http_stdlog.go
http_stdlog_test.go
http_test.go
job_endpoint.go
job_endpoint_test.go
keyring.go
keyring_test.go
log_file.go
log_file_bsd.go
log_file_linux.go
log_file_test.go
log_file_windows.go
log_levels.go
log_levels_test.go
metrics_endpoint.go
metrics_endpoint_test.go
namespace_endpoint.go
namespace_endpoint_test.go
node_endpoint.go
node_endpoint_test.go
operator_endpoint.go
operator_endpoint_oss.go
operator_endpoint_test.go
plugins.go
region_endpoint.go
region_endpoint_test.go
retry_join.go
retry_join_test.go
scaling_endpoint.go
scaling_endpoint_test.go
search_endpoint.go
search_endpoint_test.go
service_registration_endpoint.go
service_registration_endpoint_test.go
stats_endpoint.go
stats_endpoint_test.go
status_endpoint.go
status_endpoint_test.go
stub_asset.go
syslog.go
syslog_test.go
system_endpoint.go
system_endpoint_test.go
testagent.go
testagent_oss.go
testingutils_test.go