open-nomad/client/allocrunner/taskrunner
Tim Gross 1fb1c9c5d4
artifact/template: make destination path absolute inside taskdir (#9149)
Prior to Nomad 0.12.5, you could use `${NOMAD_SECRETS_DIR}/mysecret.txt` as
the `artifact.destination` and `template.destination` because we would always
append the destination to the task working directory. In the recent security
patch we treated the `destination` absolute path as valid if it didn't escape
the working directory, but this breaks backwards compatibility and
interpolation of `destination` fields.

This changeset partially reverts the behavior so that we always append the
destination, but we also perform the escape check on that new destination
after interpolation so the security hole is closed.

Also, ConsulTemplate test should exercise interpolation
2020-10-22 15:47:49 -04:00
..
getter artifact/template: make destination path absolute inside taskdir (#9149) 2020-10-22 15:47:49 -04:00
interfaces
restarts client: don't restart poststart sidecars on success 2020-08-11 09:47:18 -07:00
state
template artifact/template: make destination path absolute inside taskdir (#9149) 2020-10-22 15:47:49 -04:00
testdata
artifact_hook.go
artifact_hook_test.go
connect_native_hook.go consul/connect: add support for bridge networks with connect native tasks 2020-07-29 09:26:01 -05:00
connect_native_hook_test.go consul/connect: fixup tests to use new consul sdk 2020-08-24 12:02:41 -05:00
device_hook.go
device_hook_test.go
dispatch_hook.go
dispatch_hook_test.go
driver_handle.go
envoy_bootstrap_hook.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
envoy_bootstrap_hook_test.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
envoy_version_hook.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
envoy_version_hook_test.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
errors.go
errors_test.go
lazy_handle.go
lifecycle.go
logmon_hook.go
logmon_hook_test.go
logmon_hook_unix_test.go
plugin_supervisor_hook.go client/allocrunner/taskrunner: client.Close after err check (#8825) 2020-09-04 08:12:08 -04:00
script_check_hook.go consul: fix validation of task in group-level script-checks 2020-09-28 15:02:59 -05:00
script_check_hook_test.go consul: fix validation of task in group-level script-checks 2020-09-28 15:02:59 -05:00
service_hook.go Consul with CNI and host_network addresses (#9095) 2020-10-15 15:32:21 -04:00
service_hook_test.go
sids_hook.go
sids_hook_test.go
stats_hook.go stats_hook: log normal shutdown condition as debug, not error (#8028) 2020-05-20 10:28:30 -04:00
stats_hook_test.go
task_dir_hook.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
task_runner.go removed backwards-compatible/untagged metrics deprecated in 0.7 2020-10-13 20:18:39 +00:00
task_runner_getters.go oss compoments for multi-vault namespaces 2020-07-24 10:14:59 -04:00
task_runner_hooks.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
task_runner_test.go
tasklet.go
tasklet_test.go
template_hook.go oss compoments for multi-vault namespaces 2020-07-24 10:14:59 -04:00
validate_hook.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
validate_hook_test.go
vault_hook.go
vault_hook_test.go
volume_hook.go volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00
volume_hook_test.go volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00