mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
e2e: do not set a user for raw_exec tasks (#17901)
Cannot set a user for raw_exec tasks, because doing so does not work with the 0700 root owned client data directory that we setup in the e2e cluster in accordance with the Nomad hardening guide.
This commit is contained in:
@@ -23,7 +23,6 @@ job "env" {
|
||||
}
|
||||
|
||||
task "task" {
|
||||
user = "nobody"
|
||||
driver = "raw_exec"
|
||||
|
||||
config {
|
||||
|
||||
@@ -28,7 +28,6 @@ job "sleep" {
|
||||
}
|
||||
|
||||
task "task" {
|
||||
user = "nobody"
|
||||
driver = "raw_exec"
|
||||
|
||||
config {
|
||||
|
||||
@@ -35,7 +35,6 @@ job "checks_task_restart" {
|
||||
|
||||
task "python" {
|
||||
driver = "raw_exec"
|
||||
user = "nobody"
|
||||
config {
|
||||
command = "python3"
|
||||
args = ["-m", "http.server", "${NOMAD_PORT_http}", "--directory", "/tmp"]
|
||||
|
||||
Reference in New Issue
Block a user