From fc97bd0a935777312f0c2e8e01f01b06f833bd6f Mon Sep 17 00:00:00 2001 From: Rickyanto Ang Date: Thu, 28 Nov 2024 07:53:37 -0800 Subject: [PATCH] [Cloud Security] Removing Unused Options For CNVM (#201461) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary This PR is to Remove Unused options for CNVM + Edit the page now that there are no more options to choose from Screenshot 2024-11-27 at 1 03 06 PM --------- Co-authored-by: Elastic Machine (cherry picked from commit 91643e9491a51fce4557bf1b5876452527259ecf) --- .../public/common/constants.ts | 26 ------------------- .../fleet_extensions/policy_template_form.tsx | 23 ++++++++++------ .../policy_template_selectors.tsx | 12 +++++++-- .../translations/translations/fr-FR.json | 5 ---- .../translations/translations/ja-JP.json | 5 ---- .../translations/translations/zh-CN.json | 5 ---- 6 files changed, 25 insertions(+), 51 deletions(-) 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 ff4f51fc0b47a..6c1761dd1a314 100644 --- a/x-pack/plugins/cloud_security_posture/public/common/constants.ts +++ b/x-pack/plugins/cloud_security_posture/public/common/constants.ts @@ -16,8 +16,6 @@ import { CLOUDBEAT_AZURE, CLOUDBEAT_VULN_MGMT_AWS, VULN_MGMT_POLICY_TEMPLATE, - CLOUDBEAT_VULN_MGMT_GCP, - CLOUDBEAT_VULN_MGMT_AZURE, CLOUDBEAT_AKS, CLOUDBEAT_GKE, } from '../../common/constants'; @@ -158,30 +156,6 @@ export const cloudPostureIntegrations: CloudPostureIntegrations = { 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: googleCloudLogo, - 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 - }, ], }, }; diff --git a/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_form.tsx b/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_form.tsx index 9d8deb5b9892d..8d6f7292928e9 100644 --- a/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_form.tsx +++ b/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_form.tsx @@ -915,12 +915,16 @@ export const CspPolicyTemplateForm = memo {/* Defines the single enabled input of the active policy template */} - - + {input.type === 'cloudbeat/vuln_mgmt_aws' ? null : ( + <> + + + + )} {/* AWS account type selection box */} {input.type === 'cloudbeat/cis_aws' && ( @@ -954,8 +958,11 @@ export const CspPolicyTemplateForm = memo )} - {/* Defines the name/description */} - + {input.type === 'cloudbeat/vuln_mgmt_aws' ? null : ( + <> + + + )} updatePolicy({ ...newPolicy, [field]: value })} diff --git a/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_selectors.tsx b/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_selectors.tsx index 786f5526f496f..c479b3250fb7c 100644 --- a/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_selectors.tsx +++ b/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/policy_template_selectors.tsx @@ -157,8 +157,16 @@ export const PolicyTemplateInfo = ({ postureType }: PolicyTemplateInfoProps) => {chunks}, + }} + /> + + )} diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json index f98b5a307837b..8c30bbdaec383 100644 --- a/x-pack/plugins/translations/translations/fr-FR.json +++ b/x-pack/plugins/translations/translations/fr-FR.json @@ -15053,7 +15053,6 @@ "xpack.csp.fleetIntegration.azureAccountTypeDescriptionLabel": "Choisissez d'intégrer une organisation Azure (groupe racine du locataire) ou un seul abonnement Azure, puis saisissez un nom et une description pour permettre l'identification de cette intégration.", "xpack.csp.fleetIntegration.cnvm.additionalChargesCalloutDescription": "Veuillez noter que l'utilisation de ce service peut entraîner des frais supplémentaires sur le prochain relevé de facturation provenant de votre fournisseur cloud en raison d'une augmentation de l'utilisation.", "xpack.csp.fleetIntegration.cnvm.additionalChargesCalloutTitle": "Frais supplémentaires sur le compte de facturation du fournisseur cloud.", - "xpack.csp.fleetIntegration.cnvm.configureIntegrationDescription": "Sélectionner le fournisseur de services cloud (CSP) que vous souhaitez monitorer, puis remplir le nom et la description pour faciliter l'identification de cette intégration", "xpack.csp.fleetIntegration.configureCspmIntegrationDescription": "Sélectionner le fournisseur de services cloud (CSP) que vous souhaitez monitorer, puis remplir le nom et la description pour faciliter l'identification de cette intégration", "xpack.csp.fleetIntegration.configureKspmIntegrationDescription": "Sélectionner le type de cluster Kubernetes que vous souhaitez monitorer, puis remplir le nom et la description pour faciliter l'identification de cette intégration", "xpack.csp.fleetIntegration.editWarning.calloutDescription": "Afin de changer le fournisseur de services cloud (CSP) que vous souhaitez monitorer, d'ajouter des comptes ou de modifier l'emplacement de déploiement (organisation ou compte unique) de la gestion du niveau de sécurité du cloud (CSPM), veuillez ajouter une nouvelle intégration CSPM.", @@ -15258,10 +15257,6 @@ "xpack.csp.vulnerabilties.intergationNoInstalledEmptyPrompt.promptDescription": "Détectez et corrigez les vulnérabilités potentielles {lineBreak} de vos ressources cloud, grâce à l'intégration de notre solution Gestion des vulnérabilités {lineBreak} cloud-native (CNVM). {lineBreak} {learnMore}", "xpack.csp.vulnerabilties.intergationNoInstalledEmptyPrompt.promptTitle": "Gestion des vulnérabilités {lineBreak} cloud-native d'Elastic", "xpack.csp.vulnMgmtIntegration.awsOption.nameTitle": "Amazon Web Services", - "xpack.csp.vulnMgmtIntegration.azureOption.nameTitle": "Azure", - "xpack.csp.vulnMgmtIntegration.azureOption.tooltipContent": "Bientôt disponible", - "xpack.csp.vulnMgmtIntegration.gcpOption.nameTitle": "GCP", - "xpack.csp.vulnMgmtIntegration.gcpOption.tooltipContent": "Bientôt disponible", "xpack.customBranding.appName": "Marque personnalisée", "xpack.customBranding.customizedLogoDescription": "Remplace le texte en regard du logo. Les images sont plus belles lorsqu'elles ne dépassent pas 200 x 84 pixels et qu'elles ont un arrière-plan transparent. {subscriptionLink}", "xpack.customBranding.customizedLogoLabel": "Nom de l'organisation", diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 2b71041fbe74e..16eb2a1bbde2d 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -15033,7 +15033,6 @@ "xpack.csp.fleetIntegration.azureAccountTypeDescriptionLabel": "Azure組織(テナントルートグループ)または単一のAzureサブスクリプションのオンボーディングのいずれかを選択し、この統合を識別するのに役立つ名前と説明を記入します。", "xpack.csp.fleetIntegration.cnvm.additionalChargesCalloutDescription": "このサービスを使用すると、使用量が増えるため、次回のクラウドプロバイダー請求明細書に料金が追加される場合があります。", "xpack.csp.fleetIntegration.cnvm.additionalChargesCalloutTitle": "クラウドプロバイダー請求アカウントへの追加料金。", - "xpack.csp.fleetIntegration.cnvm.configureIntegrationDescription": "監視するクラウドサービスプロバイダー(CSP)を選択し、この統合を識別するのに役立つ名前と説明を記入します", "xpack.csp.fleetIntegration.configureCspmIntegrationDescription": "監視するクラウドサービスプロバイダー(CSP)を選択し、この統合を識別するのに役立つ名前と説明を記入します", "xpack.csp.fleetIntegration.configureKspmIntegrationDescription": "監視するKubernetesクラスタータイプを選択し、この統合を識別するのに役立つ名前と説明を記入します", "xpack.csp.fleetIntegration.editWarning.calloutDescription": "監視するクラウドサービスプロバイダー(CSP)の変更、アカウントの追加、CSPMのデプロイ先(組織か単一のアカウントか)の変更には、新しいCSPM統合を追加してください。", @@ -15237,10 +15236,6 @@ "xpack.csp.vulnerabilties.intergationNoInstalledEmptyPrompt.promptDescription": "Elasticのクラウドネイティブ{lineBreak}脆弱性管理(CNVM)統合により、お客様のクラウド資産における脆弱性の可能性を{lineBreak}検出し、修復します。{lineBreak} {learnMore}", "xpack.csp.vulnerabilties.intergationNoInstalledEmptyPrompt.promptTitle": "Elasticのクラウドネイティブ{lineBreak}脆弱性管理", "xpack.csp.vulnMgmtIntegration.awsOption.nameTitle": "Amazon Web Services", - "xpack.csp.vulnMgmtIntegration.azureOption.nameTitle": "Azure", - "xpack.csp.vulnMgmtIntegration.azureOption.tooltipContent": "まもなくリリース", - "xpack.csp.vulnMgmtIntegration.gcpOption.nameTitle": "GCP", - "xpack.csp.vulnMgmtIntegration.gcpOption.tooltipContent": "まもなくリリース", "xpack.customBranding.appName": "カスタムブランディング", "xpack.customBranding.customizedLogoDescription": "ロゴの横のテキストを置換します。画像が200 x 84ピクセル以下で、背景が透明のときに、画像が最適に表示されます。{subscriptionLink}", "xpack.customBranding.customizedLogoLabel": "組織名", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index 376bb4f40ffcd..058d28b4829fe 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -15069,7 +15069,6 @@ "xpack.csp.fleetIntegration.azureAccountTypeDescriptionLabel": "选择载入 Azure 组织(租户根组)或单个 Azure 订阅,然后填写名称和描述以帮助标识此集成。", "xpack.csp.fleetIntegration.cnvm.additionalChargesCalloutDescription": "请注意,由于使用量增加,使用此服务可能导致在您的下一份云服务提供商计费结算单上出现其他收费。", "xpack.csp.fleetIntegration.cnvm.additionalChargesCalloutTitle": "云服务提供商计费帐户上的其他收费。", - "xpack.csp.fleetIntegration.cnvm.configureIntegrationDescription": "选择您要监测的云服务提供商 (CSP),然后填写名称和描述以帮助标识此集成", "xpack.csp.fleetIntegration.configureCspmIntegrationDescription": "选择您要监测的云服务提供商 (CSP),然后填写名称和描述以帮助标识此集成", "xpack.csp.fleetIntegration.configureKspmIntegrationDescription": "选择您要监测的 Kubernetes 集群类型,然后填写名称和描述以帮助标识此集成", "xpack.csp.fleetIntegration.editWarning.calloutDescription": "为了更改您要监测的云服务提供商 (CSP),添加更多帐户或更改 CSPM 的部署位置(组织与单个帐户),请添加新的 CSPM 集成。", @@ -15274,10 +15273,6 @@ "xpack.csp.vulnerabilties.intergationNoInstalledEmptyPrompt.promptDescription": "使用我们的{lineBreak}云原生漏洞管理 (CNVM) 集成,{lineBreak}检测并缓解您的云资产中的潜在漏洞。{lineBreak} {learnMore}", "xpack.csp.vulnerabilties.intergationNoInstalledEmptyPrompt.promptTitle": "Elastic 的云原生{lineBreak}漏洞管理", "xpack.csp.vulnMgmtIntegration.awsOption.nameTitle": "Amazon Web Services", - "xpack.csp.vulnMgmtIntegration.azureOption.nameTitle": "Azure", - "xpack.csp.vulnMgmtIntegration.azureOption.tooltipContent": "即将推出", - "xpack.csp.vulnMgmtIntegration.gcpOption.nameTitle": "GCP", - "xpack.csp.vulnMgmtIntegration.gcpOption.tooltipContent": "即将推出", "xpack.customBranding.appName": "定制品牌", "xpack.customBranding.customizedLogoDescription": "替换徽标旁的文本。图像不大于 200 x 84 像素并采用透明背景时,图像的显示效果最佳。{subscriptionLink}", "xpack.customBranding.customizedLogoLabel": "组织名称",