open-nomad/helper
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
..
args address review comments 2018-10-30 13:58:52 -04:00
boltdd Implement 'batch mode' for persisting allocations on the client. (#9093) 2020-10-20 16:15:37 -04:00
codec Pull inmem codec to helper 2018-02-15 13:59:00 -08:00
constraints/semver test: assert semvers are *not* compared lexically 2019-11-19 10:59:40 -08:00
discover skip running test executables 2017-10-19 16:49:57 -07:00
escapingio Handle when a new line follows an escaping char 2020-08-31 20:31:44 -04:00
fields goimports 2019-01-22 15:44:31 -08:00
flag-helpers agent: add optional param to -dev flag for connect (#6126) 2019-08-14 15:29:37 -04:00
flatmap Enable more linters 2017-09-26 15:26:33 -07:00
freeport Fix undefined: getEphemeralPortRange error on FreeBSD. 2020-02-27 14:54:55 -05:00
gated-writer agent: moving functions into helpers 2015-08-23 16:57:54 -07:00
grpc-middleware/logging helper: Add initial grpc logging middleware 2020-03-23 13:58:29 -04:00
logging cli Ui implementation that logs to a hclogger 2019-02-19 17:53:14 -06:00
mount helper/mount: Add mount helper package 2020-03-23 13:58:29 -04:00
noxssrw agent: prevent XSS by controlling Content-Type 2020-03-25 09:45:43 -04:00
pluginutils driver/docker: allow configurable pull context timeout setting. 2020-08-12 08:58:07 +01:00
pool RPC errors must be wrapped in order to wrap internal errors (#8632) 2020-08-11 09:13:52 -04:00
raftutil return explicit error if not found/empty path falls through 2020-09-29 14:55:28 -04:00
snapshot Apply suggestions from code review 2020-05-31 21:29:17 -04:00
stats Extend timeout based on user feedback 2018-06-21 15:27:56 -04:00
testlog tests: prefix agent logs to identify agent sources 2020-06-07 16:38:11 -04:00
testtask Update helper/testtask/testtask_windows.go 2019-01-17 18:43:14 +01:00
tlsutil config: accept CA PEM files with extra whitespace 2018-09-06 11:38:56 -07:00
useragent Set user-agent when talking to GCE metadata 2018-04-10 10:36:46 -04:00
uuid Remove structs import from api 2017-09-29 10:36:08 -07:00
winsvc Added service wrapper code (#6220) 2019-11-11 15:16:07 -05:00
funcs.go artifact/template: make destination path absolute inside taskdir (#9149) 2020-10-22 15:47:49 -04:00
funcs_test.go artifact/template: make destination path absolute inside taskdir (#9149) 2020-10-22 15:47:49 -04:00