Skip to content

Commit c2489d9

Browse files
Merge pull request #295203 from Hacks4Snacks/graymark/clustercvereportupdate
[operator-nexus] Update cluster cve report schema
2 parents 9b62a7d + ef038fa commit c2489d9

File tree

1 file changed

+72
-108
lines changed

1 file changed

+72
-108
lines changed

articles/operator-nexus/howto-baremetal-run-data-extract.md

Lines changed: 72 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
401401
"type": "string",
402402
"description": "The name of the resource."
403403
},
404+
"clusterId": {
405+
"type": "string",
406+
"description": "The resource ID of the cluster."
407+
},
404408
"runtimeVersion": {
405409
"type": "string",
406410
"description": "The version of the runtime."
@@ -412,35 +416,41 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
412416
"vulnerabilitySummary": {
413417
"type": "object",
414418
"properties": {
415-
"criticalCount": {
416-
"type": "integer",
417-
"description": "Number of critical vulnerabilities."
418-
},
419-
"highCount": {
420-
"type": "integer",
421-
"description": "Number of high severity vulnerabilities."
422-
},
423-
"mediumCount": {
424-
"type": "integer",
425-
"description": "Number of medium severity vulnerabilities."
426-
},
427-
"lowCount": {
428-
"type": "integer",
429-
"description": "Number of low severity vulnerabilities."
430-
},
431-
"noneCount": {
432-
"type": "integer",
433-
"description": "Number of vulnerabilities with no severity."
419+
"uniqueVulnerabilities": {
420+
"type": "object",
421+
"properties": {
422+
"critical": { "type": "integer" },
423+
"high": { "type": "integer" },
424+
"medium": { "type": "integer" },
425+
"low": { "type": "integer" },
426+
"unknown": { "type": "integer" }
427+
},
428+
"required": ["critical", "high", "medium", "low", "unknown"]
434429
},
435-
"unknownCount": {
436-
"type": "integer",
437-
"description": "Number of vulnerabilities with unknown severity."
430+
"totalVulnerabilities": {
431+
"type": "object",
432+
"properties": {
433+
"critical": { "type": "integer" },
434+
"high": { "type": "integer" },
435+
"medium": { "type": "integer" },
436+
"low": { "type": "integer" },
437+
"unknown": { "type": "integer" }
438+
},
439+
"required": ["critical", "high", "medium", "low", "unknown"]
438440
}
439441
},
440-
"required": ["criticalCount", "highCount", "mediumCount", "lowCount", "noneCount", "unknownCount"]
442+
"required": ["uniqueVulnerabilities", "totalVulnerabilities"]
441443
}
442444
},
443-
"required": ["dateRetrieved", "platform", "resource", "runtimeVersion", "managementVersion", "vulnerabilitySummary"]
445+
"required": [
446+
"dateRetrieved",
447+
"platform",
448+
"resource",
449+
"clusterId",
450+
"runtimeVersion",
451+
"managementVersion",
452+
"vulnerabilitySummary"
453+
]
444454
},
445455
"containers": {
446456
"type": "object",
@@ -450,13 +460,18 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
450460
"type": "object",
451461
"properties": {
452462
"namespace": {
453-
"type": "string",
454-
"description": "The namespace of the container."
463+
"type": "array",
464+
"description": "The namespaces where the container image is in-use.",
465+
"items": { "type": "string" }
455466
},
456467
"digest": {
457468
"type": "string",
458469
"description": "The digest of the container image."
459470
},
471+
"observedCount": {
472+
"type": "integer",
473+
"description": "The number of times the container image has been observed."
474+
},
460475
"os": {
461476
"type": "object",
462477
"properties": {
@@ -467,97 +482,46 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
467482
},
468483
"required": ["family"]
469484
},
470-
"summary": {
471-
"type": "object",
472-
"properties": {
473-
"criticalCount": {
474-
"type": "integer",
475-
"description": "Number of critical vulnerabilities in this container."
476-
},
477-
"highCount": {
478-
"type": "integer",
479-
"description": "Number of high severity vulnerabilities in this container."
480-
},
481-
"lowCount": {
482-
"type": "integer",
483-
"description": "Number of low severity vulnerabilities in this container."
484-
},
485-
"mediumCount": {
486-
"type": "integer",
487-
"description": "Number of medium severity vulnerabilities in this container."
488-
},
489-
"noneCount": {
490-
"type": "integer",
491-
"description": "Number of vulnerabilities with no severity in this container."
492-
},
493-
"unknownCount": {
494-
"type": "integer",
495-
"description": "Number of vulnerabilities with unknown severity in this container."
496-
}
497-
},
498-
"required": ["criticalCount", "highCount", "lowCount", "mediumCount", "noneCount", "unknownCount"]
499-
},
500485
"vulnerabilities": {
501486
"type": "array",
502487
"items": {
503488
"type": "object",
504489
"properties": {
505-
"title": {
506-
"type": "string",
507-
"description": "Title of the vulnerability."
508-
},
509-
"vulnerabilityID": {
510-
"type": "string",
511-
"description": "Identifier of the vulnerability."
512-
},
513-
"fixedVersion": {
514-
"type": "string",
515-
"description": "The version in which the vulnerability is fixed."
516-
},
517-
"installedVersion": {
518-
"type": "string",
519-
"description": "The currently installed version."
520-
},
521-
"referenceLink": {
522-
"type": "string",
523-
"format": "uri",
524-
"description": "Link to the vulnerability details."
525-
},
526-
"publishedDate": {
527-
"type": "string",
528-
"format": "date-time",
529-
"description": "The date when the vulnerability was published."
530-
},
531-
"score": {
532-
"type": "number",
533-
"description": "The CVSS score of the vulnerability."
534-
},
535-
"severity": {
536-
"type": "string",
537-
"description": "The severity level of the vulnerability."
538-
},
539-
"resource": {
540-
"type": "string",
541-
"description": "The resource affected by the vulnerability."
542-
},
543-
"target": {
544-
"type": "string",
545-
"description": "The target of the vulnerability."
546-
},
547-
"packageType": {
548-
"type": "string",
549-
"description": "The type of the package."
550-
},
551-
"exploitAvailable": {
552-
"type": "boolean",
553-
"description": "Indicates if an exploit is available for the vulnerability."
554-
}
490+
"title": { "type": "string" },
491+
"vulnerabilityID": { "type": "string" },
492+
"fixedVersion": { "type": "string" },
493+
"installedVersion": { "type": "string" },
494+
"referenceLink": { "type": "string", "format": "uri" },
495+
"publishedDate": { "type": "string", "format": "date-time" },
496+
"dataSource": { "type": "string" },
497+
"score": { "type": "number" },
498+
"severity": { "type": "string" },
499+
"severitySource": { "type": "string" },
500+
"resource": { "type": "string" },
501+
"target": { "type": "string" },
502+
"packageType": { "type": "string" },
503+
"exploitAvailable": { "type": "boolean" }
555504
},
556-
"required": ["title", "vulnerabilityID", "fixedVersion", "installedVersion", "referenceLink", "publishedDate", "score", "severity", "resource", "target", "packageType", "exploitAvailable"]
505+
"required": [
506+
"title",
507+
"vulnerabilityID",
508+
"fixedVersion",
509+
"installedVersion",
510+
"referenceLink",
511+
"publishedDate",
512+
"dataSource",
513+
"score",
514+
"severity",
515+
"severitySource",
516+
"resource",
517+
"target",
518+
"packageType",
519+
"exploitAvailable"
520+
]
557521
}
558522
}
559523
},
560-
"required": ["namespace", "digest", "os", "summary", "vulnerabilities"]
524+
"required": ["namespace", "digest", "os", "observedCount", "vulnerabilities"]
561525
}
562526
}
563527
}

0 commit comments

Comments
 (0)