-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpolicyGenerator.yaml
89 lines (89 loc) · 2.19 KB
/
policyGenerator.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
apiVersion: policy.open-cluster-management.io/v1
kind: PolicyGenerator
metadata:
name: policy-generator-name
placementBindingDefaults:
name: my-placement-binding
policyDefaults:
# categories: []
# complianceType: "musthave"
controls:
- PR.DS-1 Data-at-rest
namespace: my-policies
# Use an existing placement so that placement bindings can be consolidated
placement:
placementPath: input/placement.yaml
# Example of using labelSelector to generate a placement
# placement:
# labelSelector:
# matchLabels:
# cloud: red hat
remediationAction: inform
severity: medium
# standards: []
policySets:
- policyset-config
policies:
- name: policy-app-config-aliens
disabled: false
manifests:
- path: input/configmap-aliens.yaml
patches:
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
chandler: bing
remediationAction: enforce
- name: policy-app-config-others
disabled: true
manifests:
- path: input-folder/
patches:
- apiVersion: v1
kind: ConfigMap
metadata:
name: game-config-toads
namespace: default
labels:
monica: geller
- name: policy-require-labels
disabled: true
manifests:
- path: input-kyverno/
policySets:
- policyset-kyverno
- name: policy-object-templates-raw
disabled: true
manifests:
- path: input-object-templates-raw/
remediationAction: enforce
- name: policy-require-ns-labels
manifests:
- path: input-gatekeeper/
policySets:
- policyset-gatekeeper
- name: policy-min-cert-duration
categories:
- AC Access Control
controls:
- AC-3 Access Enforcement
standards:
- NIST SP 800-53
manifests:
- path: input-policy-type/certpolicy.yaml
policySets:
- policyset-certpolicy
policySets:
- name: policyset-kyverno
description: this is a kyverno policy set.
policies:
- pre-exists-kyverno-policy
placement:
placementPath: input/placement.yaml
- name: policyset-gatekeeper
description: this is a gatekeeper policy set.
placement:
placementPath: input/placement.yaml
- name: policyset-certpolicy
description: this is a cert policy set.