open-nomad/website/content/docs/job-specification
Seth Hoenig 51a2212d3d
client: sandbox go-getter subprocess with landlock (#15328)
* client: sandbox go-getter subprocess with landlock

This PR re-implements the getter package for artifact downloads as a subprocess.

Key changes include

On all platforms, run getter as a child process of the Nomad agent.
On Linux platforms running as root, run the child process as the nobody user.
On supporting Linux kernels, uses landlock for filesystem isolation (via go-landlock).
On all platforms, restrict environment variables of the child process to a static set.
notably TMP/TEMP now points within the allocation's task directory
kernel.landlock attribute is fingerprinted (version number or unavailable)
These changes make Nomad client more resilient against a faulty go-getter implementation that may panic, and more secure against bad actors attempting to use artifact downloads as a privilege escalation vector.

Adds new e2e/artifact suite for ensuring artifact downloading works.

TODO: Windows git test (need to modify the image, etc... followup PR)

* landlock: fixup items from cr

* cr: fixup tests and go.mod file
2022-12-07 16:02:25 -06:00
..
hcl2
affinity.mdx Update affinity.mdx (#15168) 2022-11-30 19:01:56 -05:00
artifact.mdx client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
change_script.mdx
check.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
check_restart.mdx
connect.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
constraint.mdx
csi_plugin.mdx
device.mdx
dispatch_payload.mdx
env.mdx
ephemeral_disk.mdx
expose.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
gateway.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
group.mdx
index.mdx
job.mdx
lifecycle.mdx
logs.mdx
meta.mdx docs: clarify how to access task meta values in templates (#15212) 2022-11-10 16:11:53 -06:00
migrate.mdx
multiregion.mdx
network.mdx
parameterized.mdx
periodic.mdx
proxy.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
reschedule.mdx
resources.mdx
restart.mdx
scaling.mdx
service.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
sidecar_service.mdx
sidecar_task.mdx
spread.mdx
task.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
template.mdx docs: clarify how to access task meta values in templates (#15212) 2022-11-10 16:11:53 -06:00
update.mdx
upstreams.mdx website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
vault.mdx
volume.mdx
volume_mount.mdx