-
Notifications
You must be signed in to change notification settings - Fork 52
/
require-binauthz.yaml
38 lines (38 loc) · 1.92 KB
/
require-binauthz.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
# 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: K8sRequireBinAuthZ
metadata:
name: nist-sp-800-53-r5-require-binauthz
labels:
policycontroller.gke.io/bundleName: nist-sp-800-53-r5
annotations:
policycontroller.gke.io/bundleVersion: "202403.0"
policycontroller.gke.io/constraintData: |-
"{
bundleName: 'nist-sp-800-53-r5',
bundleDisplayName: 'NIST SP 800-53 Rev. 5',
bundleLink: 'https://cloud.google.com/anthos-config-management/docs/how-to/using-nist-sp-800-53-r5',
bundleVersion: '202403.0',
bundleDescription: 'Use the NIST SP 800-53 Rev. 5 policy bundle with Policy Controller to evaluate the compliance of your cluster resources against some aspects of the NIST SP 800-53 Rev. 5 controls.',
controlNumbers: '[SR-4,SI-7,RA-5,SA-3,SC-12,CM-6,AU-10,CM-14,SI-1,IA-5,AC-4,AC-6,SA-11]',
severity: 'UNSPECIFIED',
description: 'Requires the Binary Authorization Validating Admission Webhook.',
remediation: 'Containers must use Binary Authorization for container image authenticity and attestation. See "Set up Binary Authorization" for more information: https://cloud.google.com/binary-authorization/docs/set-up-platform',
minimumTemplateLibraryVersion: '1.15.2',
constraintHash: '610a1f46831b68bbdda728e08a830e33f0741fff310a3fd4561be0d123e9d867'
}"
spec:
match:
kinds:
- apiGroups:
- ""
kinds:
- Namespace
enforcementAction: dryrun