-
Notifications
You must be signed in to change notification settings - Fork 52
/
readonlyrootfilesystem.yaml
52 lines (52 loc) · 2.14 KB
/
readonlyrootfilesystem.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 2024 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: K8sPSPReadOnlyRootFilesystem
metadata:
name: nsa-cisa-k8s-v1.2-readonlyrootfilesystem
labels:
policycontroller.gke.io/bundleName: nsa-cisa-k8s-v1.2
annotations:
policycontroller.gke.io/bundleVersion: "202312.1"
policycontroller.gke.io/constraintData: |-
"{
bundleName: 'nsa-cisa-k8s-v1.2',
bundleDisplayName: 'NSA CISA Kubernetes Hardening Guide v1.2',
bundleLink: 'https://cloud.google.com/anthos-config-management/docs/how-to/using-nsa-cisa-k8s-v1.2',
bundleVersion: '202312.1',
bundleDescription: 'Use the NSA CISA Kubernetes Hardening Guide v1.2 policy bundle with Policy Controller to evaluate the compliance of your cluster resources against some aspects of the NSA CISA Kubernetes Hardening Guide v1.2.',
controlNumbers: '[]',
severity: 'Low',
description: 'Requires the use of a read-only root file system by pod containers. Corresponds to the `readOnlyRootFilesystem` field in a PodSecurityPolicy.',
remediation: 'Pods must use a read-only root file system.',
minimumTemplateLibraryVersion: '1.10.1',
constraintHash: '8f4770da89810925319e13027da80d4a3517ac88ab65b7859356eff9cfa7fb37'
}"
spec:
enforcementAction: dryrun
match:
kinds:
- apiGroups:
- ""
kinds:
- Pod
excludedNamespaces:
- config-management-system
- kube-system
- gke-connect
- asm-system
- gke-managed-metrics-server
- anthos-identity-service
- cert-manager
- gke-system
- apigee
parameters:
exemptImages:
- gcr.io/anthos-baremetal-release/*
- gke.gcr.io/*