Doc Text:
|
Cause:
PSA `baseline` policy was introduced as default cluster-wide
for all namespaces, with a default warning level of `restricted`.
Consequence:
Warnings like
/apis/batch/v1/namespaces/jian/jobs would violate PodSecurity "restricted:v1.24": allowPrivilegeEscalation != false (containers "util", "pull", "extract" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "util", "pull", "extract" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "util", "pull", "extract" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "util", "pull", "extract" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
were being emitted in the openshift-marketplace namespace.
Workaround (if any):
Result:
Fix introduced in the PR suppress the warnings, by reducing the warn level to `baseline`.
|