Skip to content

Commit 411816c

Browse files
[Osquery] Add packs (elastic#107345)
1 parent 672b592 commit 411816c

File tree

161 files changed

+3621
-4396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+3621
-4396
lines changed

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1582,8 +1582,8 @@ module.exports = {
15821582
plugins: ['react', '@typescript-eslint'],
15831583
files: ['x-pack/plugins/osquery/**/*.{js,mjs,ts,tsx}'],
15841584
rules: {
1585-
// 'arrow-body-style': ['error', 'as-needed'],
1586-
// 'prefer-arrow-callback': 'error',
1585+
'arrow-body-style': ['error', 'as-needed'],
1586+
'prefer-arrow-callback': 'error',
15871587
'no-unused-vars': 'off',
15881588
'react/prop-types': 'off',
15891589
'@typescript-eslint/explicit-module-boundary-types': 'off',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
"react-moment-proptypes": "^1.7.0",
336336
"react-monaco-editor": "^0.41.2",
337337
"react-popper-tooltip": "^2.10.1",
338-
"react-query": "^3.21.1",
338+
"react-query": "^3.27.0",
339339
"react-redux": "^7.2.0",
340340
"react-resizable": "^1.7.5",
341341
"react-resize-detector": "^4.2.0",

src/core/server/saved_objects/migrationsv2/integration_tests/type_registrations.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const previouslyRegisteredTypes = [
7070
'ml-module',
7171
'ml-telemetry',
7272
'monitoring-telemetry',
73+
'osquery-pack',
7374
'osquery-saved-query',
7475
'osquery-usage-metric',
7576
'osquery-manager-usage-metric',

x-pack/plugins/fleet/server/plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ import {
7979
getAgentById,
8080
} from './services/agents';
8181
import { registerFleetUsageCollector } from './collectors/register';
82-
import { getInstallation } from './services/epm/packages';
82+
import { getInstallation, ensureInstalledPackage } from './services/epm/packages';
8383
import { makeRouterEnforcingSuperuser } from './routes/security';
8484
import { startFleetServerSetup } from './services/fleet_server';
8585
import { FleetArtifactsClient } from './services/artifacts';
@@ -306,6 +306,7 @@ export class FleetPlugin
306306
esIndexPatternService: new ESIndexPatternSavedObjectService(),
307307
packageService: {
308308
getInstallation,
309+
ensureInstalledPackage,
309310
},
310311
agentService: {
311312
getAgent: getAgentById,

x-pack/plugins/fleet/server/services/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { GetAgentStatusResponse } from '../../common';
1515
import type { getAgentById, getAgentsByKuery } from './agents';
1616
import type { agentPolicyService } from './agent_policy';
1717
import * as settingsService from './settings';
18-
import type { getInstallation } from './epm/packages';
18+
import type { getInstallation, ensureInstalledPackage } from './epm/packages';
1919

2020
export { ESIndexPatternSavedObjectService } from './es_index_pattern';
2121
export { getRegistryUrl } from './epm/registry/registry_url';
@@ -37,6 +37,7 @@ export interface ESIndexPatternService {
3737

3838
export interface PackageService {
3939
getInstallation: typeof getInstallation;
40+
ensureInstalledPackage: typeof ensureInstalledPackage;
4041
}
4142

4243
/**

x-pack/plugins/osquery/common/exact_check.test.ts

-177
This file was deleted.

x-pack/plugins/osquery/common/exact_check.ts

-94
This file was deleted.

0 commit comments

Comments
 (0)