The default /proc masks are set up to reduce attack surface and should be required. This policy ensures nothing but the default procMount can be specified. Note that in order for users to deviate from the `Default` procMount requires setting a feature gate at the API server.
apiVersion: kyverno.io/v1kind: ClusterPolicymetadata:name: disallow-proc-mountannotations:policies.kyverno.io/title: Disallow procMountpolicies.kyverno.io/category: Pod Security Standards (Baseline)policies.kyverno.io/severity: mediumpolicies.kyverno.io/subject: Podkyverno.io/kyverno-version: 1.6.0kyverno.io/kubernetes-version: 1.22-1.23policies.kyverno.io/description: The default /proc masks are set up to reduce attack surface and should be required. This policy ensures nothing but the default procMount can be specified. Note that in order for users to deviate from the `Default` procMount requires setting a feature gate at the API server.spec:validationFailureAction: Auditbackground: truerules:- name: check-proc-mountmatch:any:- resources:kinds:- Podvalidate:message: Changing the proc mount from the default is not allowed. The fields spec.containers[*].securityContext.procMount, spec.initContainers[*].securityContext.procMount, and spec.ephemeralContainers[*].securityContext.procMount must be unset or set to `Default`.pattern:spec:"=(ephemeralContainers)":- "=(securityContext)":"=(procMount)": Default"=(initContainers)":- "=(securityContext)":"=(procMount)": Defaultcontainers:- "=(securityContext)":"=(procMount)": Default
This policy performs some best practices validation on Application fields. Path or chart must be specified but never both. And destination.name or destination.server must be specified but never both.
This policy prevents the use of the default project in an Application.
This policy prevents updates to the project field after an Application is created.