From a39089ff5dfdffd4bdca0094423565fad8aefb2e Mon Sep 17 00:00:00 2001 From: Kfir Peled <61654899+kfirpeled@users.noreply.github.com> Date: Mon, 20 Mar 2023 10:56:36 -0600 Subject: [PATCH] [Cloud Security] Show coming soon deployments of vulnerability management (#153249) --- .../common/constants.ts | 4 +++ .../public/common/constants.ts | 30 ++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/cloud_security_posture/common/constants.ts b/x-pack/plugins/cloud_security_posture/common/constants.ts index 084d3cca23a364..a7d5807ed66a19 100644 --- a/x-pack/plugins/cloud_security_posture/common/constants.ts +++ b/x-pack/plugins/cloud_security_posture/common/constants.ts @@ -49,6 +49,8 @@ export const CLOUDBEAT_AWS = 'cloudbeat/cis_aws'; export const CLOUDBEAT_GCP = 'cloudbeat/cis_gcp'; export const CLOUDBEAT_AZURE = 'cloudbeat/cis_azure'; export const CLOUDBEAT_VULN_MGMT_AWS = 'cloudbeat/vuln_mgmt_aws'; +export const CLOUDBEAT_VULN_MGMT_GCP = 'cloudbeat/vuln_mgmt_gcp'; +export const CLOUDBEAT_VULN_MGMT_AZURE = 'cloudbeat/vuln_mgmt_azure'; export const KSPM_POLICY_TEMPLATE = 'kspm'; export const CSPM_POLICY_TEMPLATE = 'cspm'; export const VULN_MGMT_POLICY_TEMPLATE = 'vuln_mgmt'; @@ -64,4 +66,6 @@ export const SUPPORTED_CLOUDBEAT_INPUTS = [ CLOUDBEAT_GCP, CLOUDBEAT_AZURE, CLOUDBEAT_VULN_MGMT_AWS, + CLOUDBEAT_VULN_MGMT_GCP, + CLOUDBEAT_VULN_MGMT_AZURE, ] as const; diff --git a/x-pack/plugins/cloud_security_posture/public/common/constants.ts b/x-pack/plugins/cloud_security_posture/public/common/constants.ts index 41e30e16259cd5..54e0b7467069a5 100644 --- a/x-pack/plugins/cloud_security_posture/public/common/constants.ts +++ b/x-pack/plugins/cloud_security_posture/public/common/constants.ts @@ -18,6 +18,8 @@ import { KSPM_POLICY_TEMPLATE, CSPM_POLICY_TEMPLATE, VULN_MGMT_POLICY_TEMPLATE, + CLOUDBEAT_VULN_MGMT_GCP, + CLOUDBEAT_VULN_MGMT_AZURE, } from '../../common/constants'; import eksLogo from '../assets/icons/cis_eks_logo.svg'; @@ -143,10 +145,36 @@ export const cloudPostureIntegrations: CloudPostureIntegrations = { options: [ { type: CLOUDBEAT_VULN_MGMT_AWS, - name: 'Amazon Web Services', // TODO: we should use i18n and fix this + name: i18n.translate('xpack.csp.vulnMgmtIntegration.awsOption.nameTitle', { + defaultMessage: 'Amazon Web Services', + }), icon: 'logoAWS', benchmark: 'N/A', // TODO: change benchmark to be optional }, + { + type: CLOUDBEAT_VULN_MGMT_GCP, + name: i18n.translate('xpack.csp.vulnMgmtIntegration.gcpOption.nameTitle', { + defaultMessage: 'GCP', + }), + disabled: true, + icon: 'logoGCP', + tooltip: i18n.translate('xpack.csp.vulnMgmtIntegration.gcpOption.tooltipContent', { + defaultMessage: 'Coming soon', + }), + benchmark: 'N/A', // TODO: change benchmark to be optional + }, + { + type: CLOUDBEAT_VULN_MGMT_AZURE, + name: i18n.translate('xpack.csp.vulnMgmtIntegration.azureOption.nameTitle', { + defaultMessage: 'Azure', + }), + disabled: true, + icon: 'logoAzure', + tooltip: i18n.translate('xpack.csp.vulnMgmtIntegration.azureOption.tooltipContent', { + defaultMessage: 'Coming soon', + }), + benchmark: 'N/A', // TODO: change benchmark to be optional + }, ], }, };