From d82b7da14c80c28e5ea8dd03090fc94826dcf95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Bl=C3=A1zquez?= Date: Wed, 20 Nov 2024 17:30:57 +0100 Subject: [PATCH] Remove Container Workload Protection link from Assets page (#200895) ## Summary Closes https://github.com/elastic/security-team/issues/10741. As the name suggests, it simply removes the link to the "Container Workload Protection" link from the Cloud section in the Assets page. The Cloud section is kept though, since the screenshot in the ticket doesn't highlight it. ### Testing > [!NOTE] > Note this page is only accessible in Serverless. Authenticate to Docker Registry with ```bash docker login -u albertoblaz -p docker.elastic.co ``` Then run ES with ```bash yarn es serverless --projectType security --kill ``` Alternatively, run Kibana with ```bash yarn serverless-security ``` ### Screenshot Link removed, but Cloud section is kept:
Before before
After Screenshot 2024-11-20 at 12 05 01
### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] The PR description includes the appropriate Release Notes section, and the correct `release_node:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --- .../solution_navigation/links/sections/assets_links.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/security_solution/public/app/solution_navigation/links/sections/assets_links.ts b/x-pack/plugins/security_solution/public/app/solution_navigation/links/sections/assets_links.ts index f4ae848beb25d..c77e0fe7a03e7 100644 --- a/x-pack/plugins/security_solution/public/app/solution_navigation/links/sections/assets_links.ts +++ b/x-pack/plugins/security_solution/public/app/solution_navigation/links/sections/assets_links.ts @@ -34,7 +34,7 @@ const assetsCloudDefendAppLink: LinkItem = { landingIcon: IconEcctlLazy, isBeta: true, hideTimeline: true, - links: [], // cloudDefendPolicies link is added in createAssetsLinkFromManage + links: [], }; export const createAssetsLinkFromManage = (manageLink: LinkItem): LinkItem => { @@ -54,13 +54,7 @@ export const createAssetsLinkFromManage = (manageLink: LinkItem): LinkItem => { assetsSubLinks.push({ ...endpointsLink, links: endpointsSubLinks }); } - const cloudPoliciesLink = manageLink.links?.find( - ({ id }) => id === SecurityPageName.cloudDefendPolicies - ); - if (cloudPoliciesLink) { - // Add cloud defend policies link as cloud defend sub link - assetsSubLinks.push({ ...assetsCloudDefendAppLink, links: [cloudPoliciesLink] }); - } + assetsSubLinks.push(assetsCloudDefendAppLink); return { ...assetsAppLink,