Skip to content

Commit

Permalink
rename old siem kibana config to securitySolution (elastic#69874)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
XavierM and elasticmachine committed Jun 25, 2020
1 parent 859871e commit 45c76b8
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions x-pack/plugins/security_solution/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,41 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { PluginInitializerContext } from '../../../../src/core/server';
import { PluginInitializerContext, PluginConfigDescriptor } from '../../../../src/core/server';
import { Plugin, PluginSetup, PluginStart } from './plugin';
import { configSchema, ConfigType } from './config';
import { SIGNALS_INDEX_KEY } from '../common/constants';

export const plugin = (context: PluginInitializerContext) => {
return new Plugin(context);
};

export const config = { schema: configSchema };
export const config: PluginConfigDescriptor<ConfigType> = {
schema: configSchema,
deprecations: ({ renameFromRoot }) => [
renameFromRoot('xpack.siem.enabled', 'xpack.securitySolution.enabled'),
renameFromRoot(
'xpack.siem.maxRuleImportExportSize',
'xpack.securitySolution.maxRuleImportExportSize'
),
renameFromRoot(
'xpack.siem.maxRuleImportPayloadBytes',
'xpack.securitySolution.maxRuleImportPayloadBytes'
),
renameFromRoot(
'xpack.siem.maxTimelineImportExportSize',
'xpack.securitySolution.maxTimelineImportExportSize'
),
renameFromRoot(
'xpack.siem.maxTimelineImportPayloadBytes',
'xpack.securitySolution.maxTimelineImportPayloadBytes'
),
renameFromRoot(
`xpack.siem.${SIGNALS_INDEX_KEY}`,
`xpack.securitySolution.${SIGNALS_INDEX_KEY}`
),
],
};

export { ConfigType, Plugin, PluginSetup, PluginStart };

Expand Down

0 comments on commit 45c76b8

Please sign in to comment.