The seccomp profile must not be explicitly set to Unconfined. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is unset or set to `RuntimeDefault` or `Localhost`.
apiVersion: kyverno.io/v1kind: ClusterPolicymetadata:name: restrict-seccompannotations:policies.kyverno.io/title: Restrict Seccomppolicies.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 seccomp profile must not be explicitly set to Unconfined. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is unset or set to `RuntimeDefault` or `Localhost`.spec:background: truevalidationFailureAction: Auditrules:- name: check-seccompmatch:any:- resources:kinds:- Podvalidate:message: Use of custom Seccomp profiles is disallowed. The fields spec.securityContext.seccompProfile.type, spec.containers[*].securityContext.seccompProfile.type, spec.initContainers[*].securityContext.seccompProfile.type, and spec.ephemeralContainers[*].securityContext.seccompProfile.type must be unset or set to `RuntimeDefault` or `Localhost`.pattern:spec:"=(securityContext)":"=(seccompProfile)":"=(type)": RuntimeDefault | Localhost"=(ephemeralContainers)":- "=(securityContext)":"=(seccompProfile)":"=(type)": RuntimeDefault | Localhost"=(initContainers)":- "=(securityContext)":"=(seccompProfile)":"=(type)": RuntimeDefault | Localhostcontainers:- "=(securityContext)":"=(seccompProfile)":"=(type)": RuntimeDefault | Localhost
This policy prevents the use of the default project in an Application.
Services of type LoadBalancer when deployed inside AWS have support for transport encryption if it is enabled via an annotation. This policy requires that Services of type LoadBalancer contain the annotation service.beta.kubernetes.io/aws-load-balancer-ssl-cert with some value.
This policy prevents updates to the project field after an Application is created.