quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.57k stars 2.63k forks source link

Add allowPrivilegeEscalation to security context configuration in the Kubernetes extension #42965

Open chapitos opened 2 weeks ago

chapitos commented 2 weeks ago

Description

Currently it is not possible to set the allowPrivilegeEscalation property of the security context in Kubernetes extension using application properties. Setting this property to false will disable the pod (container) to gain more privilege than the parent process. Many clusters use policy agents which will, per default, hinder the start of the pod with security context with this property not set explicitly to false.

Implementation ideas

Extend the relevant classes to support new property:

quarkus-bot[bot] commented 2 weeks ago

/cc @geoand (kubernetes), @iocanel (kubernetes), @radcortez (config), @sberyozkin (security)

geoand commented 1 week ago

@chapitos as you seem to have analyzed what is required, would you like to open a Pull Request with your proposal?

Thanks