template: fix comments and docs
Review notes from @lgfa29 Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
This commit is contained in:
parent
7a28fcb8af
commit
33fe04ff6a
|
@ -2234,7 +2234,7 @@ func TestTaskTemplateManager_writeToFile(t *testing.T) {
|
|||
require.NoError(t, harness.startWithErr(), "couldn't setup initial harness")
|
||||
defer harness.stop()
|
||||
|
||||
// Using writeToFile should cause a kill
|
||||
// Using writeToFile should not cause a kill
|
||||
select {
|
||||
case <-harness.mockHooks.UnblockCh:
|
||||
case <-harness.mockHooks.EmitEventCh:
|
||||
|
|
|
@ -350,7 +350,7 @@ see the [drivers documentation](/docs/drivers).
|
|||
|
||||
- `function_denylist` `([]string: ["plugin", "writeToFile"])` - Specifies a
|
||||
list of template rendering functions that should be disallowed in job specs.
|
||||
By default the `plugin` and "writeToFile" functions are disallowed as they
|
||||
By default the `plugin` and `writeToFile` functions are disallowed as they
|
||||
allow unrestricted root access to the host.
|
||||
|
||||
- `disable_file_sandbox` `(bool: false)` - Allows templates access to arbitrary
|
||||
|
|
Loading…
Reference in New Issue