Skip to content

Commit 4f2a702

Browse files
committed
docs: add some info about CoT verification expectations w.r.t decision and action tasks
1 parent 58609a8 commit 4f2a702

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/cot_verify.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,13 @@ Scriptworker:
6464

6565
Once all verification passes, it launches the task script. If chain of trust verification fails, it exits before launching the task script.
6666

67+
Extra data and assumptions
68+
~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
70+
Some of the information necessary for rebuilding decision task definitions can't be independently re-generated at verification time; for these cases, we rely on additional data in the original task definition itself. That means the project's `.taskcluster.yml` needs to store that information for CoT to find it, and that `.taskcluster.yml` shouldn't make security-relevant decisions based on it. These bits are:
71+
72+
- in action tasks, `task.extra.action.context` should contain the action's `taskGroupId`, `taskId` and `input`, plus any other bits of context used by `.taskcluster.yml`, e.g. `clientId`; `task.extra.parent` should contain its parent task's `taskId` (pointing at either a decision task or another action task).
73+
- in decision tasks for cron jobs, `task.extra.cron` should be a copy of the `cron` object passed to the task, containing `task_id`, `job_name`, `job_symbol` and `quoted_args`
74+
- in all cases, `task.extra.tasks_for` contains the `tasks_for` value.
75+
6776
.. _json-e: https://github.com/taskcluster/json-e

0 commit comments

Comments
 (0)