You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a PSP rule with a .spec.requiredDropCapabilities specified. This field is simultaneously a "Validating" and "Mutating" field in PodSecurityPolicy.
Your tool does only generate the "Validating" rules, but not the "Mutating" ones.
So when I insert new objects in the k8s cluster with no "requiredDropCapabilities" specified, these objets are blocked by OPA (because no "requiredDropCapabilities" present) insted of being first mutated by OPA and added the missing field.
What happened?
I have a PSP rule with a
.spec.requiredDropCapabilities
specified. This field is simultaneously a "Validating" and "Mutating" field in PodSecurityPolicy.Your tool does only generate the "Validating" rules, but not the "Mutating" ones.
So when I insert new objects in the k8s cluster with no "requiredDropCapabilities" specified, these objets are blocked by OPA (because no "requiredDropCapabilities" present) insted of being first mutated by OPA and added the missing field.
What policy engine were you generating policy for
Gatekeeper
Relevant log output
Source object:
Generated objects:
The object
K8sPSPCapabilities
is only a "Validating" object (see definition in https://github.com/open-policy-agent/gatekeeper-library/blob/master/library/pod-security-policy/capabilities/template.yaml).The text was updated successfully, but these errors were encountered: