Skip to content

Commit ef038fa

Browse files
author
Mark Dalton Gray
committed
update cluster cve report schema
1 parent f60bde7 commit ef038fa

File tree

1 file changed

+72
-109
lines changed

1 file changed

+72
-109
lines changed

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

Lines changed: 72 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ The current list of supported commands are
192192
- [Collect Helm Releases](#collect-helm-releases)\
193193
Command Name: `collect-helm-releases`\
194194
Arguments: None
195-
196195
- [Collect `systemctl status` Output](#collect-systemctl-status-output)\
197196
Command Name: `platform-services-status`\
198197
Arguments: None
@@ -501,6 +500,10 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
501500
"type": "string",
502501
"description": "The name of the resource."
503502
},
503+
"clusterId": {
504+
"type": "string",
505+
"description": "The resource ID of the cluster."
506+
},
504507
"runtimeVersion": {
505508
"type": "string",
506509
"description": "The version of the runtime."
@@ -512,35 +515,41 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
512515
"vulnerabilitySummary": {
513516
"type": "object",
514517
"properties": {
515-
"criticalCount": {
516-
"type": "integer",
517-
"description": "Number of critical vulnerabilities."
518-
},
519-
"highCount": {
520-
"type": "integer",
521-
"description": "Number of high severity vulnerabilities."
522-
},
523-
"mediumCount": {
524-
"type": "integer",
525-
"description": "Number of medium severity vulnerabilities."
526-
},
527-
"lowCount": {
528-
"type": "integer",
529-
"description": "Number of low severity vulnerabilities."
530-
},
531-
"noneCount": {
532-
"type": "integer",
533-
"description": "Number of vulnerabilities with no severity."
518+
"uniqueVulnerabilities": {
519+
"type": "object",
520+
"properties": {
521+
"critical": { "type": "integer" },
522+
"high": { "type": "integer" },
523+
"medium": { "type": "integer" },
524+
"low": { "type": "integer" },
525+
"unknown": { "type": "integer" }
526+
},
527+
"required": ["critical", "high", "medium", "low", "unknown"]
534528
},
535-
"unknownCount": {
536-
"type": "integer",
537-
"description": "Number of vulnerabilities with unknown severity."
529+
"totalVulnerabilities": {
530+
"type": "object",
531+
"properties": {
532+
"critical": { "type": "integer" },
533+
"high": { "type": "integer" },
534+
"medium": { "type": "integer" },
535+
"low": { "type": "integer" },
536+
"unknown": { "type": "integer" }
537+
},
538+
"required": ["critical", "high", "medium", "low", "unknown"]
538539
}
539540
},
540-
"required": ["criticalCount", "highCount", "mediumCount", "lowCount", "noneCount", "unknownCount"]
541+
"required": ["uniqueVulnerabilities", "totalVulnerabilities"]
541542
}
542543
},
543-
"required": ["dateRetrieved", "platform", "resource", "runtimeVersion", "managementVersion", "vulnerabilitySummary"]
544+
"required": [
545+
"dateRetrieved",
546+
"platform",
547+
"resource",
548+
"clusterId",
549+
"runtimeVersion",
550+
"managementVersion",
551+
"vulnerabilitySummary"
552+
]
544553
},
545554
"containers": {
546555
"type": "object",
@@ -550,13 +559,18 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
550559
"type": "object",
551560
"properties": {
552561
"namespace": {
553-
"type": "string",
554-
"description": "The namespace of the container."
562+
"type": "array",
563+
"description": "The namespaces where the container image is in-use.",
564+
"items": { "type": "string" }
555565
},
556566
"digest": {
557567
"type": "string",
558568
"description": "The digest of the container image."
559569
},
570+
"observedCount": {
571+
"type": "integer",
572+
"description": "The number of times the container image has been observed."
573+
},
560574
"os": {
561575
"type": "object",
562576
"properties": {
@@ -567,97 +581,46 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
567581
},
568582
"required": ["family"]
569583
},
570-
"summary": {
571-
"type": "object",
572-
"properties": {
573-
"criticalCount": {
574-
"type": "integer",
575-
"description": "Number of critical vulnerabilities in this container."
576-
},
577-
"highCount": {
578-
"type": "integer",
579-
"description": "Number of high severity vulnerabilities in this container."
580-
},
581-
"lowCount": {
582-
"type": "integer",
583-
"description": "Number of low severity vulnerabilities in this container."
584-
},
585-
"mediumCount": {
586-
"type": "integer",
587-
"description": "Number of medium severity vulnerabilities in this container."
588-
},
589-
"noneCount": {
590-
"type": "integer",
591-
"description": "Number of vulnerabilities with no severity in this container."
592-
},
593-
"unknownCount": {
594-
"type": "integer",
595-
"description": "Number of vulnerabilities with unknown severity in this container."
596-
}
597-
},
598-
"required": ["criticalCount", "highCount", "lowCount", "mediumCount", "noneCount", "unknownCount"]
599-
},
600584
"vulnerabilities": {
601585
"type": "array",
602586
"items": {
603587
"type": "object",
604588
"properties": {
605-
"title": {
606-
"type": "string",
607-
"description": "Title of the vulnerability."
608-
},
609-
"vulnerabilityID": {
610-
"type": "string",
611-
"description": "Identifier of the vulnerability."
612-
},
613-
"fixedVersion": {
614-
"type": "string",
615-
"description": "The version in which the vulnerability is fixed."
616-
},
617-
"installedVersion": {
618-
"type": "string",
619-
"description": "The currently installed version."
620-
},
621-
"referenceLink": {
622-
"type": "string",
623-
"format": "uri",
624-
"description": "Link to the vulnerability details."
625-
},
626-
"publishedDate": {
627-
"type": "string",
628-
"format": "date-time",
629-
"description": "The date when the vulnerability was published."
630-
},
631-
"score": {
632-
"type": "number",
633-
"description": "The CVSS score of the vulnerability."
634-
},
635-
"severity": {
636-
"type": "string",
637-
"description": "The severity level of the vulnerability."
638-
},
639-
"resource": {
640-
"type": "string",
641-
"description": "The resource affected by the vulnerability."
642-
},
643-
"target": {
644-
"type": "string",
645-
"description": "The target of the vulnerability."
646-
},
647-
"packageType": {
648-
"type": "string",
649-
"description": "The type of the package."
650-
},
651-
"exploitAvailable": {
652-
"type": "boolean",
653-
"description": "Indicates if an exploit is available for the vulnerability."
654-
}
589+
"title": { "type": "string" },
590+
"vulnerabilityID": { "type": "string" },
591+
"fixedVersion": { "type": "string" },
592+
"installedVersion": { "type": "string" },
593+
"referenceLink": { "type": "string", "format": "uri" },
594+
"publishedDate": { "type": "string", "format": "date-time" },
595+
"dataSource": { "type": "string" },
596+
"score": { "type": "number" },
597+
"severity": { "type": "string" },
598+
"severitySource": { "type": "string" },
599+
"resource": { "type": "string" },
600+
"target": { "type": "string" },
601+
"packageType": { "type": "string" },
602+
"exploitAvailable": { "type": "boolean" }
655603
},
656-
"required": ["title", "vulnerabilityID", "fixedVersion", "installedVersion", "referenceLink", "publishedDate", "score", "severity", "resource", "target", "packageType", "exploitAvailable"]
604+
"required": [
605+
"title",
606+
"vulnerabilityID",
607+
"fixedVersion",
608+
"installedVersion",
609+
"referenceLink",
610+
"publishedDate",
611+
"dataSource",
612+
"score",
613+
"severity",
614+
"severitySource",
615+
"resource",
616+
"target",
617+
"packageType",
618+
"exploitAvailable"
619+
]
657620
}
658621
}
659622
},
660-
"required": ["namespace", "digest", "os", "summary", "vulnerabilities"]
623+
"required": ["namespace", "digest", "os", "observedCount", "vulnerabilities"]
661624
}
662625
}
663626
}

0 commit comments

Comments
 (0)