[8.19] [Security Solution] Fix race condition when Defend is installed before rules package (#222200)#224193
Merged
kibanamachine merged 1 commit intoelastic:8.19from Jun 17, 2025
Conversation
…e rules package (elastic#222200) ## Summary Fixes a race condition where the Elastic Defend rule is installed before the rules package becomes available, resulting in the following error: ``` [2025-05-29T10:40:00.066-04:00][ERROR][plugins.securitySolution.endpointFleetExtension] Unable to find Elastic Defend rule in the prebuilt rule assets (rule_id: 9a1a2dae-0b5f-4c3d-8305-a268d404c306) ``` ### Steps to Reproduce 1. Start with a clean Kibana instance with no rules package installed. 2. Navigate directly to the Integrations page (without visiting any Security Solution pages, which would trigger rules package bootstrapping), and install the Elastic Defend integration. 3. Observe the `Unable to find Elastic Defend rule in the prebuilt rule assets` error in the Kibana logs. This race condition appears to have existed for some time but was surfaced more clearly due to the recently added warning when the Defend rule cannot be installed. (cherry picked from commit c513625)
Contributor
💚 Build Succeeded
Metrics [docs]
cc @xcrzx |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.19:Questions ?
Please refer to the Backport tool documentation