From dee44c331c6c3a2ffa0988247dc44c5acff4cbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Bl=C3=A1zquez?= Date: Wed, 18 Dec 2024 17:55:58 +0100 Subject: [PATCH] [8.x] Revert backported AssetInventory plugin (revert #202827) (#204641) ## Summary Clean-up all "Asset Inventory" plugin code from the `8.x` branch. ### Motivation It was decided in the weekly meetings not to backport any work related to Asset Inventory because it's a new feature. However, this decision was made after I had already shipped the first PR that introduced all the minimal required boilerplate: - https://github.com/elastic/kibana/pull/202291 which was backported with: - https://github.com/elastic/kibana/pull/202827 I couldn't auto revert the merge commit because of this refactor PR that was merged in between: - https://github.com/elastic/kibana/pull/202862 So I'm deleting and reverting each change manually. ### Checklist - [x] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Risks No risk at all. --- .github/CODEOWNERS | 1 - docs/developer/plugin-list.asciidoc | 4 - package.json | 1 - packages/kbn-optimizer/limits.yml | 1 - tsconfig.base.json | 2 - .../plugins/asset_inventory/README.md | 13 -- .../plugins/asset_inventory/common/index.ts | 8 - .../plugins/asset_inventory/kibana.jsonc | 17 --- .../plugins/asset_inventory/package.json | 7 - .../asset_inventory/public/application.tsx | 24 --- .../asset_inventory/public/components/app.tsx | 38 ----- .../plugins/asset_inventory/public/index.ts | 14 -- .../plugins/asset_inventory/public/plugin.ts | 35 ----- .../plugins/asset_inventory/public/types.ts | 15 -- .../create_transforms/create_transforms.ts | 142 ------------------ .../plugins/asset_inventory/server/index.ts | 17 --- .../plugins/asset_inventory/server/plugin.ts | 63 -------- .../asset_inventory/server/routes/index.ts | 23 --- .../plugins/asset_inventory/server/types.ts | 10 -- .../plugins/asset_inventory/tsconfig.json | 23 --- yarn.lock | 4 - 21 files changed, 462 deletions(-) delete mode 100755 x-pack/solutions/security/plugins/asset_inventory/README.md delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/common/index.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/kibana.jsonc delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/package.json delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/public/application.tsx delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/public/components/app.tsx delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/public/index.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/public/plugin.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/public/types.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/server/create_transforms/create_transforms.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/server/index.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/server/plugin.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/server/routes/index.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/server/types.ts delete mode 100644 x-pack/solutions/security/plugins/asset_inventory/tsconfig.json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 501afc4df4e13..dc9a8e3887c80 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -52,7 +52,6 @@ packages/kbn-apm-types @elastic/obs-ux-infra_services-team packages/kbn-apm-utils @elastic/obs-ux-infra_services-team test/plugin_functional/plugins/app_link_test @elastic/kibana-core x-pack/test/usage_collection/plugins/application_usage_test @elastic/kibana-core -x-pack/solutions/security/plugins/asset_inventory @elastic/kibana-cloud-security-posture x-pack/test/security_api_integration/plugins/audit_log @elastic/kibana-security src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows packages/kbn-axe-config @elastic/kibana-qa diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 9da7cdbdceee8..60db19c0ca09f 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -470,10 +470,6 @@ The plugin exposes the static DefaultEditorController class to consume. |WARNING: Missing README. -|{kib-repo}blob/{branch}/x-pack/solutions/security/plugins/asset_inventory/README.md[assetInventory] -|Centralized asset inventory experience within the Elastic Security solution. A central place for users to view and manage all their assets from different environments. - - |{kib-repo}blob/{branch}/x-pack/plugins/banners/README.md[banners] |Allow to add a header banner that will be displayed on every page of the Kibana application diff --git a/package.json b/package.json index a6e653bd90f55..7464cea2fb9d0 100644 --- a/package.json +++ b/package.json @@ -191,7 +191,6 @@ "@kbn/apm-utils": "link:packages/kbn-apm-utils", "@kbn/app-link-test-plugin": "link:test/plugin_functional/plugins/app_link_test", "@kbn/application-usage-test-plugin": "link:x-pack/test/usage_collection/plugins/application_usage_test", - "@kbn/asset-inventory-plugin": "link:x-pack/solutions/security/plugins/asset_inventory", "@kbn/audit-log-plugin": "link:x-pack/test/security_api_integration/plugins/audit_log", "@kbn/avc-banner": "link:src/platform/packages/shared/kbn-avc-banner", "@kbn/banners-plugin": "link:x-pack/plugins/banners", diff --git a/packages/kbn-optimizer/limits.yml b/packages/kbn-optimizer/limits.yml index 9b68dd39e0d99..b522d6b712a59 100644 --- a/packages/kbn-optimizer/limits.yml +++ b/packages/kbn-optimizer/limits.yml @@ -5,7 +5,6 @@ pageLoadAssetSize: aiops: 18000 alerting: 106936 apm: 64385 - assetInventory: 18478 banners: 17946 bfetch: 22837 canvas: 29355 diff --git a/tsconfig.base.json b/tsconfig.base.json index 495bac33405ad..bd5b025bd6294 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -98,8 +98,6 @@ "@kbn/app-link-test-plugin/*": ["test/plugin_functional/plugins/app_link_test/*"], "@kbn/application-usage-test-plugin": ["x-pack/test/usage_collection/plugins/application_usage_test"], "@kbn/application-usage-test-plugin/*": ["x-pack/test/usage_collection/plugins/application_usage_test/*"], - "@kbn/asset-inventory-plugin": ["x-pack/solutions/security/plugins/asset_inventory"], - "@kbn/asset-inventory-plugin/*": ["x-pack/solutions/security/plugins/asset_inventory/*"], "@kbn/audit-log-plugin": ["x-pack/test/security_api_integration/plugins/audit_log"], "@kbn/audit-log-plugin/*": ["x-pack/test/security_api_integration/plugins/audit_log/*"], "@kbn/avc-banner": ["src/platform/packages/shared/kbn-avc-banner"], diff --git a/x-pack/solutions/security/plugins/asset_inventory/README.md b/x-pack/solutions/security/plugins/asset_inventory/README.md deleted file mode 100755 index e1dd9d4ac8900..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Asset Inventory Kibana Plugin - -Centralized asset inventory experience within the Elastic Security solution. A central place for users to view and manage all their assets from different environments. - ---- - -## Development - -See the [kibana contributing guide](https://github.com/elastic/kibana/blob/main/CONTRIBUTING.md) for instructions setting up your development environment. - -## Testing - -For general guidelines, read [Kibana Testing Guide](https://www.elastic.co/guide/en/kibana/current/development-tests.html) for more details diff --git a/x-pack/solutions/security/plugins/asset_inventory/common/index.ts b/x-pack/solutions/security/plugins/asset_inventory/common/index.ts deleted file mode 100644 index 9f5311be877cc..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/common/index.ts +++ /dev/null @@ -1,8 +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. - */ -export const PLUGIN_ID = 'assetInventory'; -export const PLUGIN_NAME = 'assetInventory'; diff --git a/x-pack/solutions/security/plugins/asset_inventory/kibana.jsonc b/x-pack/solutions/security/plugins/asset_inventory/kibana.jsonc deleted file mode 100644 index dbb813be7aa4e..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/kibana.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -{ - "type": "plugin", - "id": "@kbn/asset-inventory-plugin", - "owner": ["@elastic/kibana-cloud-security-posture"], - "group": "security", - "visibility": "private", - "description": "Centralized asset inventory experience within the Elastic Security solution. A central place for users to view and manage all their assets from different environments", - "plugin": { - "id": "assetInventory", - "browser": true, - "server": true, - "configPath": ["xpack", "assetInventory"], - "requiredPlugins": [], - "requiredBundles": [], - "optionalPlugins": [] - } -} diff --git a/x-pack/solutions/security/plugins/asset_inventory/package.json b/x-pack/solutions/security/plugins/asset_inventory/package.json deleted file mode 100644 index 7abfb7bf63378..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "author": "Elastic", - "name": "@kbn/asset-inventory-plugin", - "version": "1.0.0", - "private": true, - "license": "Elastic License 2.0" -} diff --git a/x-pack/solutions/security/plugins/asset_inventory/public/application.tsx b/x-pack/solutions/security/plugins/asset_inventory/public/application.tsx deleted file mode 100644 index f442f01d17f7c..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/public/application.tsx +++ /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 React from 'react'; -import ReactDOM from 'react-dom'; -import type { AppMountParameters, CoreStart } from '@kbn/core/public'; -import type { AppPluginStartDependencies } from './types'; -import { AssetInventoryApp } from './components/app'; - -export const renderApp = ( - { notifications, http }: CoreStart, - {}: AppPluginStartDependencies, - { appBasePath, element }: AppMountParameters -) => { - ReactDOM.render( - , - element - ); - - return () => ReactDOM.unmountComponentAtNode(element); -}; diff --git a/x-pack/solutions/security/plugins/asset_inventory/public/components/app.tsx b/x-pack/solutions/security/plugins/asset_inventory/public/components/app.tsx deleted file mode 100644 index 924091034353b..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/public/components/app.tsx +++ /dev/null @@ -1,38 +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 { FormattedMessage, I18nProvider } from '@kbn/i18n-react'; -import { BrowserRouter as Router } from '@kbn/shared-ux-router'; -import { EuiPageTemplate, EuiTitle } from '@elastic/eui'; -import type { CoreStart } from '@kbn/core/public'; - -interface AssetInventoryAppDeps { - basename: string; - notifications: CoreStart['notifications']; - http: CoreStart['http']; -} - -export const AssetInventoryApp = ({ basename }: AssetInventoryAppDeps) => { - return ( - - - <> - - - -

- -

-
-
- -
- -
-
- ); -}; diff --git a/x-pack/solutions/security/plugins/asset_inventory/public/index.ts b/x-pack/solutions/security/plugins/asset_inventory/public/index.ts deleted file mode 100644 index 269cab2ad181a..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/public/index.ts +++ /dev/null @@ -1,14 +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 { AssetInventoryPlugin } from './plugin'; - -// This exports static code and TypeScript types, -// as well as, Kibana Platform `plugin()` initializer. -export function plugin() { - return new AssetInventoryPlugin(); -} -export type { AssetInventoryPluginSetup, AssetInventoryPluginStart } from './types'; diff --git a/x-pack/solutions/security/plugins/asset_inventory/public/plugin.ts b/x-pack/solutions/security/plugins/asset_inventory/public/plugin.ts deleted file mode 100644 index fd2841f5b2335..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/public/plugin.ts +++ /dev/null @@ -1,35 +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 type { AppMountParameters, CoreSetup, CoreStart, Plugin } from '@kbn/core/public'; -import type { - AssetInventoryPluginSetup, - AssetInventoryPluginStart, - AppPluginStartDependencies, -} from './types'; - -export class AssetInventoryPlugin - implements Plugin -{ - public setup(core: CoreSetup): AssetInventoryPluginSetup { - return {}; - } - public start( - coreStart: CoreStart, - depsStart: AppPluginStartDependencies - ): AssetInventoryPluginStart { - return { - getAssetInventoryPage: async (params: AppMountParameters) => { - // Load application bundle - const { renderApp } = await import('./application'); - // Render the application - return renderApp(coreStart, depsStart as AppPluginStartDependencies, params); - }, - }; - } - - public stop() {} -} diff --git a/x-pack/solutions/security/plugins/asset_inventory/public/types.ts b/x-pack/solutions/security/plugins/asset_inventory/public/types.ts deleted file mode 100644 index a551b4d231c3d..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/public/types.ts +++ /dev/null @@ -1,15 +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. - */ - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface AssetInventoryPluginSetup {} - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface AssetInventoryPluginStart {} - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface AppPluginStartDependencies {} diff --git a/x-pack/solutions/security/plugins/asset_inventory/server/create_transforms/create_transforms.ts b/x-pack/solutions/security/plugins/asset_inventory/server/create_transforms/create_transforms.ts deleted file mode 100644 index 0d3d0e8f8e0c4..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/server/create_transforms/create_transforms.ts +++ /dev/null @@ -1,142 +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 { transformError } from '@kbn/securitysolution-es-utils'; -import { TransformPutTransformRequest } from '@elastic/elasticsearch/lib/api/types'; -import type { ElasticsearchClient, Logger } from '@kbn/core/server'; -import { errors } from '@elastic/elasticsearch'; - -// TODO: Move transforms to integration package -export const initializeTransforms = async ( - esClient: ElasticsearchClient, - logger: Logger -): Promise => { - // Deletes old assets from previous versions as part of upgrade process - await deletePreviousTransformsVersions(esClient, logger); - // TODO initialize transforms here - // await initializeTransform(esClient, , logger); -}; - -export const initializeTransform = async ( - esClient: ElasticsearchClient, - transform: TransformPutTransformRequest, - logger: Logger -) => { - const success = await createTransformIfNotExists(esClient, transform, logger); - - if (success) { - await startTransformIfNotStarted(esClient, transform.transform_id, logger); - } -}; - -/** - * Checks if a transform exists, And if not creates it - * - * @param transform - the transform to create. If a transform with the same transform_id already exists, nothing is created or updated. - * - * @return true if the transform exits or created, false otherwise. - */ -export const createTransformIfNotExists = async ( - esClient: ElasticsearchClient, - transform: TransformPutTransformRequest, - logger: Logger -) => { - try { - await esClient.transform.getTransform({ - transform_id: transform.transform_id, - }); - return true; - } catch (existErr) { - const existError = transformError(existErr); - if (existError.statusCode === 404) { - try { - await esClient.transform.putTransform(transform); - return true; - } catch (createErr) { - const createError = transformError(createErr); - logger.error( - `Failed to create transform ${transform.transform_id}: ${createError.message}` - ); - } - } else { - logger.error( - `Failed to check if transform ${transform.transform_id} exists: ${existError.message}` - ); - } - } - return false; -}; - -export const startTransformIfNotStarted = async ( - esClient: ElasticsearchClient, - transformId: string, - logger: Logger -) => { - try { - const transformStats = await esClient.transform.getTransformStats({ - transform_id: transformId, - }); - - if (transformStats.count <= 0) { - logger.error(`Failed starting transform ${transformId}: couldn't find transform`); - return; - } - - const fetchedTransformStats = transformStats.transforms[0]; - - // trying to restart the transform in case it comes to a full stop or failure - if (fetchedTransformStats.state === 'stopped' || fetchedTransformStats.state === 'failed') { - try { - return await esClient.transform.startTransform({ transform_id: transformId }); - } catch (startErr) { - const startError = transformError(startErr); - logger.error( - `Failed to start transform ${transformId}. Transform State: Transform State: ${fetchedTransformStats.state}. Error: ${startError.message}` - ); - } - } - - if (fetchedTransformStats.state === 'stopping' || fetchedTransformStats.state === 'aborting') { - logger.error( - `Not starting transform ${transformId} since it's state is: ${fetchedTransformStats.state}` - ); - } - } catch (statsErr) { - const statsError = transformError(statsErr); - logger.error(`Failed to check if transform ${transformId} is started: ${statsError.message}`); - } -}; - -const deletePreviousTransformsVersions = async (esClient: ElasticsearchClient, logger: Logger) => { - // TODO Concat all deprecated transforms versions - const deprecatedTransforms: string[] = []; - - for (const transform of deprecatedTransforms) { - const response = await deleteTransformSafe(esClient, logger, transform); - if (response) return; - } -}; - -const deleteTransformSafe = async ( - esClient: ElasticsearchClient, - logger: Logger, - name: string -): Promise => { - try { - await esClient.transform.deleteTransform({ transform_id: name, force: true }); - logger.info(`Deleted transform successfully [Name: ${name}]`); - return true; - } catch (e) { - if (e instanceof errors.ResponseError && e.statusCode === 404) { - logger.trace(`Transform not exists [Name: ${name}]`); - return false; - } else { - logger.error(`Failed to delete transform [Name: ${name}]`); - logger.error(e); - return false; - } - } -}; diff --git a/x-pack/solutions/security/plugins/asset_inventory/server/index.ts b/x-pack/solutions/security/plugins/asset_inventory/server/index.ts deleted file mode 100644 index 6306618078898..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/server/index.ts +++ /dev/null @@ -1,17 +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 type { PluginInitializerContext } from '@kbn/core/server'; - -// This exports static code and TypeScript types, -// as well as, Kibana Platform `plugin()` initializer. - -export async function plugin(initializerContext: PluginInitializerContext) { - const { AssetInventoryPlugin } = await import('./plugin'); - return new AssetInventoryPlugin(initializerContext); -} - -export type { AssetInventoryPluginSetup, AssetInventoryPluginStart } from './types'; diff --git a/x-pack/solutions/security/plugins/asset_inventory/server/plugin.ts b/x-pack/solutions/security/plugins/asset_inventory/server/plugin.ts deleted file mode 100644 index 3f35991c379d5..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/server/plugin.ts +++ /dev/null @@ -1,63 +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 type { - PluginInitializerContext, - CoreSetup, - CoreStart, - Plugin, - Logger, -} from '@kbn/core/server'; - -import type { AssetInventoryPluginSetup, AssetInventoryPluginStart } from './types'; -import { defineRoutes } from './routes'; -// TODO Uncomment this line when initialize() is enabled -// import { initializeTransforms } from './create_transforms/create_transforms'; - -export class AssetInventoryPlugin - implements Plugin -{ - private readonly logger: Logger; - - // TODO Uncomment this line when initialize() is enabled - // private isInitialized: boolean = false; - - constructor(initializerContext: PluginInitializerContext) { - this.logger = initializerContext.logger.get(); - } - - public setup(core: CoreSetup) { - this.logger.debug('assetInventory: Setup'); - const router = core.http.createRouter(); - - // Register server side APIs - defineRoutes(router); - - return {}; - } - - public start(core: CoreStart) { - this.logger.debug('assetInventory: Started'); - - // TODO Invoke initialize() when it's due - // this.initialize(core).catch(() => {}); - - return {}; - } - - public stop() {} - - /** - * Initialization is idempotent and required for (re)creating indices and transforms. - */ - // TODO Uncomment these lines when initialize() is enabled - // async initialize(core: CoreStart): Promise { - // this.logger.debug('initialize'); - // const esClient = core.elasticsearch.client.asInternalUser; - // await initializeTransforms(esClient, this.logger); - // this.isInitialized = true; - // } -} diff --git a/x-pack/solutions/security/plugins/asset_inventory/server/routes/index.ts b/x-pack/solutions/security/plugins/asset_inventory/server/routes/index.ts deleted file mode 100644 index f577bfa19f719..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/server/routes/index.ts +++ /dev/null @@ -1,23 +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 type { IRouter } from '@kbn/core/server'; - -export function defineRoutes(router: IRouter) { - router.get( - { - path: '/api/asset_inventory/example', - validate: false, - }, - async (context, request, response) => { - return response.ok({ - body: { - time: new Date().toISOString(), - }, - }); - } - ); -} diff --git a/x-pack/solutions/security/plugins/asset_inventory/server/types.ts b/x-pack/solutions/security/plugins/asset_inventory/server/types.ts deleted file mode 100644 index 1d9380e8514f8..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/server/types.ts +++ /dev/null @@ -1,10 +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. - */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface AssetInventoryPluginSetup {} -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface AssetInventoryPluginStart {} diff --git a/x-pack/solutions/security/plugins/asset_inventory/tsconfig.json b/x-pack/solutions/security/plugins/asset_inventory/tsconfig.json deleted file mode 100644 index b733fc545be25..0000000000000 --- a/x-pack/solutions/security/plugins/asset_inventory/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "../../../../../tsconfig.base.json", - "compilerOptions": { - "outDir": "target/types" - }, - "include": [ - "common/**/*.ts", - "common/**/*.json", - "public/**/*.ts", - "public/**/*.tsx", - "public/**/*.json", - "server/**/*.ts", - "server/**/*.json", - "../../../../../typings/**/*" - ], - "exclude": ["target/**/*"], - "kbn_references": [ - "@kbn/core", - "@kbn/i18n-react", - "@kbn/shared-ux-router", - "@kbn/securitysolution-es-utils" - ] -} diff --git a/yarn.lock b/yarn.lock index 1128cbb7aef55..d5a2e1fac2813 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4003,10 +4003,6 @@ version "0.0.0" uid "" -"@kbn/asset-inventory-plugin@link:x-pack/solutions/security/plugins/asset_inventory": - version "0.0.0" - uid "" - "@kbn/audit-log-plugin@link:x-pack/test/security_api_integration/plugins/audit_log": version "0.0.0" uid ""