[ ] I have updated/added any relevant documentation
Description
What's the goal of this PR?
Fixes the Problem of this Issue #997
What changes did you make?
I removed the requirement that the container must explicitly have the following configuration:
securityContext:
allowPrivilegeEscalation: false
However, the check still fails when the configuration is as follows:
securityContext:
allowPrivilegeEscalation: true
What's important to understand now is that when you omit any securityContext configuration entirely, the check will pass. This is because Kubernetes defaults to a configuration where allowPrivilegeEscalation is set to false.
What alternative solution should we consider, if any?
This PR fixes #997
Checklist
Description
What's the goal of this PR?
Fixes the Problem of this Issue #997
What changes did you make?
I removed the requirement that the container must explicitly have the following configuration:
However, the check still fails when the configuration is as follows:
What's important to understand now is that when you omit any
securityContext
configuration entirely, the check will pass. This is because Kubernetes defaults to a configuration whereallowPrivilegeEscalation
is set tofalse
.What alternative solution should we consider, if any?
-