From e440e0199d63689a754bc6ca05f152eeb71d653c Mon Sep 17 00:00:00 2001 From: milan-deepfence Date: Wed, 1 Mar 2023 09:03:33 +0530 Subject: [PATCH] update order fields to array type, fix onboard darkmode, added last seen on vuln details --- .../apps/dashboard/api-spec.json | 426 ++++++++++-------- .../api/generated/.openapi-generator/FILES | 1 + .../src/api/generated/apis/ScanResultsApi.ts | 106 +++-- .../src/api/generated/apis/SearchApi.ts | 344 +++++++------- .../models/IngestersCloudCompliance.ts | 20 +- .../generated/models/IngestersCompliance.ts | 60 +-- .../api/generated/models/IngestersMalware.ts | 56 --- .../models/IngestersMalwareScanStatus.ts | 56 --- .../api/generated/models/IngestersSecret.ts | 52 +-- .../models/IngestersSecretScanStatus.ts | 56 +-- .../models/IngestersVulnerability.ts | 76 +--- .../IngestersVulnerabilityScanStatus.ts | 56 +-- .../generated/models/ModelCloudCompliance.ts | 9 + .../api/generated/models/ModelCompliance.ts | 9 + .../src/api/generated/models/ModelMalware.ts | 9 + .../api/generated/models/ModelSbomResponse.ts | 4 +- .../models/ModelScanResultBasicNode.ts | 82 ++++ .../models/ModelScanResultsActionRequest.ts | 8 +- .../models/ModelScanResultsMaskRequest.ts | 14 +- .../src/api/generated/models/ModelSecret.ts | 18 + .../generated/models/ModelVulnerability.ts | 27 ++ .../generated/models/ReportersOrderFilter.ts | 10 +- .../src/api/generated/models/index.ts | 1 + .../onboard/layouts/OnboardLayout.tsx | 2 +- .../onboard/pages/ComplianceScanSummary.tsx | 4 +- .../onboard/pages/MalwareScanSummary.tsx | 2 +- .../onboard/pages/SecretScanSummary.tsx | 2 +- .../pages/VulnerabilityScanSummary.tsx | 2 +- .../vulnerabilities/pages/Vulnerability.tsx | 4 +- .../pages/VulnerabilityDetailModal.tsx | 10 +- .../pages/VulnerabilityScanResults.tsx | 6 +- .../pages/VulnerabilityScans.tsx | 12 +- 32 files changed, 690 insertions(+), 854 deletions(-) create mode 100644 deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultBasicNode.ts diff --git a/deepfence_frontend/apps/dashboard/api-spec.json b/deepfence_frontend/apps/dashboard/api-spec.json index 2b1e26e0c8..b97a853107 100644 --- a/deepfence_frontend/apps/dashboard/api-spec.json +++ b/deepfence_frontend/apps/dashboard/api-spec.json @@ -2451,6 +2451,125 @@ "security": [{ "bearer_token": [] }] } }, + "/deepfence/scan/nodes-in-result": { + "get": { + "tags": ["Scan Results"], + "summary": "Get all nodes in given scan result ids", + "description": "Get all nodes in given scan result ids", + "operationId": "getAllNodesInScanResults", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/ModelScanResultBasicNode" } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" } + } + } + }, + "401": { "description": "Unauthorized" }, + "403": { "description": "Forbidden" }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" } + } + } + } + }, + "security": [{ "bearer_token": [] }] + } + }, + "/deepfence/scan/nodes/{scan_type}/{result_id}": { + "get": { + "tags": ["Scan Results"], + "summary": "Get all nodes in given scan result", + "description": "Get all nodes in given scan result", + "operationId": "getAllNodesInScanResult", + "parameters": [ + { + "name": "result_id", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "scan_type", + "in": "path", + "required": true, + "schema": { + "enum": [ + "SecretScan", + "VulnerabilityScan", + "MalwareScan", + "ComplianceScan", + "CloudComplianceScan" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/ModelBasicNode" } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" } + } + } + }, + "401": { "description": "Unauthorized" }, + "403": { "description": "Forbidden" }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" } + } + } + } + }, + "security": [{ "bearer_token": [] }] + } + }, "/deepfence/scan/results/action/delete": { "patch": { "tags": ["Scan Results"], @@ -4041,88 +4160,11 @@ "security": [{ "bearer_token": [] }] } }, - "/deepfence/scan/{scan_type}/{scan_id}/{doc_id}/nodes": { - "get": { - "tags": ["Scan Results"], - "summary": "Get all nodes for given result document", - "description": "Get all nodes for given result document", - "operationId": "getAllNodesOfScanResultDocument", - "parameters": [ - { - "name": "doc_id", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "scan_id", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "scan_type", - "in": "path", - "required": true, - "schema": { - "enum": [ - "SecretScan", - "VulnerabilityScan", - "MalwareScan", - "ComplianceScan", - "CloudComplianceScan" - ], - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/ModelBasicNode" } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" } - } - } - }, - "401": { "description": "Unauthorized" }, - "403": { "description": "Forbidden" }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" } - } - } - } - }, - "security": [{ "bearer_token": [] }] - } - }, "/deepfence/search/cloud-compliance/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Search Cloud Compliance Scan results", + "description": "Search across all the data associated with cloud-compliance scan", "operationId": "searchCloudComplianceScans", "requestBody": { "content": { @@ -4177,7 +4219,7 @@ "post": { "tags": ["Search"], "summary": "Search Cloud compliances", - "description": "List all the images present in the given registry", + "description": "Search across all the data associated with cloud-compliances", "operationId": "searchCloudCompliances", "requestBody": { "content": { @@ -4231,8 +4273,8 @@ "/deepfence/search/compliance/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Search Compliance Scan results", + "description": "Search across all the data associated with compliance scan", "operationId": "searchComplianceScans", "requestBody": { "content": { @@ -4287,7 +4329,7 @@ "post": { "tags": ["Search"], "summary": "Search Compliances", - "description": "List all the images present in the given registry", + "description": "Search across all the data associated with compliances", "operationId": "searchCompliances", "requestBody": { "content": { @@ -4342,7 +4384,7 @@ "post": { "tags": ["Search"], "summary": "Search Containers data", - "description": "Retrieve all the data associated with containers", + "description": "Search across all data associated with containers", "operationId": "searchContainers", "requestBody": { "content": { @@ -4396,8 +4438,8 @@ "/deepfence/search/count/cloud-compliance/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Count Cloud Compliance Scan results", + "description": "Count across all the data associated with cloud-compliance scans", "operationId": "countCloudComplianceScans", "requestBody": { "content": { @@ -4448,8 +4490,8 @@ "/deepfence/search/count/cloud-compliances": { "post": { "tags": ["Search"], - "summary": "Search Cloud compliances", - "description": "List all the images present in the given registry", + "summary": "Count Cloud compliances", + "description": "Count across all the data ssociated with cloud compliances", "operationId": "countCloudCompliances", "requestBody": { "content": { @@ -4500,8 +4542,8 @@ "/deepfence/search/count/compliance/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Count Compliance Scan results", + "description": "Count across all the data associated with compliance scans", "operationId": "countComplianceScans", "requestBody": { "content": { @@ -4552,8 +4594,8 @@ "/deepfence/search/count/compliances": { "post": { "tags": ["Search"], - "summary": "Search Compliances", - "description": "List all the images present in the given registry", + "summary": "Count Compliances", + "description": "Count across all the data associated with compliances", "operationId": "countCompliances", "requestBody": { "content": { @@ -4604,8 +4646,8 @@ "/deepfence/search/count/containers": { "post": { "tags": ["Search"], - "summary": "Search Containers data", - "description": "Retrieve all the data associated with containers", + "summary": "Count Containers data", + "description": "Count across all the data associated with containers", "operationId": "countContainers", "requestBody": { "content": { @@ -4656,8 +4698,8 @@ "/deepfence/search/count/hosts": { "post": { "tags": ["Search"], - "summary": "Search hosts", - "description": "Retrieve all the data associated with hosts", + "summary": "Count hosts", + "description": "Count across all the data associated with hosts", "operationId": "countHosts", "requestBody": { "content": { @@ -4708,8 +4750,8 @@ "/deepfence/search/count/images": { "post": { "tags": ["Search"], - "summary": "Search Container images", - "description": "Retrieve all the data associated with processes", + "summary": "Count Container images", + "description": "Count across all the data associated with container images", "operationId": "countContainerImages", "requestBody": { "content": { @@ -4760,8 +4802,8 @@ "/deepfence/search/count/malware/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Count Malware Scan results", + "description": "Count across all the data associated with malware scans", "operationId": "countMalwareScans", "requestBody": { "content": { @@ -4812,8 +4854,8 @@ "/deepfence/search/count/malwares": { "post": { "tags": ["Search"], - "summary": "Search Malwares", - "description": "List all the images present in the given registry", + "summary": "Count Malwares", + "description": "Count across all the data associated with malwares", "operationId": "countMalwares", "requestBody": { "content": { @@ -4864,8 +4906,8 @@ "/deepfence/search/count/secret/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Count Secret Scan results", + "description": "Count across all the data associated with secret scans", "operationId": "countSecretsScans", "requestBody": { "content": { @@ -4916,8 +4958,8 @@ "/deepfence/search/count/secrets": { "post": { "tags": ["Search"], - "summary": "Search Secrets", - "description": "Retrieve all the data associated with pods", + "summary": "Count Secrets", + "description": "Count across all the data associated with secrets", "operationId": "countSecrets", "requestBody": { "content": { @@ -4968,8 +5010,8 @@ "/deepfence/search/count/vulnerabilities": { "post": { "tags": ["Search"], - "summary": "Search Vulnerabilities", - "description": "Retrieve all the data associated with k8s clusters", + "summary": "Count Vulnerabilities", + "description": "Search across all the data associated with vulnerabilities", "operationId": "countVulnerabilities", "requestBody": { "content": { @@ -5020,8 +5062,8 @@ "/deepfence/search/count/vulnerability/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Count Vulnerability Scan results", + "description": "Count across all the data associated with vulnerability scans", "operationId": "countVulnerabilityScans", "requestBody": { "content": { @@ -5073,7 +5115,7 @@ "post": { "tags": ["Search"], "summary": "Search hosts", - "description": "Retrieve all the data associated with hosts", + "description": "Search across all data associated with hosts", "operationId": "searchHosts", "requestBody": { "content": { @@ -5128,7 +5170,7 @@ "post": { "tags": ["Search"], "summary": "Search Container images", - "description": "Retrieve all the data associated with processes", + "description": "Search across all the data associated with container images", "operationId": "searchContainerImages", "requestBody": { "content": { @@ -5182,8 +5224,8 @@ "/deepfence/search/malware/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Search Malware Scan results", + "description": "Search across all the data associated with malwares scan", "operationId": "searchMalwareScans", "requestBody": { "content": { @@ -5238,7 +5280,7 @@ "post": { "tags": ["Search"], "summary": "Search Malwares", - "description": "List all the images present in the given registry", + "description": "Search across all the data associated with malwares", "operationId": "searchMalwares", "requestBody": { "content": { @@ -5292,8 +5334,8 @@ "/deepfence/search/secret/scans": { "post": { "tags": ["Search"], - "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "summary": "Search Secrets Scan results", + "description": "Search across all the data associated with secrets scan", "operationId": "searchSecretsScans", "requestBody": { "content": { @@ -5348,7 +5390,7 @@ "post": { "tags": ["Search"], "summary": "Search Secrets", - "description": "Retrieve all the data associated with pods", + "description": "Search across all the data associated with secrets", "operationId": "searchSecrets", "requestBody": { "content": { @@ -5403,7 +5445,7 @@ "post": { "tags": ["Search"], "summary": "Search Vulnerabilities", - "description": "Retrieve all the data associated with k8s clusters", + "description": "Search across all the data associated with vulnerabilities", "operationId": "searchVulnerabilities", "requestBody": { "content": { @@ -5458,7 +5500,7 @@ "post": { "tags": ["Search"], "summary": "Search Vulnerability Scan results", - "description": "Search scan results", + "description": "Search across all the data associated with vulnerability scan", "operationId": "searchVulnerabilityScans", "requestBody": { "content": { @@ -6477,9 +6519,7 @@ "description": { "type": "string" }, "doc_id": { "type": "string" }, "group": { "type": "string" }, - "masked": { "type": "string" }, - "node_id": { "type": "string" }, - "node_name": { "type": "string" }, + "masked": { "type": "boolean" }, "reason": { "type": "string" }, "region": { "type": "string" }, "resource": { "type": "string" }, @@ -6539,13 +6579,7 @@ "compliance_check_type": { "type": "string" }, "compliance_node_type": { "type": "string" }, "description": { "type": "string" }, - "doc_id": { "type": "string" }, - "kubernetes_cluster_id": { "type": "string" }, - "kubernetes_cluster_name": { "type": "string" }, - "masked": { "type": "string" }, - "node_id": { "type": "string" }, - "node_name": { "type": "string" }, - "node_type": { "type": "string" }, + "masked": { "type": "boolean" }, "remediation_ansible": { "type": "string" }, "remediation_puppet": { "type": "string" }, "remediation_script": { "type": "string" }, @@ -6557,7 +6591,6 @@ "test_number": { "type": "string" }, "test_rationale": { "type": "string" }, "test_severity": { "type": "string" }, - "time_stamp": { "type": "integer" }, "type": { "type": "string" } } }, @@ -6567,13 +6600,8 @@ "@timestamp": { "type": "string", "format": "date-time" }, "class": { "type": "string" }, "complete_filename": { "type": "string" }, - "container_name": { "type": "string" }, "file_severity": { "type": "string" }, - "host_name": { "type": "string" }, - "image_id": { "type": "string" }, "image_layer_id": { "type": "string" }, - "image_name": { "type": "string" }, - "kubernetes_cluster_name": { "type": "string" }, "masked": { "type": "boolean" }, "meta": { "type": "array", "items": { "type": "string" }, "nullable": true }, "meta_rules": { @@ -6581,8 +6609,6 @@ "additionalProperties": { "type": "string" }, "nullable": true }, - "node_id": { "type": "string" }, - "node_type": { "type": "string" }, "registry_id": { "type": "string" }, "rule_name": { "type": "string" }, "scan_id": { "type": "string" }, @@ -6599,13 +6625,6 @@ "type": "object", "properties": { "@timestamp": { "type": "string", "format": "date-time" }, - "container_name": { "type": "string" }, - "host_name": { "type": "string" }, - "kubernetes_cluster_name": { "type": "string" }, - "masked": { "type": "string" }, - "node_id": { "type": "string" }, - "node_name": { "type": "string" }, - "node_type": { "type": "string" }, "scan_id": { "type": "string" }, "scan_status": { "type": "string" } } @@ -6723,13 +6742,7 @@ "type": "object", "properties": { "level": { "type": "string" }, "score": { "type": "number" } } }, - "container_name": { "type": "string" }, - "host_name": { "type": "string" }, - "kubernetes_cluster_name": { "type": "string" }, - "masked": { "type": "string" }, - "node_id": { "type": "string" }, - "node_name": { "type": "string" }, - "node_type": { "type": "string" }, + "masked": { "type": "boolean" }, "scan_id": { "type": "string" } } }, @@ -6737,14 +6750,8 @@ "type": "object", "properties": { "@timestamp": { "type": "string", "format": "date-time" }, - "container_name": { "type": "string" }, - "host_name": { "type": "string" }, - "kubernetes_cluster_name": { "type": "string" }, - "masked": { "type": "string" }, - "node_id": { "type": "string" }, - "node_name": { "type": "string" }, - "node_type": { "type": "string" }, "scan_id": { "type": "string" }, + "scan_message": { "type": "string" }, "scan_status": { "type": "string" } } }, @@ -6756,26 +6763,17 @@ "cve_attack_vector": { "type": "string" }, "cve_caused_by_package": { "type": "string" }, "cve_caused_by_package_path": { "type": "string" }, - "cve_container_image": { "type": "string" }, - "cve_container_image_id": { "type": "string" }, "cve_container_layer": { "type": "string" }, - "cve_container_name": { "type": "string" }, "cve_cvss_score": { "type": "number" }, "cve_description": { "type": "string" }, "cve_fixed_in": { "type": "string" }, "cve_id": { "type": "string" }, - "cve_id_cve_severity_cve_container_image": { "type": "string" }, "cve_link": { "type": "string" }, "cve_overall_score": { "type": "number" }, "cve_severity": { "type": "string" }, "cve_type": { "type": "string" }, - "doc_id": { "type": "string" }, "exploit_poc": { "type": "string" }, - "host": { "type": "string" }, - "host_name": { "type": "string" }, - "kubernetes_cluster_name": { "type": "string" }, - "masked": { "type": "string" }, - "node_type": { "type": "string" }, + "masked": { "type": "boolean" }, "scan_id": { "type": "string" }, "type": { "type": "string" }, "urls": { "type": "array", "items": { "type": "string" }, "nullable": true } @@ -6785,14 +6783,8 @@ "type": "object", "properties": { "@timestamp": { "type": "string", "format": "date-time" }, - "container_name": { "type": "string" }, - "host_name": { "type": "string" }, - "kubernetes_cluster_name": { "type": "string" }, - "masked": { "type": "string" }, - "node_id": { "type": "string" }, - "node_name": { "type": "string" }, - "node_type": { "type": "string" }, "scan_id": { "type": "string" }, + "scan_message": { "type": "string" }, "scan_status": { "type": "string" } } }, @@ -6859,6 +6851,7 @@ "node_id", "scan_id", "masked", + "updated_at", "type", "control_id", "description", @@ -6885,7 +6878,8 @@ "severity": { "type": "string" }, "status": { "type": "string" }, "title": { "type": "string" }, - "type": { "type": "string" } + "type": { "type": "string" }, + "updated_at": { "type": "integer" } } }, "ModelCloudComplianceScanDetails": { @@ -7044,7 +7038,8 @@ "status", "compliance_check_type", "compliance_node_type", - "masked" + "masked", + "updated_at" ], "type": "object", "properties": { @@ -7061,7 +7056,8 @@ "test_desc": { "type": "string" }, "test_number": { "type": "string" }, "test_rationale": { "type": "string" }, - "test_severity": { "type": "string" } + "test_severity": { "type": "string" }, + "updated_at": { "type": "integer" } } }, "ModelComplianceScanInfo": { @@ -7370,7 +7366,8 @@ "severity_score", "summary", "rule_name", - "masked" + "masked", + "updated_at" ], "type": "object", "properties": { @@ -7382,7 +7379,8 @@ "masked": { "type": "boolean" }, "rule_name": { "type": "string" }, "severity_score": { "type": "number" }, - "summary": { "type": "string" } + "summary": { "type": "string" }, + "updated_at": { "type": "integer" } } }, "ModelMalwareScanResult": { @@ -7609,16 +7607,8 @@ "type": "object", "properties": { "cve_id": { "type": "string" }, - "licenses": { - "type": "array", - "items": { "type": "string" }, - "nullable": true - }, - "locations": { - "type": "array", - "items": { "type": "string" }, - "nullable": true - }, + "licenses": { "type": "array", "items": { "type": "string" } }, + "locations": { "type": "array", "items": { "type": "string" } }, "package_name": { "type": "string" }, "severity": { "type": "string" }, "version": { "type": "string" } @@ -7700,11 +7690,27 @@ } } }, + "ModelScanResultBasicNode": { + "required": ["result_id", "basic_nodes"], + "type": "object", + "properties": { + "basic_nodes": { + "type": "array", + "items": { "$ref": "#/components/schemas/ModelBasicNode" }, + "nullable": true + }, + "result_id": { "type": "string" } + } + }, "ModelScanResultsActionRequest": { - "required": ["scan_id", "doc_ids", "scan_type"], + "required": ["scan_id", "result_ids", "scan_type"], "type": "object", "properties": { - "doc_ids": { "type": "array", "items": { "type": "string" }, "nullable": true }, + "result_ids": { + "type": "array", + "items": { "type": "string" }, + "nullable": true + }, "scan_id": { "type": "string" }, "scan_type": { "enum": [ @@ -7719,11 +7725,15 @@ } }, "ModelScanResultsMaskRequest": { - "required": ["scan_id", "doc_ids", "scan_type"], + "required": ["scan_id", "result_ids", "scan_type"], "type": "object", "properties": { - "doc_ids": { "type": "array", "items": { "type": "string" }, "nullable": true }, "mask_across_hosts_and_images": { "type": "boolean" }, + "result_ids": { + "type": "array", + "items": { "type": "string" }, + "nullable": true + }, "scan_id": { "type": "string" }, "scan_type": { "enum": [ @@ -7780,7 +7790,9 @@ "relative_ending_index", "full_filename", "matched_content", - "masked" + "masked", + "updated_at", + "rule_id" ], "type": "object", "properties": { @@ -7789,7 +7801,9 @@ "matched_content": { "type": "string" }, "relative_ending_index": { "type": "integer" }, "relative_starting_index": { "type": "integer" }, - "starting_index": { "type": "integer" } + "rule_id": { "type": "string" }, + "starting_index": { "type": "integer" }, + "updated_at": { "type": "integer" } } }, "ModelSecretScanResult": { @@ -7949,7 +7963,10 @@ "cve_attack_vector", "urls", "exploit_poc", - "masked" + "masked", + "updated_at", + "parsed_attack_vector", + "has_live_connection" ], "type": "object", "properties": { @@ -7966,7 +7983,10 @@ "cve_severity": { "type": "string" }, "cve_type": { "type": "string" }, "exploit_poc": { "type": "string" }, + "has_live_connection": { "type": "boolean" }, "masked": { "type": "boolean" }, + "parsed_attack_vector": { "type": "string" }, + "updated_at": { "type": "integer" }, "urls": { "type": "array", "items": { "type": "string" }, "nullable": true } } }, @@ -8136,9 +8156,15 @@ } }, "ReportersOrderFilter": { - "required": ["order_field"], + "required": ["order_fields"], "type": "object", - "properties": { "order_field": { "type": "string" } } + "properties": { + "order_fields": { + "type": "array", + "items": { "type": "string" }, + "nullable": true + } + } }, "SearchSearchCountResp": { "required": ["count", "categories"], diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES b/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES index 864f5e7e80..0ba98b9430 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES +++ b/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES @@ -98,6 +98,7 @@ models/ModelScanFilter.ts models/ModelScanInfo.ts models/ModelScanListReq.ts models/ModelScanListResp.ts +models/ModelScanResultBasicNode.ts models/ModelScanResultsActionRequest.ts models/ModelScanResultsMaskRequest.ts models/ModelScanResultsReq.ts diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/apis/ScanResultsApi.ts b/deepfence_frontend/apps/dashboard/src/api/generated/apis/ScanResultsApi.ts index 952e6b9504..9f15a1cf83 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/apis/ScanResultsApi.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/apis/ScanResultsApi.ts @@ -19,6 +19,7 @@ import type { ApiDocsFailureResponse, ModelBasicNode, ModelDownloadReportResponse, + ModelScanResultBasicNode, ModelScanResultsActionRequest, ModelScanResultsMaskRequest, } from '../models'; @@ -31,6 +32,8 @@ import { ModelBasicNodeToJSON, ModelDownloadReportResponseFromJSON, ModelDownloadReportResponseToJSON, + ModelScanResultBasicNodeFromJSON, + ModelScanResultBasicNodeToJSON, ModelScanResultsActionRequestFromJSON, ModelScanResultsActionRequestToJSON, ModelScanResultsMaskRequestFromJSON, @@ -51,10 +54,9 @@ export interface DownloadScanResultsRequest { scanType: DownloadScanResultsScanTypeEnum; } -export interface GetAllNodesOfScanResultDocumentRequest { - docId: string; - scanId: string; - scanType: GetAllNodesOfScanResultDocumentScanTypeEnum; +export interface GetAllNodesInScanResultRequest { + resultId: string; + scanType: GetAllNodesInScanResultScanTypeEnum; } export interface MaskScanResultRequest { @@ -127,22 +129,36 @@ export interface ScanResultsApiInterface { downloadScanResults(requestParameters: DownloadScanResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Get all nodes for given result document - * @summary Get all nodes for given result document - * @param {string} docId - * @param {string} scanId + * Get all nodes in given scan result + * @summary Get all nodes in given scan result + * @param {string} resultId * @param {'SecretScan' | 'VulnerabilityScan' | 'MalwareScan' | 'ComplianceScan' | 'CloudComplianceScan'} scanType * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ScanResultsApiInterface */ - getAllNodesOfScanResultDocumentRaw(requestParameters: GetAllNodesOfScanResultDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getAllNodesInScanResultRaw(requestParameters: GetAllNodesInScanResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Get all nodes in given scan result + * Get all nodes in given scan result + */ + getAllNodesInScanResult(requestParameters: GetAllNodesInScanResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all nodes in given scan result ids + * @summary Get all nodes in given scan result ids + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ScanResultsApiInterface + */ + getAllNodesInScanResultsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Get all nodes for given result document - * Get all nodes for given result document + * Get all nodes in given scan result ids + * Get all nodes in given scan result ids */ - getAllNodesOfScanResultDocument(requestParameters: GetAllNodesOfScanResultDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAllNodesInScanResults(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Mask scan results @@ -325,20 +341,16 @@ export class ScanResultsApi extends runtime.BaseAPI implements ScanResultsApiInt } /** - * Get all nodes for given result document - * Get all nodes for given result document + * Get all nodes in given scan result + * Get all nodes in given scan result */ - async getAllNodesOfScanResultDocumentRaw(requestParameters: GetAllNodesOfScanResultDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters.docId === null || requestParameters.docId === undefined) { - throw new runtime.RequiredError('docId','Required parameter requestParameters.docId was null or undefined when calling getAllNodesOfScanResultDocument.'); - } - - if (requestParameters.scanId === null || requestParameters.scanId === undefined) { - throw new runtime.RequiredError('scanId','Required parameter requestParameters.scanId was null or undefined when calling getAllNodesOfScanResultDocument.'); + async getAllNodesInScanResultRaw(requestParameters: GetAllNodesInScanResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters.resultId === null || requestParameters.resultId === undefined) { + throw new runtime.RequiredError('resultId','Required parameter requestParameters.resultId was null or undefined when calling getAllNodesInScanResult.'); } if (requestParameters.scanType === null || requestParameters.scanType === undefined) { - throw new runtime.RequiredError('scanType','Required parameter requestParameters.scanType was null or undefined when calling getAllNodesOfScanResultDocument.'); + throw new runtime.RequiredError('scanType','Required parameter requestParameters.scanType was null or undefined when calling getAllNodesInScanResult.'); } const queryParameters: any = {}; @@ -354,7 +366,7 @@ export class ScanResultsApi extends runtime.BaseAPI implements ScanResultsApiInt } } const response = await this.request({ - path: `/deepfence/scan/{scan_type}/{scan_id}/{doc_id}/nodes`.replace(`{${"doc_id"}}`, encodeURIComponent(String(requestParameters.docId))).replace(`{${"scan_id"}}`, encodeURIComponent(String(requestParameters.scanId))).replace(`{${"scan_type"}}`, encodeURIComponent(String(requestParameters.scanType))), + path: `/deepfence/scan/nodes/{scan_type}/{result_id}`.replace(`{${"result_id"}}`, encodeURIComponent(String(requestParameters.resultId))).replace(`{${"scan_type"}}`, encodeURIComponent(String(requestParameters.scanType))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -364,11 +376,47 @@ export class ScanResultsApi extends runtime.BaseAPI implements ScanResultsApiInt } /** - * Get all nodes for given result document - * Get all nodes for given result document + * Get all nodes in given scan result + * Get all nodes in given scan result + */ + async getAllNodesInScanResult(requestParameters: GetAllNodesInScanResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getAllNodesInScanResultRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all nodes in given scan result ids + * Get all nodes in given scan result ids + */ + async getAllNodesInScanResultsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearer_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/deepfence/scan/nodes-in-result`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModelScanResultBasicNodeFromJSON)); + } + + /** + * Get all nodes in given scan result ids + * Get all nodes in given scan result ids */ - async getAllNodesOfScanResultDocument(requestParameters: GetAllNodesOfScanResultDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getAllNodesOfScanResultDocumentRaw(requestParameters, initOverrides); + async getAllNodesInScanResults(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getAllNodesInScanResultsRaw(initOverrides); return await response.value(); } @@ -513,11 +561,11 @@ export type DownloadScanResultsScanTypeEnum = typeof DownloadScanResultsScanType /** * @export */ -export const GetAllNodesOfScanResultDocumentScanTypeEnum = { +export const GetAllNodesInScanResultScanTypeEnum = { SecretScan: 'SecretScan', VulnerabilityScan: 'VulnerabilityScan', MalwareScan: 'MalwareScan', ComplianceScan: 'ComplianceScan', CloudComplianceScan: 'CloudComplianceScan' } as const; -export type GetAllNodesOfScanResultDocumentScanTypeEnum = typeof GetAllNodesOfScanResultDocumentScanTypeEnum[keyof typeof GetAllNodesOfScanResultDocumentScanTypeEnum]; +export type GetAllNodesInScanResultScanTypeEnum = typeof GetAllNodesInScanResultScanTypeEnum[keyof typeof GetAllNodesInScanResultScanTypeEnum]; diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/apis/SearchApi.ts b/deepfence_frontend/apps/dashboard/src/api/generated/apis/SearchApi.ts index 4c0d07c3ad..ca9f0b7dcf 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/apis/SearchApi.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/apis/SearchApi.ts @@ -173,8 +173,8 @@ export interface SearchVulnerabilityScansRequest { */ export interface SearchApiInterface { /** - * Search scan results - * @summary Search Vulnerability Scan results + * Count across all the data associated with cloud-compliance scans + * @summary Count Cloud Compliance Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -183,14 +183,14 @@ export interface SearchApiInterface { countCloudComplianceScansRaw(requestParameters: CountCloudComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with cloud-compliance scans + * Count Cloud Compliance Scan results */ countCloudComplianceScans(requestParameters: CountCloudComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * List all the images present in the given registry - * @summary Search Cloud compliances + * Count across all the data ssociated with cloud compliances + * @summary Count Cloud compliances * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -199,14 +199,14 @@ export interface SearchApiInterface { countCloudCompliancesRaw(requestParameters: CountCloudCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * List all the images present in the given registry - * Search Cloud compliances + * Count across all the data ssociated with cloud compliances + * Count Cloud compliances */ countCloudCompliances(requestParameters: CountCloudCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Count across all the data associated with compliance scans + * @summary Count Compliance Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -215,14 +215,14 @@ export interface SearchApiInterface { countComplianceScansRaw(requestParameters: CountComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with compliance scans + * Count Compliance Scan results */ countComplianceScans(requestParameters: CountComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * List all the images present in the given registry - * @summary Search Compliances + * Count across all the data associated with compliances + * @summary Count Compliances * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -231,14 +231,14 @@ export interface SearchApiInterface { countCompliancesRaw(requestParameters: CountCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * List all the images present in the given registry - * Search Compliances + * Count across all the data associated with compliances + * Count Compliances */ countCompliances(requestParameters: CountCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Retrieve all the data associated with processes - * @summary Search Container images + * Count across all the data associated with container images + * @summary Count Container images * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -247,14 +247,14 @@ export interface SearchApiInterface { countContainerImagesRaw(requestParameters: CountContainerImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with processes - * Search Container images + * Count across all the data associated with container images + * Count Container images */ countContainerImages(requestParameters: CountContainerImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Retrieve all the data associated with containers - * @summary Search Containers data + * Count across all the data associated with containers + * @summary Count Containers data * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -263,14 +263,14 @@ export interface SearchApiInterface { countContainersRaw(requestParameters: CountContainersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with containers - * Search Containers data + * Count across all the data associated with containers + * Count Containers data */ countContainers(requestParameters: CountContainersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Retrieve all the data associated with hosts - * @summary Search hosts + * Count across all the data associated with hosts + * @summary Count hosts * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -279,14 +279,14 @@ export interface SearchApiInterface { countHostsRaw(requestParameters: CountHostsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with hosts - * Search hosts + * Count across all the data associated with hosts + * Count hosts */ countHosts(requestParameters: CountHostsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Count across all the data associated with malware scans + * @summary Count Malware Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -295,14 +295,14 @@ export interface SearchApiInterface { countMalwareScansRaw(requestParameters: CountMalwareScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with malware scans + * Count Malware Scan results */ countMalwareScans(requestParameters: CountMalwareScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * List all the images present in the given registry - * @summary Search Malwares + * Count across all the data associated with malwares + * @summary Count Malwares * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -311,14 +311,14 @@ export interface SearchApiInterface { countMalwaresRaw(requestParameters: CountMalwaresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * List all the images present in the given registry - * Search Malwares + * Count across all the data associated with malwares + * Count Malwares */ countMalwares(requestParameters: CountMalwaresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Retrieve all the data associated with pods - * @summary Search Secrets + * Count across all the data associated with secrets + * @summary Count Secrets * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -327,14 +327,14 @@ export interface SearchApiInterface { countSecretsRaw(requestParameters: CountSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with pods - * Search Secrets + * Count across all the data associated with secrets + * Count Secrets */ countSecrets(requestParameters: CountSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Count across all the data associated with secret scans + * @summary Count Secret Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -343,14 +343,14 @@ export interface SearchApiInterface { countSecretsScansRaw(requestParameters: CountSecretsScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with secret scans + * Count Secret Scan results */ countSecretsScans(requestParameters: CountSecretsScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Retrieve all the data associated with k8s clusters - * @summary Search Vulnerabilities + * Search across all the data associated with vulnerabilities + * @summary Count Vulnerabilities * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -359,14 +359,14 @@ export interface SearchApiInterface { countVulnerabilitiesRaw(requestParameters: CountVulnerabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with k8s clusters - * Search Vulnerabilities + * Search across all the data associated with vulnerabilities + * Count Vulnerabilities */ countVulnerabilities(requestParameters: CountVulnerabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Count across all the data associated with vulnerability scans + * @summary Count Vulnerability Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -375,14 +375,14 @@ export interface SearchApiInterface { countVulnerabilityScansRaw(requestParameters: CountVulnerabilityScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with vulnerability scans + * Count Vulnerability Scan results */ countVulnerabilityScans(requestParameters: CountVulnerabilityScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Search across all the data associated with cloud-compliance scan + * @summary Search Cloud Compliance Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -391,13 +391,13 @@ export interface SearchApiInterface { searchCloudComplianceScansRaw(requestParameters: SearchCloudComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with cloud-compliance scan + * Search Cloud Compliance Scan results */ searchCloudComplianceScans(requestParameters: SearchCloudComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * List all the images present in the given registry + * Search across all the data associated with cloud-compliances * @summary Search Cloud compliances * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -407,14 +407,14 @@ export interface SearchApiInterface { searchCloudCompliancesRaw(requestParameters: SearchCloudCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * List all the images present in the given registry + * Search across all the data associated with cloud-compliances * Search Cloud compliances */ searchCloudCompliances(requestParameters: SearchCloudCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Search across all the data associated with compliance scan + * @summary Search Compliance Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -423,13 +423,13 @@ export interface SearchApiInterface { searchComplianceScansRaw(requestParameters: SearchComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with compliance scan + * Search Compliance Scan results */ searchComplianceScans(requestParameters: SearchComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * List all the images present in the given registry + * Search across all the data associated with compliances * @summary Search Compliances * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -439,13 +439,13 @@ export interface SearchApiInterface { searchCompliancesRaw(requestParameters: SearchCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * List all the images present in the given registry + * Search across all the data associated with compliances * Search Compliances */ searchCompliances(requestParameters: SearchCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with processes + * Search across all the data associated with container images * @summary Search Container images * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -455,13 +455,13 @@ export interface SearchApiInterface { searchContainerImagesRaw(requestParameters: SearchContainerImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Retrieve all the data associated with processes + * Search across all the data associated with container images * Search Container images */ searchContainerImages(requestParameters: SearchContainerImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with containers + * Search across all data associated with containers * @summary Search Containers data * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -471,13 +471,13 @@ export interface SearchApiInterface { searchContainersRaw(requestParameters: SearchContainersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Retrieve all the data associated with containers + * Search across all data associated with containers * Search Containers data */ searchContainers(requestParameters: SearchContainersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with hosts + * Search across all data associated with hosts * @summary Search hosts * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -487,14 +487,14 @@ export interface SearchApiInterface { searchHostsRaw(requestParameters: SearchHostsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Retrieve all the data associated with hosts + * Search across all data associated with hosts * Search hosts */ searchHosts(requestParameters: SearchHostsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Search across all the data associated with malwares scan + * @summary Search Malware Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -503,13 +503,13 @@ export interface SearchApiInterface { searchMalwareScansRaw(requestParameters: SearchMalwareScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with malwares scan + * Search Malware Scan results */ searchMalwareScans(requestParameters: SearchMalwareScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * List all the images present in the given registry + * Search across all the data associated with malwares * @summary Search Malwares * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -519,13 +519,13 @@ export interface SearchApiInterface { searchMalwaresRaw(requestParameters: SearchMalwaresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * List all the images present in the given registry + * Search across all the data associated with malwares * Search Malwares */ searchMalwares(requestParameters: SearchMalwaresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with pods + * Search across all the data associated with secrets * @summary Search Secrets * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -535,14 +535,14 @@ export interface SearchApiInterface { searchSecretsRaw(requestParameters: SearchSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Retrieve all the data associated with pods + * Search across all the data associated with secrets * Search Secrets */ searchSecrets(requestParameters: SearchSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results - * @summary Search Vulnerability Scan results + * Search across all the data associated with secrets scan + * @summary Search Secrets Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -551,13 +551,13 @@ export interface SearchApiInterface { searchSecretsScansRaw(requestParameters: SearchSecretsScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with secrets scan + * Search Secrets Scan results */ searchSecretsScans(requestParameters: SearchSecretsScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve all the data associated with k8s clusters + * Search across all the data associated with vulnerabilities * @summary Search Vulnerabilities * @param {SearchSearchNodeReq} [searchSearchNodeReq] * @param {*} [options] Override http request option. @@ -567,13 +567,13 @@ export interface SearchApiInterface { searchVulnerabilitiesRaw(requestParameters: SearchVulnerabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Retrieve all the data associated with k8s clusters + * Search across all the data associated with vulnerabilities * Search Vulnerabilities */ searchVulnerabilities(requestParameters: SearchVulnerabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Search scan results + * Search across all the data associated with vulnerability scan * @summary Search Vulnerability Scan results * @param {SearchSearchScanReq} [searchSearchScanReq] * @param {*} [options] Override http request option. @@ -583,7 +583,7 @@ export interface SearchApiInterface { searchVulnerabilityScansRaw(requestParameters: SearchVulnerabilityScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** - * Search scan results + * Search across all the data associated with vulnerability scan * Search Vulnerability Scan results */ searchVulnerabilityScans(requestParameters: SearchVulnerabilityScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; @@ -596,8 +596,8 @@ export interface SearchApiInterface { export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with cloud-compliance scans + * Count Cloud Compliance Scan results */ async countCloudComplianceScansRaw(requestParameters: CountCloudComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -626,8 +626,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with cloud-compliance scans + * Count Cloud Compliance Scan results */ async countCloudComplianceScans(requestParameters: CountCloudComplianceScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countCloudComplianceScansRaw(requestParameters, initOverrides); @@ -635,8 +635,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry - * Search Cloud compliances + * Count across all the data ssociated with cloud compliances + * Count Cloud compliances */ async countCloudCompliancesRaw(requestParameters: CountCloudCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -665,8 +665,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry - * Search Cloud compliances + * Count across all the data ssociated with cloud compliances + * Count Cloud compliances */ async countCloudCompliances(requestParameters: CountCloudCompliancesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countCloudCompliancesRaw(requestParameters, initOverrides); @@ -674,8 +674,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with compliance scans + * Count Compliance Scan results */ async countComplianceScansRaw(requestParameters: CountComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -704,8 +704,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with compliance scans + * Count Compliance Scan results */ async countComplianceScans(requestParameters: CountComplianceScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countComplianceScansRaw(requestParameters, initOverrides); @@ -713,8 +713,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry - * Search Compliances + * Count across all the data associated with compliances + * Count Compliances */ async countCompliancesRaw(requestParameters: CountCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -743,8 +743,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry - * Search Compliances + * Count across all the data associated with compliances + * Count Compliances */ async countCompliances(requestParameters: CountCompliancesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countCompliancesRaw(requestParameters, initOverrides); @@ -752,8 +752,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with processes - * Search Container images + * Count across all the data associated with container images + * Count Container images */ async countContainerImagesRaw(requestParameters: CountContainerImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -782,8 +782,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with processes - * Search Container images + * Count across all the data associated with container images + * Count Container images */ async countContainerImages(requestParameters: CountContainerImagesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countContainerImagesRaw(requestParameters, initOverrides); @@ -791,8 +791,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with containers - * Search Containers data + * Count across all the data associated with containers + * Count Containers data */ async countContainersRaw(requestParameters: CountContainersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -821,8 +821,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with containers - * Search Containers data + * Count across all the data associated with containers + * Count Containers data */ async countContainers(requestParameters: CountContainersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countContainersRaw(requestParameters, initOverrides); @@ -830,8 +830,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with hosts - * Search hosts + * Count across all the data associated with hosts + * Count hosts */ async countHostsRaw(requestParameters: CountHostsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -860,8 +860,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with hosts - * Search hosts + * Count across all the data associated with hosts + * Count hosts */ async countHosts(requestParameters: CountHostsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countHostsRaw(requestParameters, initOverrides); @@ -869,8 +869,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with malware scans + * Count Malware Scan results */ async countMalwareScansRaw(requestParameters: CountMalwareScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -899,8 +899,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with malware scans + * Count Malware Scan results */ async countMalwareScans(requestParameters: CountMalwareScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countMalwareScansRaw(requestParameters, initOverrides); @@ -908,8 +908,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry - * Search Malwares + * Count across all the data associated with malwares + * Count Malwares */ async countMalwaresRaw(requestParameters: CountMalwaresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -938,8 +938,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry - * Search Malwares + * Count across all the data associated with malwares + * Count Malwares */ async countMalwares(requestParameters: CountMalwaresRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countMalwaresRaw(requestParameters, initOverrides); @@ -947,8 +947,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with pods - * Search Secrets + * Count across all the data associated with secrets + * Count Secrets */ async countSecretsRaw(requestParameters: CountSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -977,8 +977,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with pods - * Search Secrets + * Count across all the data associated with secrets + * Count Secrets */ async countSecrets(requestParameters: CountSecretsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countSecretsRaw(requestParameters, initOverrides); @@ -986,8 +986,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with secret scans + * Count Secret Scan results */ async countSecretsScansRaw(requestParameters: CountSecretsScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -1016,8 +1016,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with secret scans + * Count Secret Scan results */ async countSecretsScans(requestParameters: CountSecretsScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countSecretsScansRaw(requestParameters, initOverrides); @@ -1025,8 +1025,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with k8s clusters - * Search Vulnerabilities + * Search across all the data associated with vulnerabilities + * Count Vulnerabilities */ async countVulnerabilitiesRaw(requestParameters: CountVulnerabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -1055,8 +1055,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with k8s clusters - * Search Vulnerabilities + * Search across all the data associated with vulnerabilities + * Count Vulnerabilities */ async countVulnerabilities(requestParameters: CountVulnerabilitiesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countVulnerabilitiesRaw(requestParameters, initOverrides); @@ -1064,8 +1064,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with vulnerability scans + * Count Vulnerability Scan results */ async countVulnerabilityScansRaw(requestParameters: CountVulnerabilityScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -1094,8 +1094,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Count across all the data associated with vulnerability scans + * Count Vulnerability Scan results */ async countVulnerabilityScans(requestParameters: CountVulnerabilityScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.countVulnerabilityScansRaw(requestParameters, initOverrides); @@ -1103,8 +1103,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with cloud-compliance scan + * Search Cloud Compliance Scan results */ async searchCloudComplianceScansRaw(requestParameters: SearchCloudComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { const queryParameters: any = {}; @@ -1133,8 +1133,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with cloud-compliance scan + * Search Cloud Compliance Scan results */ async searchCloudComplianceScans(requestParameters: SearchCloudComplianceScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.searchCloudComplianceScansRaw(requestParameters, initOverrides); @@ -1142,7 +1142,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry + * Search across all the data associated with cloud-compliances * Search Cloud compliances */ async searchCloudCompliancesRaw(requestParameters: SearchCloudCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1172,7 +1172,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry + * Search across all the data associated with cloud-compliances * Search Cloud compliances */ async searchCloudCompliances(requestParameters: SearchCloudCompliancesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1181,8 +1181,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with compliance scan + * Search Compliance Scan results */ async searchComplianceScansRaw(requestParameters: SearchComplianceScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { const queryParameters: any = {}; @@ -1211,8 +1211,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with compliance scan + * Search Compliance Scan results */ async searchComplianceScans(requestParameters: SearchComplianceScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.searchComplianceScansRaw(requestParameters, initOverrides); @@ -1220,7 +1220,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry + * Search across all the data associated with compliances * Search Compliances */ async searchCompliancesRaw(requestParameters: SearchCompliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1250,7 +1250,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry + * Search across all the data associated with compliances * Search Compliances */ async searchCompliances(requestParameters: SearchCompliancesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1259,7 +1259,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with processes + * Search across all the data associated with container images * Search Container images */ async searchContainerImagesRaw(requestParameters: SearchContainerImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1289,7 +1289,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with processes + * Search across all the data associated with container images * Search Container images */ async searchContainerImages(requestParameters: SearchContainerImagesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1298,7 +1298,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with containers + * Search across all data associated with containers * Search Containers data */ async searchContainersRaw(requestParameters: SearchContainersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1328,7 +1328,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with containers + * Search across all data associated with containers * Search Containers data */ async searchContainers(requestParameters: SearchContainersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1337,7 +1337,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with hosts + * Search across all data associated with hosts * Search hosts */ async searchHostsRaw(requestParameters: SearchHostsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1367,7 +1367,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with hosts + * Search across all data associated with hosts * Search hosts */ async searchHosts(requestParameters: SearchHostsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1376,8 +1376,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with malwares scan + * Search Malware Scan results */ async searchMalwareScansRaw(requestParameters: SearchMalwareScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { const queryParameters: any = {}; @@ -1406,8 +1406,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with malwares scan + * Search Malware Scan results */ async searchMalwareScans(requestParameters: SearchMalwareScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.searchMalwareScansRaw(requestParameters, initOverrides); @@ -1415,7 +1415,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry + * Search across all the data associated with malwares * Search Malwares */ async searchMalwaresRaw(requestParameters: SearchMalwaresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1445,7 +1445,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * List all the images present in the given registry + * Search across all the data associated with malwares * Search Malwares */ async searchMalwares(requestParameters: SearchMalwaresRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1454,7 +1454,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with pods + * Search across all the data associated with secrets * Search Secrets */ async searchSecretsRaw(requestParameters: SearchSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1484,7 +1484,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with pods + * Search across all the data associated with secrets * Search Secrets */ async searchSecrets(requestParameters: SearchSecretsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1493,8 +1493,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with secrets scan + * Search Secrets Scan results */ async searchSecretsScansRaw(requestParameters: SearchSecretsScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { const queryParameters: any = {}; @@ -1523,8 +1523,8 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results - * Search Vulnerability Scan results + * Search across all the data associated with secrets scan + * Search Secrets Scan results */ async searchSecretsScans(requestParameters: SearchSecretsScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.searchSecretsScansRaw(requestParameters, initOverrides); @@ -1532,7 +1532,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with k8s clusters + * Search across all the data associated with vulnerabilities * Search Vulnerabilities */ async searchVulnerabilitiesRaw(requestParameters: SearchVulnerabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1562,7 +1562,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Retrieve all the data associated with k8s clusters + * Search across all the data associated with vulnerabilities * Search Vulnerabilities */ async searchVulnerabilities(requestParameters: SearchVulnerabilitiesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1571,7 +1571,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results + * Search across all the data associated with vulnerability scan * Search Vulnerability Scan results */ async searchVulnerabilityScansRaw(requestParameters: SearchVulnerabilityScansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1601,7 +1601,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { } /** - * Search scan results + * Search across all the data associated with vulnerability scan * Search Vulnerability Scan results */ async searchVulnerabilityScans(requestParameters: SearchVulnerabilityScansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCloudCompliance.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCloudCompliance.ts index b539e36bec..543ceb08e1 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCloudCompliance.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCloudCompliance.ts @@ -75,22 +75,10 @@ export interface IngestersCloudCompliance { group?: string; /** * - * @type {string} - * @memberof IngestersCloudCompliance - */ - masked?: string; - /** - * - * @type {string} - * @memberof IngestersCloudCompliance - */ - node_id?: string; - /** - * - * @type {string} + * @type {boolean} * @memberof IngestersCloudCompliance */ - node_name?: string; + masked?: boolean; /** * * @type {string} @@ -176,8 +164,6 @@ export function IngestersCloudComplianceFromJSONTyped(json: any, ignoreDiscrimin 'doc_id': !exists(json, 'doc_id') ? undefined : json['doc_id'], 'group': !exists(json, 'group') ? undefined : json['group'], 'masked': !exists(json, 'masked') ? undefined : json['masked'], - 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], - 'node_name': !exists(json, 'node_name') ? undefined : json['node_name'], 'reason': !exists(json, 'reason') ? undefined : json['reason'], 'region': !exists(json, 'region') ? undefined : json['region'], 'resource': !exists(json, 'resource') ? undefined : json['resource'], @@ -209,8 +195,6 @@ export function IngestersCloudComplianceToJSON(value?: IngestersCloudCompliance 'doc_id': value.doc_id, 'group': value.group, 'masked': value.masked, - 'node_id': value.node_id, - 'node_name': value.node_name, 'reason': value.reason, 'region': value.region, 'resource': value.resource, diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCompliance.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCompliance.ts index 75dfd4989e..01c61bca10 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCompliance.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersCompliance.ts @@ -45,46 +45,10 @@ export interface IngestersCompliance { description?: string; /** * - * @type {string} - * @memberof IngestersCompliance - */ - doc_id?: string; - /** - * - * @type {string} - * @memberof IngestersCompliance - */ - kubernetes_cluster_id?: string; - /** - * - * @type {string} + * @type {boolean} * @memberof IngestersCompliance */ - kubernetes_cluster_name?: string; - /** - * - * @type {string} - * @memberof IngestersCompliance - */ - masked?: string; - /** - * - * @type {string} - * @memberof IngestersCompliance - */ - node_id?: string; - /** - * - * @type {string} - * @memberof IngestersCompliance - */ - node_name?: string; - /** - * - * @type {string} - * @memberof IngestersCompliance - */ - node_type?: string; + masked?: boolean; /** * * @type {string} @@ -151,12 +115,6 @@ export interface IngestersCompliance { * @memberof IngestersCompliance */ test_severity?: string; - /** - * - * @type {number} - * @memberof IngestersCompliance - */ - time_stamp?: number; /** * * @type {string} @@ -188,13 +146,7 @@ export function IngestersComplianceFromJSONTyped(json: any, ignoreDiscriminator: 'compliance_check_type': !exists(json, 'compliance_check_type') ? undefined : json['compliance_check_type'], 'compliance_node_type': !exists(json, 'compliance_node_type') ? undefined : json['compliance_node_type'], 'description': !exists(json, 'description') ? undefined : json['description'], - 'doc_id': !exists(json, 'doc_id') ? undefined : json['doc_id'], - 'kubernetes_cluster_id': !exists(json, 'kubernetes_cluster_id') ? undefined : json['kubernetes_cluster_id'], - 'kubernetes_cluster_name': !exists(json, 'kubernetes_cluster_name') ? undefined : json['kubernetes_cluster_name'], 'masked': !exists(json, 'masked') ? undefined : json['masked'], - 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], - 'node_name': !exists(json, 'node_name') ? undefined : json['node_name'], - 'node_type': !exists(json, 'node_type') ? undefined : json['node_type'], 'remediation_ansible': !exists(json, 'remediation_ansible') ? undefined : json['remediation_ansible'], 'remediation_puppet': !exists(json, 'remediation_puppet') ? undefined : json['remediation_puppet'], 'remediation_script': !exists(json, 'remediation_script') ? undefined : json['remediation_script'], @@ -206,7 +158,6 @@ export function IngestersComplianceFromJSONTyped(json: any, ignoreDiscriminator: 'test_number': !exists(json, 'test_number') ? undefined : json['test_number'], 'test_rationale': !exists(json, 'test_rationale') ? undefined : json['test_rationale'], 'test_severity': !exists(json, 'test_severity') ? undefined : json['test_severity'], - 'time_stamp': !exists(json, 'time_stamp') ? undefined : json['time_stamp'], 'type': !exists(json, 'type') ? undefined : json['type'], }; } @@ -224,13 +175,7 @@ export function IngestersComplianceToJSON(value?: IngestersCompliance | null): a 'compliance_check_type': value.compliance_check_type, 'compliance_node_type': value.compliance_node_type, 'description': value.description, - 'doc_id': value.doc_id, - 'kubernetes_cluster_id': value.kubernetes_cluster_id, - 'kubernetes_cluster_name': value.kubernetes_cluster_name, 'masked': value.masked, - 'node_id': value.node_id, - 'node_name': value.node_name, - 'node_type': value.node_type, 'remediation_ansible': value.remediation_ansible, 'remediation_puppet': value.remediation_puppet, 'remediation_script': value.remediation_script, @@ -242,7 +187,6 @@ export function IngestersComplianceToJSON(value?: IngestersCompliance | null): a 'test_number': value.test_number, 'test_rationale': value.test_rationale, 'test_severity': value.test_severity, - 'time_stamp': value.time_stamp, 'type': value.type, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalware.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalware.ts index 68617fe6e4..16150cad74 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalware.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalware.ts @@ -37,48 +37,18 @@ export interface IngestersMalware { * @memberof IngestersMalware */ complete_filename?: string; - /** - * - * @type {string} - * @memberof IngestersMalware - */ - container_name?: string; /** * * @type {string} * @memberof IngestersMalware */ file_severity?: string; - /** - * - * @type {string} - * @memberof IngestersMalware - */ - host_name?: string; - /** - * - * @type {string} - * @memberof IngestersMalware - */ - image_id?: string; /** * * @type {string} * @memberof IngestersMalware */ image_layer_id?: string; - /** - * - * @type {string} - * @memberof IngestersMalware - */ - image_name?: string; - /** - * - * @type {string} - * @memberof IngestersMalware - */ - kubernetes_cluster_name?: string; /** * * @type {boolean} @@ -97,18 +67,6 @@ export interface IngestersMalware { * @memberof IngestersMalware */ meta_rules?: { [key: string]: string; } | null; - /** - * - * @type {string} - * @memberof IngestersMalware - */ - node_id?: string; - /** - * - * @type {string} - * @memberof IngestersMalware - */ - node_type?: string; /** * * @type {string} @@ -169,18 +127,11 @@ export function IngestersMalwareFromJSONTyped(json: any, ignoreDiscriminator: bo 'timestamp': !exists(json, '@timestamp') ? undefined : (new Date(json['@timestamp'])), '_class': !exists(json, 'class') ? undefined : json['class'], 'complete_filename': !exists(json, 'complete_filename') ? undefined : json['complete_filename'], - 'container_name': !exists(json, 'container_name') ? undefined : json['container_name'], 'file_severity': !exists(json, 'file_severity') ? undefined : json['file_severity'], - 'host_name': !exists(json, 'host_name') ? undefined : json['host_name'], - 'image_id': !exists(json, 'image_id') ? undefined : json['image_id'], 'image_layer_id': !exists(json, 'image_layer_id') ? undefined : json['image_layer_id'], - 'image_name': !exists(json, 'image_name') ? undefined : json['image_name'], - 'kubernetes_cluster_name': !exists(json, 'kubernetes_cluster_name') ? undefined : json['kubernetes_cluster_name'], 'masked': !exists(json, 'masked') ? undefined : json['masked'], 'meta': !exists(json, 'meta') ? undefined : json['meta'], 'meta_rules': !exists(json, 'meta_rules') ? undefined : json['meta_rules'], - 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], - 'node_type': !exists(json, 'node_type') ? undefined : json['node_type'], 'registry_id': !exists(json, 'registry_id') ? undefined : json['registry_id'], 'rule_name': !exists(json, 'rule_name') ? undefined : json['rule_name'], 'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'], @@ -202,18 +153,11 @@ export function IngestersMalwareToJSON(value?: IngestersMalware | null): any { '@timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()), 'class': value._class, 'complete_filename': value.complete_filename, - 'container_name': value.container_name, 'file_severity': value.file_severity, - 'host_name': value.host_name, - 'image_id': value.image_id, 'image_layer_id': value.image_layer_id, - 'image_name': value.image_name, - 'kubernetes_cluster_name': value.kubernetes_cluster_name, 'masked': value.masked, 'meta': value.meta, 'meta_rules': value.meta_rules, - 'node_id': value.node_id, - 'node_type': value.node_type, 'registry_id': value.registry_id, 'rule_name': value.rule_name, 'scan_id': value.scan_id, diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalwareScanStatus.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalwareScanStatus.ts index 728ac23090..f007613404 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalwareScanStatus.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersMalwareScanStatus.ts @@ -25,48 +25,6 @@ export interface IngestersMalwareScanStatus { * @memberof IngestersMalwareScanStatus */ timestamp?: Date; - /** - * - * @type {string} - * @memberof IngestersMalwareScanStatus - */ - container_name?: string; - /** - * - * @type {string} - * @memberof IngestersMalwareScanStatus - */ - host_name?: string; - /** - * - * @type {string} - * @memberof IngestersMalwareScanStatus - */ - kubernetes_cluster_name?: string; - /** - * - * @type {string} - * @memberof IngestersMalwareScanStatus - */ - masked?: string; - /** - * - * @type {string} - * @memberof IngestersMalwareScanStatus - */ - node_id?: string; - /** - * - * @type {string} - * @memberof IngestersMalwareScanStatus - */ - node_name?: string; - /** - * - * @type {string} - * @memberof IngestersMalwareScanStatus - */ - node_type?: string; /** * * @type {string} @@ -101,13 +59,6 @@ export function IngestersMalwareScanStatusFromJSONTyped(json: any, ignoreDiscrim return { 'timestamp': !exists(json, '@timestamp') ? undefined : (new Date(json['@timestamp'])), - 'container_name': !exists(json, 'container_name') ? undefined : json['container_name'], - 'host_name': !exists(json, 'host_name') ? undefined : json['host_name'], - 'kubernetes_cluster_name': !exists(json, 'kubernetes_cluster_name') ? undefined : json['kubernetes_cluster_name'], - 'masked': !exists(json, 'masked') ? undefined : json['masked'], - 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], - 'node_name': !exists(json, 'node_name') ? undefined : json['node_name'], - 'node_type': !exists(json, 'node_type') ? undefined : json['node_type'], 'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'], 'scan_status': !exists(json, 'scan_status') ? undefined : json['scan_status'], }; @@ -123,13 +74,6 @@ export function IngestersMalwareScanStatusToJSON(value?: IngestersMalwareScanSta return { '@timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()), - 'container_name': value.container_name, - 'host_name': value.host_name, - 'kubernetes_cluster_name': value.kubernetes_cluster_name, - 'masked': value.masked, - 'node_id': value.node_id, - 'node_name': value.node_name, - 'node_type': value.node_type, 'scan_id': value.scan_id, 'scan_status': value.scan_status, }; diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecret.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecret.ts index cc745efa61..75e46ec89a 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecret.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecret.ts @@ -70,46 +70,10 @@ export interface IngestersSecret { Severity?: IngestersSecretSeverity; /** * - * @type {string} - * @memberof IngestersSecret - */ - container_name?: string; - /** - * - * @type {string} - * @memberof IngestersSecret - */ - host_name?: string; - /** - * - * @type {string} - * @memberof IngestersSecret - */ - kubernetes_cluster_name?: string; - /** - * - * @type {string} - * @memberof IngestersSecret - */ - masked?: string; - /** - * - * @type {string} - * @memberof IngestersSecret - */ - node_id?: string; - /** - * - * @type {string} - * @memberof IngestersSecret - */ - node_name?: string; - /** - * - * @type {string} + * @type {boolean} * @memberof IngestersSecret */ - node_type?: string; + masked?: boolean; /** * * @type {string} @@ -142,13 +106,7 @@ export function IngestersSecretFromJSONTyped(json: any, ignoreDiscriminator: boo 'Match': !exists(json, 'Match') ? undefined : IngestersSecretMatchFromJSON(json['Match']), 'Rule': !exists(json, 'Rule') ? undefined : IngestersSecretRuleFromJSON(json['Rule']), 'Severity': !exists(json, 'Severity') ? undefined : IngestersSecretSeverityFromJSON(json['Severity']), - 'container_name': !exists(json, 'container_name') ? undefined : json['container_name'], - 'host_name': !exists(json, 'host_name') ? undefined : json['host_name'], - 'kubernetes_cluster_name': !exists(json, 'kubernetes_cluster_name') ? undefined : json['kubernetes_cluster_name'], 'masked': !exists(json, 'masked') ? undefined : json['masked'], - 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], - 'node_name': !exists(json, 'node_name') ? undefined : json['node_name'], - 'node_type': !exists(json, 'node_type') ? undefined : json['node_type'], 'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'], }; } @@ -167,13 +125,7 @@ export function IngestersSecretToJSON(value?: IngestersSecret | null): any { 'Match': IngestersSecretMatchToJSON(value.Match), 'Rule': IngestersSecretRuleToJSON(value.Rule), 'Severity': IngestersSecretSeverityToJSON(value.Severity), - 'container_name': value.container_name, - 'host_name': value.host_name, - 'kubernetes_cluster_name': value.kubernetes_cluster_name, 'masked': value.masked, - 'node_id': value.node_id, - 'node_name': value.node_name, - 'node_type': value.node_type, 'scan_id': value.scan_id, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecretScanStatus.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecretScanStatus.ts index 9fdf23be25..8a3ea77617 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecretScanStatus.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersSecretScanStatus.ts @@ -30,49 +30,13 @@ export interface IngestersSecretScanStatus { * @type {string} * @memberof IngestersSecretScanStatus */ - container_name?: string; - /** - * - * @type {string} - * @memberof IngestersSecretScanStatus - */ - host_name?: string; - /** - * - * @type {string} - * @memberof IngestersSecretScanStatus - */ - kubernetes_cluster_name?: string; - /** - * - * @type {string} - * @memberof IngestersSecretScanStatus - */ - masked?: string; - /** - * - * @type {string} - * @memberof IngestersSecretScanStatus - */ - node_id?: string; - /** - * - * @type {string} - * @memberof IngestersSecretScanStatus - */ - node_name?: string; - /** - * - * @type {string} - * @memberof IngestersSecretScanStatus - */ - node_type?: string; + scan_id?: string; /** * * @type {string} * @memberof IngestersSecretScanStatus */ - scan_id?: string; + scan_message?: string; /** * * @type {string} @@ -101,14 +65,8 @@ export function IngestersSecretScanStatusFromJSONTyped(json: any, ignoreDiscrimi return { 'timestamp': !exists(json, '@timestamp') ? undefined : (new Date(json['@timestamp'])), - 'container_name': !exists(json, 'container_name') ? undefined : json['container_name'], - 'host_name': !exists(json, 'host_name') ? undefined : json['host_name'], - 'kubernetes_cluster_name': !exists(json, 'kubernetes_cluster_name') ? undefined : json['kubernetes_cluster_name'], - 'masked': !exists(json, 'masked') ? undefined : json['masked'], - 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], - 'node_name': !exists(json, 'node_name') ? undefined : json['node_name'], - 'node_type': !exists(json, 'node_type') ? undefined : json['node_type'], 'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'], + 'scan_message': !exists(json, 'scan_message') ? undefined : json['scan_message'], 'scan_status': !exists(json, 'scan_status') ? undefined : json['scan_status'], }; } @@ -123,14 +81,8 @@ export function IngestersSecretScanStatusToJSON(value?: IngestersSecretScanStatu return { '@timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()), - 'container_name': value.container_name, - 'host_name': value.host_name, - 'kubernetes_cluster_name': value.kubernetes_cluster_name, - 'masked': value.masked, - 'node_id': value.node_id, - 'node_name': value.node_name, - 'node_type': value.node_type, 'scan_id': value.scan_id, + 'scan_message': value.scan_message, 'scan_status': value.scan_status, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerability.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerability.ts index 20c77404c6..55a1326e52 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerability.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerability.ts @@ -49,30 +49,12 @@ export interface IngestersVulnerability { * @memberof IngestersVulnerability */ cve_caused_by_package_path?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - cve_container_image?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - cve_container_image_id?: string; /** * * @type {string} * @memberof IngestersVulnerability */ cve_container_layer?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - cve_container_name?: string; /** * * @type {number} @@ -97,12 +79,6 @@ export interface IngestersVulnerability { * @memberof IngestersVulnerability */ cve_id?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - cve_id_cve_severity_cve_container_image?: string; /** * * @type {string} @@ -127,12 +103,6 @@ export interface IngestersVulnerability { * @memberof IngestersVulnerability */ cve_type?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - doc_id?: string; /** * * @type {string} @@ -141,34 +111,10 @@ export interface IngestersVulnerability { exploit_poc?: string; /** * - * @type {string} - * @memberof IngestersVulnerability - */ - host?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - host_name?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - kubernetes_cluster_name?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerability - */ - masked?: string; - /** - * - * @type {string} + * @type {boolean} * @memberof IngestersVulnerability */ - node_type?: string; + masked?: boolean; /** * * @type {string} @@ -213,26 +159,17 @@ export function IngestersVulnerabilityFromJSONTyped(json: any, ignoreDiscriminat 'cve_attack_vector': !exists(json, 'cve_attack_vector') ? undefined : json['cve_attack_vector'], 'cve_caused_by_package': !exists(json, 'cve_caused_by_package') ? undefined : json['cve_caused_by_package'], 'cve_caused_by_package_path': !exists(json, 'cve_caused_by_package_path') ? undefined : json['cve_caused_by_package_path'], - 'cve_container_image': !exists(json, 'cve_container_image') ? undefined : json['cve_container_image'], - 'cve_container_image_id': !exists(json, 'cve_container_image_id') ? undefined : json['cve_container_image_id'], 'cve_container_layer': !exists(json, 'cve_container_layer') ? undefined : json['cve_container_layer'], - 'cve_container_name': !exists(json, 'cve_container_name') ? undefined : json['cve_container_name'], 'cve_cvss_score': !exists(json, 'cve_cvss_score') ? undefined : json['cve_cvss_score'], 'cve_description': !exists(json, 'cve_description') ? undefined : json['cve_description'], 'cve_fixed_in': !exists(json, 'cve_fixed_in') ? undefined : json['cve_fixed_in'], 'cve_id': !exists(json, 'cve_id') ? undefined : json['cve_id'], - 'cve_id_cve_severity_cve_container_image': !exists(json, 'cve_id_cve_severity_cve_container_image') ? undefined : json['cve_id_cve_severity_cve_container_image'], 'cve_link': !exists(json, 'cve_link') ? undefined : json['cve_link'], 'cve_overall_score': !exists(json, 'cve_overall_score') ? undefined : json['cve_overall_score'], 'cve_severity': !exists(json, 'cve_severity') ? undefined : json['cve_severity'], 'cve_type': !exists(json, 'cve_type') ? undefined : json['cve_type'], - 'doc_id': !exists(json, 'doc_id') ? undefined : json['doc_id'], 'exploit_poc': !exists(json, 'exploit_poc') ? undefined : json['exploit_poc'], - 'host': !exists(json, 'host') ? undefined : json['host'], - 'host_name': !exists(json, 'host_name') ? undefined : json['host_name'], - 'kubernetes_cluster_name': !exists(json, 'kubernetes_cluster_name') ? undefined : json['kubernetes_cluster_name'], 'masked': !exists(json, 'masked') ? undefined : json['masked'], - 'node_type': !exists(json, 'node_type') ? undefined : json['node_type'], 'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'], 'type': !exists(json, 'type') ? undefined : json['type'], 'urls': !exists(json, 'urls') ? undefined : json['urls'], @@ -253,26 +190,17 @@ export function IngestersVulnerabilityToJSON(value?: IngestersVulnerability | nu 'cve_attack_vector': value.cve_attack_vector, 'cve_caused_by_package': value.cve_caused_by_package, 'cve_caused_by_package_path': value.cve_caused_by_package_path, - 'cve_container_image': value.cve_container_image, - 'cve_container_image_id': value.cve_container_image_id, 'cve_container_layer': value.cve_container_layer, - 'cve_container_name': value.cve_container_name, 'cve_cvss_score': value.cve_cvss_score, 'cve_description': value.cve_description, 'cve_fixed_in': value.cve_fixed_in, 'cve_id': value.cve_id, - 'cve_id_cve_severity_cve_container_image': value.cve_id_cve_severity_cve_container_image, 'cve_link': value.cve_link, 'cve_overall_score': value.cve_overall_score, 'cve_severity': value.cve_severity, 'cve_type': value.cve_type, - 'doc_id': value.doc_id, 'exploit_poc': value.exploit_poc, - 'host': value.host, - 'host_name': value.host_name, - 'kubernetes_cluster_name': value.kubernetes_cluster_name, 'masked': value.masked, - 'node_type': value.node_type, 'scan_id': value.scan_id, 'type': value.type, 'urls': value.urls, diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerabilityScanStatus.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerabilityScanStatus.ts index 84ecc885fd..311925b043 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerabilityScanStatus.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/IngestersVulnerabilityScanStatus.ts @@ -30,49 +30,13 @@ export interface IngestersVulnerabilityScanStatus { * @type {string} * @memberof IngestersVulnerabilityScanStatus */ - container_name?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerabilityScanStatus - */ - host_name?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerabilityScanStatus - */ - kubernetes_cluster_name?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerabilityScanStatus - */ - masked?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerabilityScanStatus - */ - node_id?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerabilityScanStatus - */ - node_name?: string; - /** - * - * @type {string} - * @memberof IngestersVulnerabilityScanStatus - */ - node_type?: string; + scan_id?: string; /** * * @type {string} * @memberof IngestersVulnerabilityScanStatus */ - scan_id?: string; + scan_message?: string; /** * * @type {string} @@ -101,14 +65,8 @@ export function IngestersVulnerabilityScanStatusFromJSONTyped(json: any, ignoreD return { 'timestamp': !exists(json, '@timestamp') ? undefined : (new Date(json['@timestamp'])), - 'container_name': !exists(json, 'container_name') ? undefined : json['container_name'], - 'host_name': !exists(json, 'host_name') ? undefined : json['host_name'], - 'kubernetes_cluster_name': !exists(json, 'kubernetes_cluster_name') ? undefined : json['kubernetes_cluster_name'], - 'masked': !exists(json, 'masked') ? undefined : json['masked'], - 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], - 'node_name': !exists(json, 'node_name') ? undefined : json['node_name'], - 'node_type': !exists(json, 'node_type') ? undefined : json['node_type'], 'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'], + 'scan_message': !exists(json, 'scan_message') ? undefined : json['scan_message'], 'scan_status': !exists(json, 'scan_status') ? undefined : json['scan_status'], }; } @@ -123,14 +81,8 @@ export function IngestersVulnerabilityScanStatusToJSON(value?: IngestersVulnerab return { '@timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()), - 'container_name': value.container_name, - 'host_name': value.host_name, - 'kubernetes_cluster_name': value.kubernetes_cluster_name, - 'masked': value.masked, - 'node_id': value.node_id, - 'node_name': value.node_name, - 'node_type': value.node_type, 'scan_id': value.scan_id, + 'scan_message': value.scan_message, 'scan_status': value.scan_status, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudCompliance.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudCompliance.ts index a2253f5405..2bf38a1c01 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudCompliance.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudCompliance.ts @@ -139,6 +139,12 @@ export interface ModelCloudCompliance { * @memberof ModelCloudCompliance */ type: string; + /** + * + * @type {number} + * @memberof ModelCloudCompliance + */ + updated_at: number; } /** @@ -166,6 +172,7 @@ export function instanceOfModelCloudCompliance(value: object): boolean { isInstance = isInstance && "status" in value; isInstance = isInstance && "title" in value; isInstance = isInstance && "type" in value; + isInstance = isInstance && "updated_at" in value; return isInstance; } @@ -200,6 +207,7 @@ export function ModelCloudComplianceFromJSONTyped(json: any, ignoreDiscriminator 'status': json['status'], 'title': json['title'], 'type': json['type'], + 'updated_at': json['updated_at'], }; } @@ -232,6 +240,7 @@ export function ModelCloudComplianceToJSON(value?: ModelCloudCompliance | null): 'status': value.status, 'title': value.title, 'type': value.type, + 'updated_at': value.updated_at, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCompliance.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCompliance.ts index 259bf58dd2..9f9d22649f 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCompliance.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCompliance.ts @@ -103,6 +103,12 @@ export interface ModelCompliance { * @memberof ModelCompliance */ test_severity: string; + /** + * + * @type {number} + * @memberof ModelCompliance + */ + updated_at: number; } /** @@ -124,6 +130,7 @@ export function instanceOfModelCompliance(value: object): boolean { isInstance = isInstance && "test_number" in value; isInstance = isInstance && "test_rationale" in value; isInstance = isInstance && "test_severity" in value; + isInstance = isInstance && "updated_at" in value; return isInstance; } @@ -152,6 +159,7 @@ export function ModelComplianceFromJSONTyped(json: any, ignoreDiscriminator: boo 'test_number': json['test_number'], 'test_rationale': json['test_rationale'], 'test_severity': json['test_severity'], + 'updated_at': json['updated_at'], }; } @@ -178,6 +186,7 @@ export function ModelComplianceToJSON(value?: ModelCompliance | null): any { 'test_number': value.test_number, 'test_rationale': value.test_rationale, 'test_severity': value.test_severity, + 'updated_at': value.updated_at, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelMalware.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelMalware.ts index d75209618f..15f67b1855 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelMalware.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelMalware.ts @@ -73,6 +73,12 @@ export interface ModelMalware { * @memberof ModelMalware */ summary: string; + /** + * + * @type {number} + * @memberof ModelMalware + */ + updated_at: number; } /** @@ -89,6 +95,7 @@ export function instanceOfModelMalware(value: object): boolean { isInstance = isInstance && "rule_name" in value; isInstance = isInstance && "severity_score" in value; isInstance = isInstance && "summary" in value; + isInstance = isInstance && "updated_at" in value; return isInstance; } @@ -112,6 +119,7 @@ export function ModelMalwareFromJSONTyped(json: any, ignoreDiscriminator: boolea 'rule_name': json['rule_name'], 'severity_score': json['severity_score'], 'summary': json['summary'], + 'updated_at': json['updated_at'], }; } @@ -133,6 +141,7 @@ export function ModelMalwareToJSON(value?: ModelMalware | null): any { 'rule_name': value.rule_name, 'severity_score': value.severity_score, 'summary': value.summary, + 'updated_at': value.updated_at, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSbomResponse.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSbomResponse.ts index fd0f66e384..7eb8c4505b 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSbomResponse.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSbomResponse.ts @@ -30,13 +30,13 @@ export interface ModelSbomResponse { * @type {Array} * @memberof ModelSbomResponse */ - licenses?: Array | null; + licenses?: Array; /** * * @type {Array} * @memberof ModelSbomResponse */ - locations?: Array | null; + locations?: Array; /** * * @type {string} diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultBasicNode.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultBasicNode.ts new file mode 100644 index 0000000000..bea522b43d --- /dev/null +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultBasicNode.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Deepfence ThreatMapper + * Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider, container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: community@deepfence.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ModelBasicNode } from './ModelBasicNode'; +import { + ModelBasicNodeFromJSON, + ModelBasicNodeFromJSONTyped, + ModelBasicNodeToJSON, +} from './ModelBasicNode'; + +/** + * + * @export + * @interface ModelScanResultBasicNode + */ +export interface ModelScanResultBasicNode { + /** + * + * @type {Array} + * @memberof ModelScanResultBasicNode + */ + basic_nodes: Array | null; + /** + * + * @type {string} + * @memberof ModelScanResultBasicNode + */ + result_id: string; +} + +/** + * Check if a given object implements the ModelScanResultBasicNode interface. + */ +export function instanceOfModelScanResultBasicNode(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "basic_nodes" in value; + isInstance = isInstance && "result_id" in value; + + return isInstance; +} + +export function ModelScanResultBasicNodeFromJSON(json: any): ModelScanResultBasicNode { + return ModelScanResultBasicNodeFromJSONTyped(json, false); +} + +export function ModelScanResultBasicNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelScanResultBasicNode { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'basic_nodes': (json['basic_nodes'] === null ? null : (json['basic_nodes'] as Array).map(ModelBasicNodeFromJSON)), + 'result_id': json['result_id'], + }; +} + +export function ModelScanResultBasicNodeToJSON(value?: ModelScanResultBasicNode | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'basic_nodes': (value.basic_nodes === null ? null : (value.basic_nodes as Array).map(ModelBasicNodeToJSON)), + 'result_id': value.result_id, + }; +} + diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsActionRequest.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsActionRequest.ts index 2c1fd60acf..c80202feee 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsActionRequest.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsActionRequest.ts @@ -24,7 +24,7 @@ export interface ModelScanResultsActionRequest { * @type {Array} * @memberof ModelScanResultsActionRequest */ - doc_ids: Array | null; + result_ids: Array | null; /** * * @type {string} @@ -58,7 +58,7 @@ export type ModelScanResultsActionRequestScanTypeEnum = typeof ModelScanResultsA */ export function instanceOfModelScanResultsActionRequest(value: object): boolean { let isInstance = true; - isInstance = isInstance && "doc_ids" in value; + isInstance = isInstance && "result_ids" in value; isInstance = isInstance && "scan_id" in value; isInstance = isInstance && "scan_type" in value; @@ -75,7 +75,7 @@ export function ModelScanResultsActionRequestFromJSONTyped(json: any, ignoreDisc } return { - 'doc_ids': json['doc_ids'], + 'result_ids': json['result_ids'], 'scan_id': json['scan_id'], 'scan_type': json['scan_type'], }; @@ -90,7 +90,7 @@ export function ModelScanResultsActionRequestToJSON(value?: ModelScanResultsActi } return { - 'doc_ids': value.doc_ids, + 'result_ids': value.result_ids, 'scan_id': value.scan_id, 'scan_type': value.scan_type, }; diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsMaskRequest.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsMaskRequest.ts index 77414f3f2e..ceca56d408 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsMaskRequest.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelScanResultsMaskRequest.ts @@ -21,16 +21,16 @@ import { exists, mapValues } from '../runtime'; export interface ModelScanResultsMaskRequest { /** * - * @type {Array} + * @type {boolean} * @memberof ModelScanResultsMaskRequest */ - doc_ids: Array | null; + mask_across_hosts_and_images?: boolean; /** * - * @type {boolean} + * @type {Array} * @memberof ModelScanResultsMaskRequest */ - mask_across_hosts_and_images?: boolean; + result_ids: Array | null; /** * * @type {string} @@ -64,7 +64,7 @@ export type ModelScanResultsMaskRequestScanTypeEnum = typeof ModelScanResultsMas */ export function instanceOfModelScanResultsMaskRequest(value: object): boolean { let isInstance = true; - isInstance = isInstance && "doc_ids" in value; + isInstance = isInstance && "result_ids" in value; isInstance = isInstance && "scan_id" in value; isInstance = isInstance && "scan_type" in value; @@ -81,8 +81,8 @@ export function ModelScanResultsMaskRequestFromJSONTyped(json: any, ignoreDiscri } return { - 'doc_ids': json['doc_ids'], 'mask_across_hosts_and_images': !exists(json, 'mask_across_hosts_and_images') ? undefined : json['mask_across_hosts_and_images'], + 'result_ids': json['result_ids'], 'scan_id': json['scan_id'], 'scan_type': json['scan_type'], }; @@ -97,8 +97,8 @@ export function ModelScanResultsMaskRequestToJSON(value?: ModelScanResultsMaskRe } return { - 'doc_ids': value.doc_ids, 'mask_across_hosts_and_images': value.mask_across_hosts_and_images, + 'result_ids': value.result_ids, 'scan_id': value.scan_id, 'scan_type': value.scan_type, }; diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSecret.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSecret.ts index b1fd434407..5f6a20b4a6 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSecret.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelSecret.ts @@ -49,12 +49,24 @@ export interface ModelSecret { * @memberof ModelSecret */ relative_starting_index: number; + /** + * + * @type {string} + * @memberof ModelSecret + */ + rule_id: string; /** * * @type {number} * @memberof ModelSecret */ starting_index: number; + /** + * + * @type {number} + * @memberof ModelSecret + */ + updated_at: number; } /** @@ -67,7 +79,9 @@ export function instanceOfModelSecret(value: object): boolean { isInstance = isInstance && "matched_content" in value; isInstance = isInstance && "relative_ending_index" in value; isInstance = isInstance && "relative_starting_index" in value; + isInstance = isInstance && "rule_id" in value; isInstance = isInstance && "starting_index" in value; + isInstance = isInstance && "updated_at" in value; return isInstance; } @@ -87,7 +101,9 @@ export function ModelSecretFromJSONTyped(json: any, ignoreDiscriminator: boolean 'matched_content': json['matched_content'], 'relative_ending_index': json['relative_ending_index'], 'relative_starting_index': json['relative_starting_index'], + 'rule_id': json['rule_id'], 'starting_index': json['starting_index'], + 'updated_at': json['updated_at'], }; } @@ -105,7 +121,9 @@ export function ModelSecretToJSON(value?: ModelSecret | null): any { 'matched_content': value.matched_content, 'relative_ending_index': value.relative_ending_index, 'relative_starting_index': value.relative_starting_index, + 'rule_id': value.rule_id, 'starting_index': value.starting_index, + 'updated_at': value.updated_at, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelVulnerability.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelVulnerability.ts index 2ad095646a..ad4231bc4d 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelVulnerability.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelVulnerability.ts @@ -97,12 +97,30 @@ export interface ModelVulnerability { * @memberof ModelVulnerability */ exploit_poc: string; + /** + * + * @type {boolean} + * @memberof ModelVulnerability + */ + has_live_connection: boolean; /** * * @type {boolean} * @memberof ModelVulnerability */ masked: boolean; + /** + * + * @type {string} + * @memberof ModelVulnerability + */ + parsed_attack_vector: string; + /** + * + * @type {number} + * @memberof ModelVulnerability + */ + updated_at: number; /** * * @type {Array} @@ -129,7 +147,10 @@ export function instanceOfModelVulnerability(value: object): boolean { isInstance = isInstance && "cve_severity" in value; isInstance = isInstance && "cve_type" in value; isInstance = isInstance && "exploit_poc" in value; + isInstance = isInstance && "has_live_connection" in value; isInstance = isInstance && "masked" in value; + isInstance = isInstance && "parsed_attack_vector" in value; + isInstance = isInstance && "updated_at" in value; isInstance = isInstance && "urls" in value; return isInstance; @@ -158,7 +179,10 @@ export function ModelVulnerabilityFromJSONTyped(json: any, ignoreDiscriminator: 'cve_severity': json['cve_severity'], 'cve_type': json['cve_type'], 'exploit_poc': json['exploit_poc'], + 'has_live_connection': json['has_live_connection'], 'masked': json['masked'], + 'parsed_attack_vector': json['parsed_attack_vector'], + 'updated_at': json['updated_at'], 'urls': json['urls'], }; } @@ -185,7 +209,10 @@ export function ModelVulnerabilityToJSON(value?: ModelVulnerability | null): any 'cve_severity': value.cve_severity, 'cve_type': value.cve_type, 'exploit_poc': value.exploit_poc, + 'has_live_connection': value.has_live_connection, 'masked': value.masked, + 'parsed_attack_vector': value.parsed_attack_vector, + 'updated_at': value.updated_at, 'urls': value.urls, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ReportersOrderFilter.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ReportersOrderFilter.ts index b401028d5b..8794a60888 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ReportersOrderFilter.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ReportersOrderFilter.ts @@ -21,10 +21,10 @@ import { exists, mapValues } from '../runtime'; export interface ReportersOrderFilter { /** * - * @type {string} + * @type {Array} * @memberof ReportersOrderFilter */ - order_field: string; + order_fields: Array | null; } /** @@ -32,7 +32,7 @@ export interface ReportersOrderFilter { */ export function instanceOfReportersOrderFilter(value: object): boolean { let isInstance = true; - isInstance = isInstance && "order_field" in value; + isInstance = isInstance && "order_fields" in value; return isInstance; } @@ -47,7 +47,7 @@ export function ReportersOrderFilterFromJSONTyped(json: any, ignoreDiscriminator } return { - 'order_field': json['order_field'], + 'order_fields': json['order_fields'], }; } @@ -60,7 +60,7 @@ export function ReportersOrderFilterToJSON(value?: ReportersOrderFilter | null): } return { - 'order_field': value.order_field, + 'order_fields': value.order_fields, }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts index 0983ff7279..95d0733776 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts @@ -79,6 +79,7 @@ export * from './ModelScanFilter'; export * from './ModelScanInfo'; export * from './ModelScanListReq'; export * from './ModelScanListResp'; +export * from './ModelScanResultBasicNode'; export * from './ModelScanResultsActionRequest'; export * from './ModelScanResultsMaskRequest'; export * from './ModelScanResultsReq'; diff --git a/deepfence_frontend/apps/dashboard/src/features/onboard/layouts/OnboardLayout.tsx b/deepfence_frontend/apps/dashboard/src/features/onboard/layouts/OnboardLayout.tsx index d419574a69..b1afe6e925 100644 --- a/deepfence_frontend/apps/dashboard/src/features/onboard/layouts/OnboardLayout.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/onboard/layouts/OnboardLayout.tsx @@ -14,7 +14,7 @@ export const rootOnboardLoader: LoaderFunction = async ({ request }) => { export const OnboardLayout = () => { return ( -
+
diff --git a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/ComplianceScanSummary.tsx b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/ComplianceScanSummary.tsx index 9ee283aabc..e3b6d98c6f 100644 --- a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/ComplianceScanSummary.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/ComplianceScanSummary.tsx @@ -62,7 +62,7 @@ const getCloudComplianceScanSummary = async (scanIds: string[]): Promise filter_in: {}, }, order_filter: { - order_field: '', + order_fields: [], }, match_filter: { filter_in: {}, diff --git a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/MalwareScanSummary.tsx b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/MalwareScanSummary.tsx index 6bdee1c6cc..b3976a2e7b 100644 --- a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/MalwareScanSummary.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/MalwareScanSummary.tsx @@ -66,7 +66,7 @@ async function getScanSummary(scanIds: string[]): Promise { filter_in: {}, }, order_filter: { - order_field: '', + order_fields: [], }, match_filter: { filter_in: {}, diff --git a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/SecretScanSummary.tsx b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/SecretScanSummary.tsx index 7ec83111b9..aa2c1dc0fb 100644 --- a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/SecretScanSummary.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/SecretScanSummary.tsx @@ -66,7 +66,7 @@ async function getScanSummary(scanIds: string[]): Promise { filter_in: {}, }, order_filter: { - order_field: '', + order_fields: [], }, match_filter: { filter_in: {}, diff --git a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/VulnerabilityScanSummary.tsx b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/VulnerabilityScanSummary.tsx index 9e24cc13e7..cbf76c4a65 100644 --- a/deepfence_frontend/apps/dashboard/src/features/onboard/pages/VulnerabilityScanSummary.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/onboard/pages/VulnerabilityScanSummary.tsx @@ -66,7 +66,7 @@ async function getScanSummary(scanIds: string[]): Promise { filter_in: {}, }, order_filter: { - order_field: '', + order_fields: [], }, match_filter: { filter_in: {}, diff --git a/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/Vulnerability.tsx b/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/Vulnerability.tsx index 5bfd559812..351134cab4 100644 --- a/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/Vulnerability.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/Vulnerability.tsx @@ -37,7 +37,7 @@ async function getTop5VulnerableImageData(nodeType: 'image' | 'host' | 'containe filter_in: {}, }, order_filter: { - order_field: 'vulnerabilities_count', + order_fields: ['vulnerabilities_count'], }, }, in_field_filter: [], @@ -121,7 +121,7 @@ async function getUniqueVulenrabilityCount(): Promise {
- Seen 6 months ago + {dayjs(cve.cveTimestamp).fromNow()}
); diff --git a/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScanResults.tsx b/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScanResults.tsx index ee522afe02..39f4efacc8 100644 --- a/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScanResults.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScanResults.tsx @@ -169,7 +169,7 @@ async function getScans( }, }, match_filter: { filter_in: {} }, - order_filter: { order_field: '' }, + order_filter: { order_fields: [] }, }, scan_id: scanId, window: { @@ -308,7 +308,7 @@ const action = async ({ apiArgs: [ { modelScanResultsActionRequest: { - doc_ids: [...cveIds], + result_ids: [...cveIds], scan_id: _scanId, scan_type: ModelScanResultsActionRequestScanTypeEnum.VulnerabilityScan, }, @@ -337,7 +337,7 @@ const action = async ({ { modelScanResultsMaskRequest: { mask_across_hosts_and_images: mask === 'maskHostAndImages', - doc_ids: [...cveIds], + result_ids: [...cveIds], scan_id: _scanId, scan_type: ModelScanResultsActionRequestScanTypeEnum.VulnerabilityScan, }, diff --git a/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScans.tsx b/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScans.tsx index a2a1393728..19447b1bd2 100644 --- a/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScans.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScans.tsx @@ -201,7 +201,7 @@ async function getContainerImages(): Promise filter_in: {}, }, order_filter: { - order_field: 'vulnerabilities_count', + order_fields: ['vulnerabilities_count'], }, match_filter: { filter_in: {}, @@ -254,7 +254,7 @@ async function getContainers(): Promise { filter_in: {}, }, order_filter: { - order_field: 'vulnerabilities_count', + order_fields: ['vulnerabilities_count'], }, match_filter: { filter_in: {}, @@ -309,7 +309,7 @@ async function getHosts(): Promise { filter_in: {}, }, order_filter: { - order_field: 'vulnerabilities_count', + order_fields: ['vulnerabilities_count'], }, match_filter: { filter_in: {}, @@ -491,7 +491,7 @@ async function getScans( }, }, order_filter: { - order_field: '', + order_fields: [], }, match_filter: { filter_in: {}, @@ -507,7 +507,7 @@ async function getScans( }, }, order_filter: { - order_field: '', + order_fields: [], }, match_filter: { filter_in: { ...languageFilters } }, }, @@ -644,7 +644,7 @@ const action = async ({ apiArgs: [ { modelScanResultsActionRequest: { - doc_ids: [nodeId.toString()], + result_ids: [nodeId.toString()], scan_id: scanId.toString(), scan_type: ModelScanResultsActionRequestScanTypeEnum.VulnerabilityScan, },