This issue summarizes the steps required to implement the import and export of rules and connectors in order to support the impending removal of legacy multi-tenancy. Import and export will occur from the saved object management page, so for this issue, we will not be enforcing RBAC restrictions on the rules and connectors. This will not preclude us from moving this functionality to the rule management page in the future and adding RBAC restrictions.
The proposed workflow will be to export and import rules and connectors in a disabled state, with any api key or secrets information nullified. After import, it will be up to the user to re-enable rules and connectors, with UX to prompt them to enter any required secrets for connectors.
[x] Alerting changes to handle disabled connectors #94128
2. Import/export of rules from saved objects management page
[x] Enabling export of rules and connectors #94151
[x] Enabling import of rules and connectors #94152
2021/05/13 Update
There is currently a bug with the SO export process that prevents connectors from being exported correctly when they are exported as part of a rule reference:
[x] Export hooks are not called when exporting referenced saved objects #100043
2021/07/01 Update
Import/export of rules and connectors has been merged into 7.14, with the caveat that security and stack monitoring rules are excluded from the export. We have the following issues to track the progress of aligning security and stack monitoring rule export with the framework export:
This issue summarizes the steps required to implement the import and export of rules and connectors in order to support the impending removal of legacy multi-tenancy. Import and export will occur from the saved object management page, so for this issue, we will not be enforcing RBAC restrictions on the rules and connectors. This will not preclude us from moving this functionality to the rule management page in the future and adding RBAC restrictions.
The proposed workflow will be to export and import rules and connectors in a disabled state, with any api key or secrets information nullified. After import, it will be up to the user to re-enable rules and connectors, with UX to prompt them to enter any required secrets for connectors.
Implementation steps
1. Add concept of disabled connectors
2. Import/export of rules from saved objects management page
2021/05/13 Update
There is currently a bug with the SO export process that prevents connectors from being exported correctly when they are exported as part of a rule reference:
2021/07/01 Update
Import/export of rules and connectors has been merged into 7.14, with the caveat that security and stack monitoring rules are excluded from the export. We have the following issues to track the progress of aligning security and stack monitoring rule export with the framework export: