[Security Solutions] Makes legacy actions/notification system, legacy action status, and exception lists multiple space shareable (#115427)

## Summary

See https://github.com/elastic/kibana/issues/114548

Makes the following saved objects multiple-isolated:
* siem-detection-engine-rule-status
* exception-list
* siem-detection-engine-rule-actions

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
This commit is contained in:
Frank Hassanabad 2021-10-18 22:37:00 -06:00 committed by GitHub
parent fd0fc77062
commit e53f4d2f28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -177,11 +177,12 @@ const combinedMappings: SavedObjectsType['mappings'] = {
};
export const exceptionListType: SavedObjectsType = {
convertToMultiNamespaceTypeVersion: '8.0.0',
hidden: false,
mappings: combinedMappings,
migrations,
name: exceptionListSavedObjectType,
namespaceType: 'single',
namespaceType: 'multiple-isolated',
};
export const exceptionListAgnosticType: SavedObjectsType = {

View file

@ -59,9 +59,10 @@ const legacyRuleActionsSavedObjectMappings: SavedObjectsType['mappings'] = {
* @deprecated Remove this once we no longer need legacy migrations for rule actions (8.0.0)
*/
export const legacyType: SavedObjectsType = {
convertToMultiNamespaceTypeVersion: '8.0.0',
name: legacyRuleActionsSavedObjectType,
hidden: false,
namespaceType: 'single',
namespaceType: 'multiple-isolated',
mappings: legacyRuleActionsSavedObjectMappings,
migrations: legacyRuleActionsSavedObjectMigration,
};

View file

@ -65,9 +65,10 @@ export const ruleStatusSavedObjectMappings: SavedObjectsType['mappings'] = {
* @deprecated Remove this once we've fully migrated to event-log and no longer require addition status SO (8.x)
*/
export const legacyRuleStatusType: SavedObjectsType = {
convertToMultiNamespaceTypeVersion: '8.0.0',
name: legacyRuleStatusSavedObjectType,
hidden: false,
namespaceType: 'single',
namespaceType: 'multiple-isolated',
mappings: ruleStatusSavedObjectMappings,
migrations: legacyRuleStatusSavedObjectMigration,
};