-
Notifications
You must be signed in to change notification settings - Fork 52
/
dataKeys.json
629 lines (629 loc) · 20.6 KB
/
dataKeys.json
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"systems": {
"type": "array",
"items": {
"type": "string",
"enum": ["releaseNotes", "cdn"],
"description": "List of systems that are supported to be required in the data"
}
},
"fbc": {
"type": "object",
"properties": {
"request": {
"type": "string",
"description": "The internal pipeline name to handle requests e.g. iib"
},
"publishingCredentials": {
"type": "string",
"description": "The credentials used to publish the image e.g. example-fbc-publishing-credentials"
},
"buildTags": {
"type": "array",
"description": "The tags to be added to the build e.g. [ 'example-tag-1', 'example-tag-2' ]",
"items": {
"type": "string"
}
},
"addArches": {
"type": "array",
"description": "The arches to be added to the build e.g. [ 'x86_64', 'amd64' ]",
"items": {
"type": "string"
}
},
"hotfix": {
"type": "boolean",
"description": "Indicates if the build is a hotfix"
},
"preGA": {
"type": "boolean",
"description": "Indicates if the build is a preGA"
},
"stagedIndex": {
"type": "boolean",
"description": "Indicates if the build is a staged index"
},
"productName": {
"type": "string",
"description": "The product name e.g. exampleproduct ",
"pattern": "^[a-z]+$"
},
"productVersion": {
"type": "string",
"description": "The product version e.g v1.0.0"
},
"buildTimeoutSeconds": {
"type": "integer",
"description": "The build timeout in seconds e.g. 1500"
},
"requestTimeoutSeconds": {
"type": "integer",
"description": "The requested timeout in seconds e.g. 1500"
},
"timestampFormat": {
"type": "string",
"description": "The timestamp format which defaults to %s e.g. %Y-%m-%d"
},
"issueId": {
"type": "string",
"description": "The issue ID e.g. bz123456"
},
"allowedPackages": {
"type": "array",
"description": "The allowed packages e.g. ['example-package-1', 'example-package-2'] ",
"items": {
"type": "string"
}
},
"fromIndex": {
"type": "string",
"description": "The source index image e.g. registry-proxy.engineering.redhat.com/rh-osbs/iib-preview-rhtap:v4.09 "
},
"targetIndex": {
"type": "string",
"description": "The target index image e.g. quay.io/redhat/redhat----preview-operator-index:v4.10 "
},
"configMapName": {
"type": "string",
"description": "The configmap that exists on the cluster"
},
"pipelineImage": {
"type": "string",
"description": "An image with CLI tools needed for the signing by the internal signing pipelines"
}
}
},
"releaseNotes": {
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"description": "The product ID e.g 321"
},
"product_name": {
"type": "string",
"description": "The product name e.g. exampleproduct"
},
"product_version": {
"type": "string",
"description": "The product version e.g v1.0.0",
"pattern": "^(fbc[-]|[vV])?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:\\.(?:0|[1-9]\\d*))?([-\\s]?([Aa]lpha|[Bb]eta|fast|tech[-\\s]preview)?)$"
},
"product_stream": {
"type": "string",
"description": "The product stream e.g. RHEL-tp1"
},
"cpe": {
"type": "string",
"description": "The product CPE ID e.g. cpe:/a:example:openstack:el8"
},
"type": {
"type": "string",
"enum": ["RHEA", "RHBA", "RHSA"],
"description": "Type advisory type e.g. RHSA"
},
"synopsis": {
"type": "string",
"description": "The advisory synopsis e.g. my advisory synopsis"
},
"topic": {
"type": "string",
"description": "The advisory topic e.g. my advisory topic"
},
"description": {
"type": "string",
"description": "The advisory description e.g. This advisory is for security fixes to my product"
},
"solution": {
"type": "string",
"description": "The advisory solution e.g. For details on how to apply this update, see docs.com"
},
"references": {
"type": "array",
"description": "The advisory references e.g. [ 'https://access.redhat.com/security/updates/classification', 'https://docs.redhat.com/some/example/release-notes' ] ",
"items": {
"type": "string"
}
},
"cves": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "The key of the CVE e.g. CVE-3414"
},
"component": {
"type": "string",
"description": "The name of the component"
},
"packages": {
"type": "array",
"description": "A list of packages that fixed the CVE e.g. [ 'pkg:golang/golang.org/x/net/http2@1.11.1' ]",
"items": {
"type": "string"
}
}
}
}
},
"issues": {
"type": "object",
"properties": {
"fixed": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the fixed issue e.g. RHOSP-3414"
},
"source": {
"type": "string",
"description": "The URL of the where the issue is tracked e.g. bugzilla.example.com"
}
}
}
}
}
},
"content": {
"type": "object",
"properties": {
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"containerImage": {
"type": "string",
"description": "The container image e.g. quay.io/example/openstack@sha256:example"
},
"repository": {
"type": "string",
"description": "The repository e.g. registry.redhat.io/rhosp16-rhel8/openstack"
},
"tags": {
"type": "array",
"description": "A list of tags e.g. [ 'latest', 'v1' ]",
"items": {
"type": "string"
}
},
"component": {
"type": "string",
"description": "The component of the image e.g. adv-comp-1"
},
"architecture": {
"type": "string",
"description": "The architecture of the image e.g. amd64"
},
"signingKey": {
"type": "string",
"description": "The key used to sign the image"
},
"purl": {
"type": "string",
"description": "The package URL representing the image e.g. pkg:example/openstack@sha256:abcde?repository_url=quay.io/example/rhosp16-rhel8"
},
"cves": {
"type": "object",
"properties": {
"fixed": {
"type": "object",
"description": "A list of fixed CVEs",
"additionalProperties": {
"type": "object",
"properties": {
"packages": {
"type": "array",
"description": "A list of packages that fixed the CVE e.g. [ 'pkg:golang/golang.org/x/net/http2@1.11.1' ]",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"sign": {
"type": "object",
"properties": {
"cosignSecretName": {
"type": "string",
"description": "Name of secret which contains AWS_REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and SIGN_KEY"
},
"request": {
"type": "string",
"description": "The signing pipeline name to handle the request"
},
"configMapName": {
"type": "string",
"description": "The configmap that exists on the cluster for signing of the images e.g. hacbs-signing-pipeline-config-redhatbeta2"
},
"pipelineImage": {
"type": "string",
"description": "An image with CLI tools needed for the signing by the internal signing pipelines"
},
"requestType": {
"type": "string",
"description": "The request type to be used to request signing",
"enum": ["internal-request", "internal-pipelinerun"]
}
}
},
"github": {
"type": "object",
"properties": {
"githubSecret": {
"type": "string",
"description": "The secret used to authenticate GitHub via the the GitHub token"
}
}
},
"pyxis": {
"type": "object",
"properties": {
"secret": {
"type": "string",
"description": "The secret used to authenticate Pyxis e.g. example-collect-pyxis-params-cert"
},
"server": {
"type": "string",
"description": "The Pyxis server being used e.g. production-internal",
"enum": [
"stage",
"production",
"production-internal",
"stage-internal"
]
},
"skipRepoPublishing": {
"type": "boolean",
"description": "Skip setting the pyxis repo to published"
},
"skipLayers": {
"type": "boolean",
"description": "When creating ContainerImage in Pyxis, omit details about layers"
}
}
},
"slack": {
"type": "object",
"properties": {
"slack-notification-secret": {
"type": "string",
"description": "The secret key for slack notifications e.g. example-team-slack-webhook-notification-secret"
},
"slack-webhook-notification-secret-keyname": {
"type": "string",
"description": "The key name for the slack webhook notification secret e.g. release"
}
}
},
"infra-deployment-update-script": {
"type": "string",
"description": "A script that can alter files in the infra-deployment repo before a a PR is created"
},
"singleComponentMode": {
"type": "boolean",
"description": "Whether testing and releasing single component is enabled."
},
"mapping": {
"type": "object",
"properties": {
"components": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The component name found in the snapshot e.g. example-component"
},
"repository": {
"type": "string",
"description": "URL where you want to push the artifact e.g. quay.io/redhat/example-component"
},
"baseImage": {
"type": "boolean",
"description": "Indicates if the component serves as a base image for another component's containerImage"
},
"tags": {
"type": "array",
"description": "The tags to push the artifact e.g. [ {{ git_sha }}, {{ digest_sha }}, 1.0 ]",
"items": {
"type": "string"
}
},
"staged": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "repo in pulp where staged files should be placed"
},
"version": {
"type": "string",
"description": "version in pulp where staged files should be placed in repo"
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"filename": {
"type": "string",
"description": "filename when file is uploaded"
},
"source": {
"type": "string",
"description": "name of file within image"
}
}
}
}
}
},
"contentGateway": {
"type": "object",
"properties": {
"productName": {
"type": "string",
"description": "productName in content gateway"
},
"productCode": {
"type": "string",
"description": "productCode in content gateway"
},
"productVersionName": {
"type": "string",
"description": "productVersionName in content gateway"
},
"filePrefix": {
"type": "string",
"description": "filePrefix to use to select files to add to content gateway"
},
"mirrorOpenshiftPush": {
"type": "boolean",
"description": "whether or not to push to mirror.openshift.com"
},
"components": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "The component name found in the snapshot e.g. example-component"
},
"description": {
"type": "string",
"description": "Description propogated to Content Gateway"
}
}
}
}
}
},
"productInfo": {
"type": "object",
"properties": {
"productName": {
"type": "string",
"description": "productName in content gateway"
},
"productCode": {
"type": "string",
"description": "productCode in content gateway"
},
"productVersionName": {
"type": "string",
"description": "productVersionName in content gateway"
}
}
},
"starmap": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Artifact name"
},
"workflow": {
"type": "string",
"description": "Push workflow"
},
"cloud": {
"type": "string",
"description": "Cloud provider's name"
},
"mappings": {
"type": "object",
"description": "Mappings for the given artifact"
},
"billing-code-config": {
"type": "object",
"description": "Billing configuration for the community worklow"
}
}
}
},
"pushSourceContainer": {
"type": "boolean",
"description": "Indicates if the source container should be pushed"
},
"public": {
"type": "boolean",
"description": "Indicates if the target repository should be made public"
}
}
}
},
"defaults": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"description": "The default tags to push for all components e.g. [ '{{ git_sha }}', '{{ digest_sha }}', '1.0' ]",
"items": {
"type": "string"
}
},
"pushSourceContainer": {
"type": "boolean",
"description": "Indicates if the source container should be pushed"
},
"public": {
"type": "boolean",
"description": "Indicates if the target repositories should be made public"
}
}
},
"registrySecret": {
"type": "string",
"description": "The k8s secret containing token for quay.io API"
},
"cloudMarketplacesSecret": {
"type": "string",
"description": "Secret for cloud marketplaces"
}
}
},
"cdn": {
"type": "object",
"properties": {
"env": {
"type": "string",
"enum": ["qa", "stage", "production"],
"description": "The environment for the CDN configuration e.g. qa"
}
}
},
"mrrc": {
"type": "object",
"properties": {
"release": {
"type": "string",
"enum": ["ga", "ea"],
"description": "The release for the MRRC configuration e.g. ga"
},
"environment": {
"type": "string",
"enum": ["dev", "stage", "production"],
"description": "The environment for the MRRC configuration e.g. dev"
},
"awsSecret": {
"type": "string",
"description": "The k8s secret containing the aws credential for MRRC aws access"
},
"charonConfig": {
"type": "string",
"description": "The charon configuration content which will be stored as file for charon tools"
}
}
}
},
"allOf": [
{
"if": {
"properties": {
"systems": {
"contains": {
"const": "releaseNotes"
}
}
}
},
"then": {
"required": [
"releaseNotes"
],
"properties": {
"releaseNotes": {
"required": [
"product_id",
"product_name",
"product_version",
"product_stream",
"cpe",
"synopsis",
"topic",
"description",
"solution",
"references",
"content"
],
"properties": {
"content": {
"required": [
"images"
]
}
}
}
}
}
},
{
"if": {
"properties": {
"systems": {
"contains": {
"const": "cdn"
}
}
}
},
"then": {
"required": [
"cdn"
],
"properties": {
"cdn": {
"required": [
"env"
]
}
}
}
}
]
}