Skip to content

Commit

Permalink
Set allowPrivilegeEscalation to false as default value for the servic…
Browse files Browse the repository at this point in the history
…e orchestrator (#4427)
  • Loading branch information
wumbrath authored Nov 9, 2022
1 parent e680614 commit c7ff8a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion operator/controllers/seldondeployment_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ func createEngineContainer(mlDep *machinelearningv1.SeldonDeployment, p *machine
}

if engineUser != nil {
c.SecurityContext = &corev1.SecurityContext{RunAsUser: engineUser}
escalationDefault := false
c.SecurityContext = &corev1.SecurityContext{RunAsUser: engineUser, AllowPrivilegeEscalation: &escalationDefault}
}

// Environment vars if specified
Expand Down

0 comments on commit c7ff8a3

Please sign in to comment.