diff --git a/x-pack/plugins/security_solution/common/constants.ts b/x-pack/plugins/security_solution/common/constants.ts index 087b7e54d0245..7bb433738b30a 100644 --- a/x-pack/plugins/security_solution/common/constants.ts +++ b/x-pack/plugins/security_solution/common/constants.ts @@ -78,17 +78,6 @@ export const DEFAULT_THREAT_INDEX_KEY = 'securitySolution:defaultThreatIndex' as export const DEFAULT_THREAT_INDEX_VALUE = ['logs-ti_*'] as const; export const DEFAULT_THREAT_MATCH_QUERY = '@timestamp >= "now-30d"' as const; -/** - * Cloud Posture indicies - */ - -export const CSP_KUBEBEAT_INDEX = 'kubebeat*'; - -export enum CloudPosturePage { - findings = 'csp_findings', - dashboard = 'csp_dashboard', -} - export enum SecurityPageName { administration = 'administration', alerts = 'alerts', @@ -125,7 +114,6 @@ export enum SecurityPageName { trustedApps = 'trusted_apps', ueba = 'ueba', uncommonProcesses = 'uncommon_processes', - cloud_posture = 'cloud_posture', } export const TIMELINES_PATH = '/timelines' as const; diff --git a/x-pack/plugins/security_solution/public/app/deep_links/index.ts b/x-pack/plugins/security_solution/public/app/deep_links/index.ts index f8be2cbabf8c9..545210c788e8c 100644 --- a/x-pack/plugins/security_solution/public/app/deep_links/index.ts +++ b/x-pack/plugins/security_solution/public/app/deep_links/index.ts @@ -10,13 +10,8 @@ import { i18n } from '@kbn/i18n'; import { get } from 'lodash'; import { LicenseType } from '../../../../licensing/common/types'; import { getCasesDeepLinks } from '../../../../cases/public'; -import { SecurityPageName, CloudPosturePage } from '../types'; -import { - AppDeepLink, - AppNavLinkStatus, - AppStatus, - Capabilities, -} from '../../../../../../src/core/public'; +import { SecurityPageName } from '../types'; +import { AppDeepLink, AppNavLinkStatus, Capabilities } from '../../../../../../src/core/public'; import { OVERVIEW, DETECT, @@ -349,13 +344,6 @@ export const securitySolutionsDeepLinks: SecuritySolutionDeepLink[] = [ }, ], }, - { - id: SecurityPageName.cloud_posture, - title: 'Cloud Posture', - path: '/csp', - navLinkStatus: AppNavLinkStatus.hidden, - keywords: [], - }, ]; /** diff --git a/x-pack/plugins/security_solution/public/app/home/home_navigations.ts b/x-pack/plugins/security_solution/public/app/home/home_navigations.ts index 5fbd62e975a41..de76a570312a5 100644 --- a/x-pack/plugins/security_solution/public/app/home/home_navigations.ts +++ b/x-pack/plugins/security_solution/public/app/home/home_navigations.ts @@ -10,7 +10,6 @@ import { SecurityNav, SecurityNavGroup, SecurityNavGroupKey, - NavTab, } from '../../common/components/navigation/types'; import { APP_OVERVIEW_PATH, @@ -27,11 +26,9 @@ import { APP_EVENT_FILTERS_PATH, APP_UEBA_PATH, SecurityPageName, - CloudPosturePage, APP_HOST_ISOLATION_EXCEPTIONS_PATH, } from '../../../common/constants'; - export const navTabs: SecurityNav = { [SecurityPageName.overview]: { id: SecurityPageName.overview, diff --git a/x-pack/plugins/security_solution/public/app/types.ts b/x-pack/plugins/security_solution/public/app/types.ts index 0667cbad1819f..52d69d7c4e7d9 100644 --- a/x-pack/plugins/security_solution/public/app/types.ts +++ b/x-pack/plugins/security_solution/public/app/types.ts @@ -35,7 +35,7 @@ import { Immutable } from '../../common/endpoint/types'; import { AppAction } from '../common/store/actions'; import { TimelineState } from '../timelines/store/timeline/types'; -export { SecurityPageName, CloudPosturePage } from '../../common/constants'; +export { SecurityPageName } from '../../common/constants'; export interface SecuritySubPluginStore { initialState: Record; diff --git a/x-pack/plugins/security_solution/public/cloud_posture/index.ts b/x-pack/plugins/security_solution/public/cloud_posture/index.ts deleted file mode 100644 index a373ac081c0c7..0000000000000 --- a/x-pack/plugins/security_solution/public/cloud_posture/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { Storage } from '../../../../../src/plugins/kibana_utils/public'; -import { CoreStart } from '../../../../../src/core/public'; -import { routes } from './routes'; -import { StartPlugins } from '../types'; -import { SecuritySubPlugin } from '../app/types'; - -export class CloudPosture { - public setup() {} - public start(storage: Storage, core: CoreStart, plugins: StartPlugins): SecuritySubPlugin { - return { - storageTimelines: { - timelineById: {}, - }, - routes, - }; - } -} diff --git a/x-pack/plugins/security_solution/public/cloud_posture/routes.tsx b/x-pack/plugins/security_solution/public/cloud_posture/routes.tsx deleted file mode 100644 index f98fd273ca709..0000000000000 --- a/x-pack/plugins/security_solution/public/cloud_posture/routes.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ -import React from 'react'; -import { RouteProps } from 'react-router-dom'; -import { useKibana } from '../common/lib/kibana'; - -const Routes = () => ; - -export const routes: RouteProps[] = [{ path: '/csp', render: Routes }]; - -const RedirectToCSP = () => { - const { navigateToApp } = useKibana().services?.application; - React.useEffect(() => { - navigateToApp('csp_root'); - }, [navigateToApp]); - - return null; -}; diff --git a/x-pack/plugins/security_solution/public/common/components/url_state/constants.ts b/x-pack/plugins/security_solution/public/common/components/url_state/constants.ts index e2d164fdcfe1a..3aca02dc420bf 100644 --- a/x-pack/plugins/security_solution/public/common/components/url_state/constants.ts +++ b/x-pack/plugins/security_solution/public/common/components/url_state/constants.ts @@ -35,5 +35,4 @@ export type UrlStateType = | 'overview' | 'rules' | 'timeline' - | 'ueba' - | 'cloud_posture'; + | 'ueba'; diff --git a/x-pack/plugins/security_solution/public/common/components/url_state/helpers.ts b/x-pack/plugins/security_solution/public/common/components/url_state/helpers.ts index f96f399c99772..559dff64eec4b 100644 --- a/x-pack/plugins/security_solution/public/common/components/url_state/helpers.ts +++ b/x-pack/plugins/security_solution/public/common/components/url_state/helpers.ts @@ -110,8 +110,6 @@ export const getUrlType = (pageName: string): UrlStateType => { return 'cases'; } else if (pageName === SecurityPageName.administration) { return 'administration'; - } else if (pageName === SecurityPageName.cloud_posture) { - return 'cloud_posture'; } return 'overview'; }; diff --git a/x-pack/plugins/security_solution/public/lazy_sub_plugins.tsx b/x-pack/plugins/security_solution/public/lazy_sub_plugins.tsx index de0cb160828d1..430c77b9422d8 100644 --- a/x-pack/plugins/security_solution/public/lazy_sub_plugins.tsx +++ b/x-pack/plugins/security_solution/public/lazy_sub_plugins.tsx @@ -23,11 +23,6 @@ import { Rules } from './rules'; import { Timelines } from './timelines'; import { Management } from './management'; -/** - * Temporary initial cloud posture FE - */ -import { CloudPosture } from './cloud_posture'; - /** * The classes used to instantiate the sub plugins. These are grouped into a single object for the sake of bundling them in a single dynamic import. */ @@ -42,6 +37,5 @@ const subPluginClasses = { Rules, Timelines, Management, - CloudPosture, }; export { subPluginClasses }; diff --git a/x-pack/plugins/security_solution/public/plugin.tsx b/x-pack/plugins/security_solution/public/plugin.tsx index d1b60712f36c2..d3a88004bc8dc 100644 --- a/x-pack/plugins/security_solution/public/plugin.tsx +++ b/x-pack/plugins/security_solution/public/plugin.tsx @@ -300,7 +300,6 @@ export class Plugin implements IPlugin; timelines: ReturnType; management: ReturnType; - cloud_posture: ReturnType; } diff --git a/x-pack/plugins/security_solution/server/routes/index.ts b/x-pack/plugins/security_solution/server/routes/index.ts index a9fbc6758d601..d7cc745847f31 100644 --- a/x-pack/plugins/security_solution/server/routes/index.ts +++ b/x-pack/plugins/security_solution/server/routes/index.ts @@ -160,6 +160,5 @@ export const initRoutes = ( // Sourcerer API to generate default pattern createSourcererDataViewRoute(router, getStartServices); - getSourcererDataViewRoute(router, getStartServices); };