-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpolicy_spec.json
More file actions
217 lines (217 loc) · 8.34 KB
/
Copy pathpolicy_spec.json
File metadata and controls
217 lines (217 loc) · 8.34 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/enterprise-contract/enterprise-contract-controller/api/v1alpha1/enterprise-contract-policy-spec",
"$ref": "#/$defs/EnterpriseContractPolicySpec",
"$defs": {
"EnterpriseContractPolicyConfiguration": {
"properties": {
"exclude": {
"items": {
"type": "string"
},
"type": "array",
"description": "Exclude set of policy exclusions that, in case of failure, do not block\nthe success of the outcome.\n+optional\n+listType:=set"
},
"include": {
"items": {
"type": "string"
},
"type": "array",
"description": "Include set of policy inclusions that are added to the policy evaluation.\nThese override excluded rules.\n+optional\n+listType:=set"
},
"collections": {
"items": {
"type": "string"
},
"type": "array",
"description": "Collections set of predefined rules. DEPRECATED: Collections can be listed in include\nwith the \"@\" prefix.\n+optional\n+listType:=set"
}
},
"additionalProperties": false,
"type": "object",
"description": "EnterpriseContractPolicyConfiguration configuration of modifications to policy evaluation."
},
"EnterpriseContractPolicySpec": {
"properties": {
"name": {
"type": "string",
"description": "Optional name of the policy\n+optional"
},
"description": {
"type": "string",
"description": "Description of the policy or its intended use\n+optional"
},
"sources": {
"items": {
"$ref": "#/$defs/Source"
},
"type": "array",
"description": "One or more groups of policy rules\n+kubebuilder:validation:MinItems:=1"
},
"configuration": {
"$ref": "#/$defs/EnterpriseContractPolicyConfiguration",
"description": "Configuration handles policy modification configuration (exclusions and inclusions)\n+optional"
},
"rekorUrl": {
"type": "string",
"description": "URL of the Rekor instance. Empty string disables Rekor integration\n+optional"
},
"publicKey": {
"type": "string",
"description": "Public key used to validate the signature of images and attestations\n+optional"
},
"identity": {
"$ref": "#/$defs/Identity",
"description": "Identity to be used for keyless verification. This is an experimental feature.\n+optional"
}
},
"additionalProperties": false,
"type": "object",
"description": "EnterpriseContractPolicySpec is used to configure the Enterprise Contract Policy"
},
"Identity": {
"properties": {
"subject": {
"type": "string",
"description": "Subject is the URL of the certificate identity for keyless verification.\n+optional"
},
"subjectRegExp": {
"type": "string",
"description": "SubjectRegExp is a regular expression to match the URL of the certificate identity for\nkeyless verification.\n+optional"
},
"issuer": {
"type": "string",
"description": "Issuer is the URL of the certificate OIDC issuer for keyless verification.\n+optional"
},
"issuerRegExp": {
"type": "string",
"description": "IssuerRegExp is a regular expression to match the URL of the certificate OIDC issuer for\nkeyless verification.\n+optional"
}
},
"additionalProperties": false,
"type": "object",
"description": "Identity defines the allowed identity for keyless signing."
},
"JSON": {
"properties": {},
"additionalProperties": true,
"type": "object"
},
"Source": {
"properties": {
"name": {
"type": "string",
"description": "Optional name for the source\n+optional"
},
"policy": {
"items": {
"type": "string"
},
"type": "array",
"description": "List of go-getter style policy source urls\n+kubebuilder:validation:MinItems:=1"
},
"data": {
"items": {
"type": "string"
},
"type": "array",
"description": "List of go-getter style policy data source urls\n+optional"
},
"ruleData": {
"$ref": "#/$defs/JSON",
"description": "Arbitrary rule data that will be visible to policy rules\n+optional\n+kubebuilder:validation:Type:=object"
},
"config": {
"$ref": "#/$defs/SourceConfig",
"description": "Config specifies which policy rules are included, or excluded, from the\nprovided policy source urls.\n+optional\n+kubebuilder:validation:Type:=object"
},
"volatileConfig": {
"$ref": "#/$defs/VolatileSourceConfig",
"description": "Specifies volatile configuration that can include or exclude policy rules\nbased on effective time.\n+optional\n+kubebuilder:validation:Type:=object"
}
},
"additionalProperties": false,
"type": "object",
"description": "Source defines policies and data that are evaluated together"
},
"SourceConfig": {
"properties": {
"exclude": {
"items": {
"type": "string"
},
"type": "array",
"description": "Exclude is a set of policy exclusions that, in case of failure, do not block\nthe success of the outcome.\n+optional\n+listType:=set"
},
"include": {
"items": {
"type": "string"
},
"type": "array",
"description": "Include is a set of policy inclusions that are added to the policy evaluation.\nThese take precedence over policy exclusions.\n+optional\n+listType:=set"
}
},
"additionalProperties": false,
"type": "object",
"description": "SourceConfig specifies config options for a policy source."
},
"VolatileCriteria": {
"properties": {
"value": {
"type": "string"
},
"effectiveOn": {
"type": "string",
"description": "+optional\n+kubebuilder:validation:Format:=date-time"
},
"effectiveUntil": {
"type": "string",
"description": "+optional\n+kubebuilder:validation:Format:=date-time"
},
"imageRef": {
"type": "string",
"description": "DEPRECATED: Use ImageDigest instead\nImageRef is used to specify an image by its digest.\n+optional\n+kubebuilder:validation:Pattern=`^sha256:[a-fA-F0-9]{64}$`"
},
"imageDigest": {
"type": "string",
"description": "ImageDigest is used to specify an image by its digest.\n+optional\n+kubebuilder:validation:Pattern=`^sha256:[a-fA-F0-9]{64}$`"
},
"imageUrl": {
"type": "string",
"description": "ImageUrl is used to specify an image by its URL without a tag.\n+optional\n+kubebuilder:validation:Pattern=`^[a-z0-9][a-z0-9.-]*[a-z0-9](?:\\/[a-z0-9][a-z0-9-]*[a-z0-9]){2,}$`"
},
"reference": {
"type": "string",
"description": "Reference is used to include a link to related information such as a Jira issue URL.\n+optional"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"value"
],
"description": "VolatileCriteria includes or excludes a policy rule with effective dates as an option."
},
"VolatileSourceConfig": {
"properties": {
"exclude": {
"items": {
"$ref": "#/$defs/VolatileCriteria"
},
"type": "array",
"description": "Exclude is a set of policy exclusions that, in case of failure, do not block\nthe success of the outcome.\n+optional"
},
"include": {
"items": {
"$ref": "#/$defs/VolatileCriteria"
},
"type": "array",
"description": "Include is a set of policy inclusions that are added to the policy evaluation.\nThese take precedence over policy exclusions.\n+optional"
}
},
"additionalProperties": false,
"type": "object",
"description": "VolatileSourceConfig specifies volatile configuration for a policy source."
}
}
}