Skip to content

Commit 45c76b8

Browse files
rename old siem kibana config to securitySolution (#69874)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 859871e commit 45c76b8

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

  • x-pack/plugins/security_solution/server

x-pack/plugins/security_solution/server/index.ts

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,41 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { PluginInitializerContext } from '../../../../src/core/server';
7+
import { PluginInitializerContext, PluginConfigDescriptor } from '../../../../src/core/server';
88
import { Plugin, PluginSetup, PluginStart } from './plugin';
99
import { configSchema, ConfigType } from './config';
10+
import { SIGNALS_INDEX_KEY } from '../common/constants';
1011

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

15-
export const config = { schema: configSchema };
16+
export const config: PluginConfigDescriptor<ConfigType> = {
17+
schema: configSchema,
18+
deprecations: ({ renameFromRoot }) => [
19+
renameFromRoot('xpack.siem.enabled', 'xpack.securitySolution.enabled'),
20+
renameFromRoot(
21+
'xpack.siem.maxRuleImportExportSize',
22+
'xpack.securitySolution.maxRuleImportExportSize'
23+
),
24+
renameFromRoot(
25+
'xpack.siem.maxRuleImportPayloadBytes',
26+
'xpack.securitySolution.maxRuleImportPayloadBytes'
27+
),
28+
renameFromRoot(
29+
'xpack.siem.maxTimelineImportExportSize',
30+
'xpack.securitySolution.maxTimelineImportExportSize'
31+
),
32+
renameFromRoot(
33+
'xpack.siem.maxTimelineImportPayloadBytes',
34+
'xpack.securitySolution.maxTimelineImportPayloadBytes'
35+
),
36+
renameFromRoot(
37+
`xpack.siem.${SIGNALS_INDEX_KEY}`,
38+
`xpack.securitySolution.${SIGNALS_INDEX_KEY}`
39+
),
40+
],
41+
};
1642

1743
export { ConfigType, Plugin, PluginSetup, PluginStart };
1844

0 commit comments

Comments
 (0)