-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Alerting] Rules are storing actions using predefined connectors in references array #109247
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
We will need to update the create/update behavior in the rules client to not store pre-defined connector IDs in the references array and also write a migration to fix previous rules. |
One side effect of removing preconfigured connectors from being stored in the references array is that when connectors are retrieved using kibana/x-pack/plugins/actions/server/actions_client.ts Lines 536 to 590 in 92ec225
If we're not storing preconfigured connector IDs in the references array, their |
Currently, when rules are created/updated, the connector IDs for their associated actions are extracted and stored in the SO references array. This is being done regardless of whether the connector is predefined or not. With the upcoming changes to make rules and connectors share-capable, all the IDs in the references array for SOs in a non-default space will be re-generated. This means the IDs for pre-defined connectors will be updated, even though they should not be, and the link between rule action and predefined connector will be lost.
Example Rule prior to migration:
and after migration to share-capable:
Note that the ID for reference entry
action_0
has changed frompreconfigured-server-log
toa3334f61-dd79-5ecd-9788-76a9a69dfd99
. When this rule tries to execute actions post-migration, it will fail with a saved object not found error when trying to retrieve the connector fora3334f61-dd79-5ecd-9788-76a9a69dfd99
.The text was updated successfully, but these errors were encountered: