-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Alerting] migrates all remaining plugins to new platform (#64335)
Completes the migration of all Alerting Services plugins onto the Kibana Platform It includes: 1. Actions plugin 2. Alerting plugin 3. Task Manager plugin 4. Triggers UI plugin And touches the Uptime and Siem plugins as their use of the Task Manager relied on some of the legacy lifecycle to work (registering AlertTypes and Telemetry tasks after the Start stage has already began). The fix was simply to moves these registrations to the Setup stage.
- Loading branch information
Showing
53 changed files
with
587 additions
and
628 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { SavedObjectsServiceSetup } from 'kibana/server'; | ||
import mappings from './mappings.json'; | ||
import { EncryptedSavedObjectsPluginSetup } from '../../../encrypted_saved_objects/server'; | ||
|
||
export function setupSavedObjects( | ||
savedObjects: SavedObjectsServiceSetup, | ||
encryptedSavedObjects: EncryptedSavedObjectsPluginSetup | ||
) { | ||
savedObjects.registerType({ | ||
name: 'action', | ||
hidden: false, | ||
namespaceType: 'single', | ||
mappings: mappings.action, | ||
}); | ||
|
||
// Encrypted attributes | ||
// - `secrets` properties will be encrypted | ||
// - `config` will be included in AAD | ||
// - everything else excluded from AAD | ||
encryptedSavedObjects.registerType({ | ||
type: 'action', | ||
attributesToEncrypt: new Set(['secrets']), | ||
attributesToExcludeFromAAD: new Set(['name']), | ||
}); | ||
|
||
savedObjects.registerType({ | ||
name: 'action_task_params', | ||
hidden: false, | ||
namespaceType: 'single', | ||
mappings: mappings.action_task_params, | ||
}); | ||
encryptedSavedObjects.registerType({ | ||
type: 'action_task_params', | ||
attributesToEncrypt: new Set(['apiKey']), | ||
}); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { SavedObjectsServiceSetup } from 'kibana/server'; | ||
import mappings from './mappings.json'; | ||
import { EncryptedSavedObjectsPluginSetup } from '../../../encrypted_saved_objects/server'; | ||
|
||
export function setupSavedObjects( | ||
savedObjects: SavedObjectsServiceSetup, | ||
encryptedSavedObjects: EncryptedSavedObjectsPluginSetup | ||
) { | ||
savedObjects.registerType({ | ||
name: 'alert', | ||
hidden: false, | ||
namespaceType: 'single', | ||
mappings: mappings.alert, | ||
}); | ||
|
||
// Encrypted attributes | ||
encryptedSavedObjects.registerType({ | ||
type: 'alert', | ||
attributesToEncrypt: new Set(['apiKey']), | ||
attributesToExcludeFromAAD: new Set([ | ||
'scheduledTaskId', | ||
'muteAll', | ||
'mutedInstanceIds', | ||
'updatedBy', | ||
]), | ||
}); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.