Skip to content

Commit

Permalink
remove all code from security solution (elastic#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz authored Dec 27, 2021
1 parent eeb853b commit e3c2366
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 92 deletions.
12 changes: 0 additions & 12 deletions x-pack/plugins/security_solution/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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;
Expand Down
16 changes: 2 additions & 14 deletions x-pack/plugins/security_solution/public/app/deep_links/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -349,13 +344,6 @@ export const securitySolutionsDeepLinks: SecuritySolutionDeepLink[] = [
},
],
},
{
id: SecurityPageName.cloud_posture,
title: 'Cloud Posture',
path: '/csp',
navLinkStatus: AppNavLinkStatus.hidden,
keywords: [],
},
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
SecurityNav,
SecurityNavGroup,
SecurityNavGroupKey,
NavTab,
} from '../../common/components/navigation/types';
import {
APP_OVERVIEW_PATH,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/security_solution/public/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<K extends SecuritySubPluginKeyStore, T> {
initialState: Record<K, T>;
Expand Down
24 changes: 0 additions & 24 deletions x-pack/plugins/security_solution/public/cloud_posture/index.ts

This file was deleted.

22 changes: 0 additions & 22 deletions x-pack/plugins/security_solution/public/cloud_posture/routes.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ export type UrlStateType =
| 'overview'
| 'rules'
| 'timeline'
| 'ueba'
| 'cloud_posture';
| 'ueba';
Original file line number Diff line number Diff line change
Expand Up @@ -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';
};
Expand Down
6 changes: 0 additions & 6 deletions x-pack/plugins/security_solution/public/lazy_sub_plugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -42,6 +37,5 @@ const subPluginClasses = {
Rules,
Timelines,
Management,
CloudPosture,
};
export { subPluginClasses };
2 changes: 0 additions & 2 deletions x-pack/plugins/security_solution/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
overview: new subPluginClasses.Overview(),
timelines: new subPluginClasses.Timelines(),
management: new subPluginClasses.Management(),
cloud_posture: new subPluginClasses.CloudPosture(),
};
}
return this._subPlugins;
Expand All @@ -326,7 +325,6 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
ueba: subPlugins.ueba.start(storage),
timelines: subPlugins.timelines.start(),
management: subPlugins.management.start(core, plugins),
cloud_posture: subPlugins.cloud_posture.start(storage, core, plugins),
};
}
/**
Expand Down
3 changes: 0 additions & 3 deletions x-pack/plugins/security_solution/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import type { Ueba } from './ueba';
import type { LicensingPluginStart, LicensingPluginSetup } from '../../licensing/public';
import type { DashboardStart } from '../../../../src/plugins/dashboard/public';
import type { IndexPatternFieldEditorStart } from '../../../../src/plugins/data_view_field_editor/public';
import type { CloudPosture } from './cloud_posture';

export interface SetupPlugins {
home?: HomePublicPluginSetup;
Expand Down Expand Up @@ -102,7 +101,6 @@ export interface SubPlugins {
overview: Overview;
timelines: Timelines;
management: Management;
cloud_posture: CloudPosture;
}

// TODO: find a better way to defined these types
Expand All @@ -117,5 +115,4 @@ export interface StartedSubPlugins {
overview: ReturnType<Overview['start']>;
timelines: ReturnType<Timelines['start']>;
management: ReturnType<Management['start']>;
cloud_posture: ReturnType<CloudPosture['start']>;
}
1 change: 0 additions & 1 deletion x-pack/plugins/security_solution/server/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,5 @@ export const initRoutes = (

// Sourcerer API to generate default pattern
createSourcererDataViewRoute(router, getStartServices);

getSourcererDataViewRoute(router, getStartServices);
};

0 comments on commit e3c2366

Please sign in to comment.