When allowPrivilegeEscalation is enabled (set to true) on SecurityContext, the following error is encountered regardless of the value set for DefaultAllowPrivilegeEscalation (true or false).
one of the containers has privilege escalation enabled
Expected Behavior
If allowPrivilegeEscalation is set to true and DefaultAllowPrivilegeEscalation is set to true, should not presented with an error.
Steps To Reproduce
Set DefaultAllowPrivilegeEscalation to true for allow-privilege-escalation-psp-policy
Set the following on one of the containers:
securityContext:
allowPrivilegeEscalation: true
Environment
- OS: Linux
Anything else?
This block of code appears to disallow/reject a container with securityContext enabled. Even if `DefaultAllowPrivilegeEscalation is true. Should not the container allowed?
Is there an existing issue for this?
Current Behavior
When
allowPrivilegeEscalation
is enabled (set totrue
) on SecurityContext, the following error is encountered regardless of the value set forDefaultAllowPrivilegeEscalation
(true
orfalse
).one of the containers has privilege escalation enabled
Expected Behavior
If
allowPrivilegeEscalation
is set totrue
andDefaultAllowPrivilegeEscalation
is set totrue
, should not presented with an error.Steps To Reproduce
DefaultAllowPrivilegeEscalation
totrue
for allow-privilege-escalation-psp-policyEnvironment
Anything else?
This block of code appears to disallow/reject a container with securityContext enabled. Even if
`DefaultAllowPrivilegeEscalation
is true. Should not the container allowed?