open-nomad/website/content
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
..
api-docs docs: improve job parse API documentation (#15387) 2022-11-25 12:46:53 -05:00
docs client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
intro website: content updates for developer (#14473) 2022-09-16 10:38:39 -05:00
partials website: fix broken links (#14946) 2022-10-19 14:07:48 -04:00
plugins website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
tools docs: clarify autoscaling factor and threshold for target-value plugin (#15418) 2022-11-30 10:56:16 -05:00
security.mdx Upgrade global styles (#10936) 2021-08-20 11:53:12 -04:00