This project is mirrored from https://gitee.com/mirrors/nomad.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 23 Oct, 2020 4 commits
-
-
Drew Bailey authored
-
Drew Bailey authored
-
Drew Bailey authored
-
Drew Bailey authored
-
- 22 Oct, 2020 15 commits
-
-
Drew Bailey authored
-
Drew Bailey authored
-
Drew Bailey authored
-
Drew Bailey authored
-
Drew Bailey authored
-
Drew Bailey authored
-
Drew Bailey authored
-
Tim Gross authored
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
-
Buck Doyle authored
This will hopefully make it easier to reproduce test failures that happen intermittently, especially in CI.
-
Mahmood Ali authored
Support HCLv2 for Nomad jobs
-
Tim Gross authored
The `$NOMAD_SECRETS_DIR` environment variable is rendered as `/secrets`, which prior to the recent security patch would unintentionally escape the file sandbox and get dropped in a directory named `/secrets` where the Nomad client binary was running. The `VaultSecrets` test was accidentally relying on this behavior and that causes the test to fail.
-
Drew Bailey authored
* remove event durability temporarily removing go-memdb event durability until a new strategy is developed on how to best handled increased durability needs * drop events table schema and state store methods * fix neweventbuffer invocations
-
Mahmood Ali authored
-
davidr912 authored
Updated to reflect plan expects the job definition as JSON object and not as the string form of the JSON
-
Mahmood Ali authored
-
- 21 Oct, 2020 13 commits
-
-
Tim Gross authored
During CSI plugin GC, we don't return an error if the volume is in use, because this is not an error condition. If we were to return an error during a `nomad system gc`, we would not continue on to GC volumes. But check for the specific error message fails if the GC is performed on a worker rather than on the leader, due to RPC forwarding wrapping the error message. Use a less specific test so that we don't return an error.
-
Mahmood Ali authored
-
Mahmood Ali authored
Also, fallback to using HCLv1.
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
Ensure that the client honors the client configuration for the `template.disable_file_sandbox` field when validating the jobspec's `template.source` parameter, and not just with consul-template's own `file` function. Prevent interpolated `template.source`, `template.destination`, and `artifact.destination` fields from escaping file sandbox.
-
Mahmood Ali authored
This ensures that gatway ReadOnly key is tested. Also, update the hclv1 test-fixtures to be hclv1 compliant.
-
Mahmood Ali authored
Adding gateway name eases HCLv2 parsing. This field is only used for parsing the job and is ignored for any other pruposes
-
Mahmood Ali authored
-
Tim Gross authored
When uploading a local binary for provisioning, the location that we pass into the provisioning script needs to be where we uploaded it to, not the source on our laptop. Also, the null_resource for uploading needs to read in the private key, not its path.
-
- 20 Oct, 2020 8 commits
-
-
Tim Gross authored
-
Alexander Shtuchkin authored
Fixes #9047, see problem details there. As a solution, we use BoltDB's 'Batch' mode that combines multiple parallel writes into small number of transactions. See https://github.com/boltdb/bolt#batch-read-write-transactions for more information.
-
Seth Hoenig authored
consul: add tests for meta/canarymeta interpolation
-
Seth Hoenig authored
-
Seth Hoenig authored
Expanding on #9096, add tests for making sure service.Meta and service.CanaryMeta are interpolated from environment variables.
-
Jorge Marey authored
-
Seth Hoenig authored
Remove limitation that has been fixed
-
Buck Doyle authored
Spinning is one of the triggers mentioned on this page: https://webkit.org/blog/7551/responsive-design-for-motion/ Thanks to @fivetanley for mentioning that this exists.
-