Skip to content

Commit

Permalink
[Osquery] Add packs (#107345)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski authored Oct 18, 2021
1 parent 672b592 commit 411816c
Show file tree
Hide file tree
Showing 161 changed files with 3,621 additions and 4,396 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1582,8 +1582,8 @@ module.exports = {
plugins: ['react', '@typescript-eslint'],
files: ['x-pack/plugins/osquery/**/*.{js,mjs,ts,tsx}'],
rules: {
// 'arrow-body-style': ['error', 'as-needed'],
// 'prefer-arrow-callback': 'error',
'arrow-body-style': ['error', 'as-needed'],
'prefer-arrow-callback': 'error',
'no-unused-vars': 'off',
'react/prop-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"react-moment-proptypes": "^1.7.0",
"react-monaco-editor": "^0.41.2",
"react-popper-tooltip": "^2.10.1",
"react-query": "^3.21.1",
"react-query": "^3.27.0",
"react-redux": "^7.2.0",
"react-resizable": "^1.7.5",
"react-resize-detector": "^4.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const previouslyRegisteredTypes = [
'ml-module',
'ml-telemetry',
'monitoring-telemetry',
'osquery-pack',
'osquery-saved-query',
'osquery-usage-metric',
'osquery-manager-usage-metric',
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugins/fleet/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import {
getAgentById,
} from './services/agents';
import { registerFleetUsageCollector } from './collectors/register';
import { getInstallation } from './services/epm/packages';
import { getInstallation, ensureInstalledPackage } from './services/epm/packages';
import { makeRouterEnforcingSuperuser } from './routes/security';
import { startFleetServerSetup } from './services/fleet_server';
import { FleetArtifactsClient } from './services/artifacts';
Expand Down Expand Up @@ -306,6 +306,7 @@ export class FleetPlugin
esIndexPatternService: new ESIndexPatternSavedObjectService(),
packageService: {
getInstallation,
ensureInstalledPackage,
},
agentService: {
getAgent: getAgentById,
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugins/fleet/server/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type { GetAgentStatusResponse } from '../../common';
import type { getAgentById, getAgentsByKuery } from './agents';
import type { agentPolicyService } from './agent_policy';
import * as settingsService from './settings';
import type { getInstallation } from './epm/packages';
import type { getInstallation, ensureInstalledPackage } from './epm/packages';

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

export interface PackageService {
getInstallation: typeof getInstallation;
ensureInstalledPackage: typeof ensureInstalledPackage;
}

/**
Expand Down
177 changes: 0 additions & 177 deletions x-pack/plugins/osquery/common/exact_check.test.ts

This file was deleted.

94 changes: 0 additions & 94 deletions x-pack/plugins/osquery/common/exact_check.ts

This file was deleted.

Loading

0 comments on commit 411816c

Please sign in to comment.