[Ingest Manager] prevent possible race conditions when installing/update packages from multiple requests #75810
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:SecurityAdmin
Security Solution administration feature
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
Team:Defend Workflows
“EDR Workflows” sub-team of Security Solution
Team:Fleet
Team label for Observability Data Collection Fleet team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
v7.11.0
Now that we are tracking the installation/update process in the saved object, we should not try to install/update a package if its currently installing. For example users from different kibana instances trying to update a package or accidentally posting directly to the endpoint twice. This could cause some unexpected behaviour and it would be good to guard against this scenario. We could check the status and return a message that the package is already currently installing or updating. @ruflin mentioned that it might not be reliable to read from the saved object whether something is installing as it could be delayed after writing. Some research needs to be done to make sure this is a viable solution.
This already exists in the UI where we block the install button while its installing, but it doesnt prevent it from happening with multiple kibana instances or through the api.
Would need to be mindful of the scenario that the package is stuck installing but it was because of a kibana crash, that we keep the ability to reinstall or reupdate.
The text was updated successfully, but these errors were encountered: