-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Risk engine initialisation, update from legacy risk engine workflow a…
…nd status change (#162400) ## Risk engine initialisation, update from legacy risk engine workflow and status change https://github.com/elastic/kibana/assets/7609147/dfb75d4a-f447-4346-9760-d0e9685cce39 Green areas it is what was implemented <img width="1449" alt="Screenshot 2023-08-01 at 15 07 01" src="https://github.com/elastic/kibana/assets/7609147/4d87887f-1163-45eb-a4e9-a77a685f6565"> This pr has: - Upgrade workflow. If the user has a risk host or user transforms, we will show the panel with a call to action for the upgrade. - Introduce new Saved object to save the configuration of risk engine - API which is described bellow It required experiment enabled - **riskScoringRoutesEnabled** ## New API ### /engine/status #### GET Get the status of the Risk Engine ##### Description: Returns the status of both the legacy transform-based risk engine, as well as the new risk engine ##### Responses ```json { "legacy_risk_engine_status": "NOT_INSTALLED" , "ENABLED" , "risk_engine_status": "NOT_INSTALLED" , "ENABLED" , "DISABLED" } ``` ### /engine/init #### POST Initialize the Risk Engine ##### Description: Initializes the Risk Engine by creating the necessary indices and mappings, removing old transforms, creating saved object configuration ##### Responses ```json { "result": { "risk_engine_enabled": true, "risk_engine_resources_installed": true, "risk_engine_configuration_created": true, "legacy_risk_engine_disabled": true, "errors": [ "string" ] } } ``` ### /engine/enable #### POST Enable the Risk Engine ##### Description: Change saved object configuration and in the future here we will start task ### /engine/disable #### POST Disable the Risk Engine Change saved object configuration and in the future here we will stop task --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Ryland Herrick <[email protected]>
- Loading branch information
1 parent
0144696
commit 2bd52fc
Showing
48 changed files
with
2,498 additions
and
360 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.