Skip to content

Commit

Permalink
Untangle osquery-plugin deps issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoldevila committed Nov 21, 2024
1 parent 09d2e8f commit 68d97f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2000,9 +2000,6 @@ module.exports = {
'src/cli_setup/**', // is importing "@kbn/interactive-setup-plugin" (platform/private)
'src/dev/build/tasks/install_chromium.ts', // is importing "@kbn/screenshotting-plugin" (platform/private)

// @kbn/osquery-plugin could be categorised as Security, but @kbn/infra-plugin (observability) depends on it!
'x-pack/plugins/osquery/**',

// For now, we keep the exception to let tests depend on anythying.
// Ideally, we need to classify the solution specific ones to reduce CI times
'test/**',
Expand Down
4 changes: 3 additions & 1 deletion packages/kbn-osquery-io-ts-types/kibana.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"type": "shared-common",
"id": "@kbn/osquery-io-ts-types",
"owner": "@elastic/security-asset-management"
"owner": "@elastic/security-asset-management",
"group": "security",
"visibility": "private"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import type { EmbeddableStart } from '@kbn/embeddable-plugin/public';
import type { IStorageWrapper } from '@kbn/kibana-utils-plugin/public';
import type { LensPublicStart } from '@kbn/lens-plugin/public';
import type { ObservabilitySharedPluginStart } from '@kbn/observability-shared-plugin/public';
import type { OsqueryPluginStart } from '@kbn/osquery-plugin/public';
import { ALERT_GROUP, ALERT_RULE_PARAMETERS } from '@kbn/rule-data-utils';
import type { SharePluginStart } from '@kbn/share-plugin/public';
import type { SpacesPluginStart } from '@kbn/spaces-plugin/public';
Expand Down Expand Up @@ -72,7 +71,6 @@ export interface InfraClientStartDeps {
lens: LensPublicStart;
observability: ObservabilityPublicStart;
observabilityShared: ObservabilitySharedPluginStart;
osquery?: OsqueryPluginStart;
share: SharePluginStart;
spaces: SpacesPluginStart;
storage: IStorageWrapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"@kbn/discover-plugin",
"@kbn/embeddable-plugin",
"@kbn/lens-plugin",
"@kbn/osquery-plugin",
"@kbn/ui-actions-plugin",
"@kbn/unified-search-plugin",
"@kbn/lens-embeddable-utils",
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/osquery/kibana.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"type": "plugin",
"id": "@kbn/osquery-plugin",
"owner": "@elastic/security-defend-workflows",
"group": "security",
"visibility": "private",
"plugin": {
"id": "osquery",
"server": true,
Expand Down

0 comments on commit 68d97f5

Please sign in to comment.