forked from GoogleCloudPlatform/gke-policy-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
seccomp.yaml
52 lines (52 loc) · 1.99 KB
/
seccomp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2023 Google LLC
#
# This is “Software” that is licensed under the “General Software” section of
# the Service Specific Terms (https://cloud.google.com/terms/service-terms) for
# usage in accordance with the following “Scope of Use”: This file may only be
# used on an Anthos cluster, including any associated ci/cd use. “Anthos
# cluster” is defined as “A Cluster (of any kind) registered to a fleet project
# where the Anthos API is enabled”.
apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sPSPSeccomp
metadata:
name: pss-restricted-v2022-seccomp
labels:
policycontroller.gke.io/bundleName: pss-restricted-v2022
annotations:
policycontroller.gke.io/constraintData: |
"{
bundleName: 'pss-restricted-v2022',
bundleDisplayName: 'Pod Security Standards Restricted v2022',
bundleLink: 'https://github.com/GoogleCloudPlatform/acm-policy-controller-library/tree/master/anthos-bundles/pss-restricted-v2022',
bundleVersion: '202301.0',
bundleDescription: 'Use the Pod Security Standards Restricted v2022 policy bundle with Anthos Policy Controller to to achieve many of the protections of the Kubernetes Pod Security Standards Restricted policy.',
controlNumbers: '[]',
severity: 'UNASSIGNED',
description: 'Seccomp profile must be explicitly set to one of the allowed values. Both the Unconfined profile and the absence of a profile are prohibited.',
remediation: '',
minimumTemplateLibraryVersion: '1.11.1'
}"
spec:
enforcementAction: dryrun
match:
kinds:
- apiGroups:
- ""
kinds:
- Pod
excludedNamespaces:
- kube-system
- gatekeeper-system
- config-management-monitoring
- config-management-system
- asm-system
- resource-group-system
- istio-system
- gke-connect
parameters:
allowedProfiles:
- RuntimeDefault
- Localhost
exemptImages:
- gcr.io/gke-release/asm/proxyv2:*
- gcr.io/anthos-baremetal-release/*