forked from GoogleCloudPlatform/gke-policy-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
capabilities.yaml
47 lines (47 loc) · 1.84 KB
/
capabilities.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
# 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: K8sPSPCapabilities
metadata:
name: pss-restricted-v2022-capabilities
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: '202305.0',
bundleDescription: 'Use the Pod Security Standards Restricted v2022 policy bundle with Policy Controller to achieve many of the Kubernetes Pod Security Standards Restricted policy protections.',
controlNumbers: '[]',
severity: 'UNASSIGNED',
description: 'Containers must drop ALL capabilities, and are only permitted to add back the NET_BIND_SERVICE capability.',
remediation: '',
minimumTemplateLibraryVersion: '1.10.2'
}"
spec:
enforcementAction: dryrun
match:
kinds:
- apiGroups:
- ""
kinds:
- Pod
parameters:
allowedCapabilities:
- NET_BIND_SERVICE
requiredDropCapabilities:
- ALL
exemptImages:
- gcr.io/gke-release/*
- gcr.io/config-management-release/*
- gcr.io/kubebuilder/*
- gcr.io/anthos-baremetal-release/*
- gke.gcr.io/*