-
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.
[8.11] [Security Solution] [Elastic AI Assistant] Throw error if Know…
…ledge Base is enabled but ELSER is unavailable (#169330) (#169455) # Backport This will backport the following commits from `main` to `8.11`: - [[Security Solution] [Elastic AI Assistant] Throw error if Knowledge Base is enabled but ELSER is unavailable (#169330)](#169330) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Garrett Spong","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-19T20:34:39Z","message":"[Security Solution] [Elastic AI Assistant] Throw error if Knowledge Base is enabled but ELSER is unavailable (#169330)\n\n## Summary\r\n\r\nThis fixes the Knowledge Base UX a bit by throwing an error if somehow\r\nELSER has been disabled in the background, and instructs the user on how\r\nto resolve or to disable the Knowledge Base to continue.\r\n\r\nAdditionally, if ELSER is not available, we prevent the enabling of the\r\nKnowledge Base as to not provide a degraded experience when ELSER and\r\nthe ES|QL documentation is not available.\r\n\r\n\r\n<p align=\"center\">\r\n<img width=\"500\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2946766/e4d326fa-c996-43ad-9d1c-d76f7d16f916\"\r\n/>\r\n</p> \r\n\r\n> [!NOTE]\r\n> `isModelInstalled` logic has been updated to not just check the model\r\n`definition_status`, but to actually ensure that it's deployed by\r\nchecking to see that it is `started` and `fully_allocated`. This better\r\nguards ELSER availability as the previous check would return true if the\r\nmodel was just downloaded and not actually deployed.\r\n\r\n\r\n\r\nAlso resolves: https://github.com/elastic/kibana/issues/169403\r\n\r\n\r\n## Test Instructions\r\n\r\nAfter enabling the KB, disable the ELSER deployment in the `Trained\r\nModels` ML UI and then try using the assistant.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"60bb1f8da1f50e0cca42d4c73fc9c730e5c76a0a","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team: SecuritySolution","Feature:Elastic AI Assistant","v8.11.0","v8.12.0"],"number":169330,"url":"https://github.com/elastic/kibana/pull/169330","mergeCommit":{"message":"[Security Solution] [Elastic AI Assistant] Throw error if Knowledge Base is enabled but ELSER is unavailable (#169330)\n\n## Summary\r\n\r\nThis fixes the Knowledge Base UX a bit by throwing an error if somehow\r\nELSER has been disabled in the background, and instructs the user on how\r\nto resolve or to disable the Knowledge Base to continue.\r\n\r\nAdditionally, if ELSER is not available, we prevent the enabling of the\r\nKnowledge Base as to not provide a degraded experience when ELSER and\r\nthe ES|QL documentation is not available.\r\n\r\n\r\n<p align=\"center\">\r\n<img width=\"500\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2946766/e4d326fa-c996-43ad-9d1c-d76f7d16f916\"\r\n/>\r\n</p> \r\n\r\n> [!NOTE]\r\n> `isModelInstalled` logic has been updated to not just check the model\r\n`definition_status`, but to actually ensure that it's deployed by\r\nchecking to see that it is `started` and `fully_allocated`. This better\r\nguards ELSER availability as the previous check would return true if the\r\nmodel was just downloaded and not actually deployed.\r\n\r\n\r\n\r\nAlso resolves: https://github.com/elastic/kibana/issues/169403\r\n\r\n\r\n## Test Instructions\r\n\r\nAfter enabling the KB, disable the ELSER deployment in the `Trained\r\nModels` ML UI and then try using the assistant.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"60bb1f8da1f50e0cca42d4c73fc9c730e5c76a0a"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/169330","number":169330,"mergeCommit":{"message":"[Security Solution] [Elastic AI Assistant] Throw error if Knowledge Base is enabled but ELSER is unavailable (#169330)\n\n## Summary\r\n\r\nThis fixes the Knowledge Base UX a bit by throwing an error if somehow\r\nELSER has been disabled in the background, and instructs the user on how\r\nto resolve or to disable the Knowledge Base to continue.\r\n\r\nAdditionally, if ELSER is not available, we prevent the enabling of the\r\nKnowledge Base as to not provide a degraded experience when ELSER and\r\nthe ES|QL documentation is not available.\r\n\r\n\r\n<p align=\"center\">\r\n<img width=\"500\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2946766/e4d326fa-c996-43ad-9d1c-d76f7d16f916\"\r\n/>\r\n</p> \r\n\r\n> [!NOTE]\r\n> `isModelInstalled` logic has been updated to not just check the model\r\n`definition_status`, but to actually ensure that it's deployed by\r\nchecking to see that it is `started` and `fully_allocated`. This better\r\nguards ELSER availability as the previous check would return true if the\r\nmodel was just downloaded and not actually deployed.\r\n\r\n\r\n\r\nAlso resolves: https://github.com/elastic/kibana/issues/169403\r\n\r\n\r\n## Test Instructions\r\n\r\nAfter enabling the KB, disable the ELSER deployment in the `Trained\r\nModels` ML UI and then try using the assistant.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"60bb1f8da1f50e0cca42d4c73fc9c730e5c76a0a"}}]}] BACKPORT-->
- Loading branch information
Showing
9 changed files
with
175 additions
and
50 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
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