[AI4DSOC] Add possibility to disable Stack Rules, Rules Settings and Maintenance window based on Serverless Tier#214586
Conversation
|
/ci |
|
/ci |
|
/ci |
# Conflicts: # config/serverless.security.search_ai_lake.yml
|
/ci |
| xpack.alerting.maintenanceWindow.enabled: false | ||
| xpack.alerting.rulesSettings.enabled: false |
There was a problem hiding this comment.
note: If I understand correctly these two entries don't disable plugins, they look more like feature flags of the alerting plugin that's enabled, so maybe you should place them under something other than the ## Disable plugins section?
I know we don't do this frequently, but it'd super helpful to future readers if the comments in the config file would clarify why exactly you set what you set.
There was a problem hiding this comment.
Hmm, do you mean something like ## Disable features next to plugins? Since these 2 are part of a plugin's features and not a plugin itself?
|
@cnasikas I'm wondering a couple things regarding not registering the feature:
@tomsonpl - could you try using some of the mw routes with a Kibana instance with these features disabled to see what the results are? They aren't doc'd but you can find them under |
|
Hey @pmuellr thanks for your comment, these are totally valid concerns. I tested API routes to create a new MW: which returned a validation error, so the route is registered anyway - my hope was that the routes are not being registered. When I enter |
…e-alerting-features
|
I am in the process of backporting my PR into |
|
Starting backport for target branches: 8.19 |
|
Starting backport for target branches: 8.19 |
|
Hey, thanks for raising this! I looked for some more detailed information on what should be merged, and I think you're right, in the end this one should be backported. |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
1 similar comment
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
|
I created a backport manually where I kept all the alerting code changes, but did not include the AI SOC parts. Since the functionality is dependent on other PRs, not merged to 8.19. |
…Maintenance window based on Serverless Tier (elastic#214586) (cherry picked from commit 6356f2c) # Conflicts: # .buildkite/ftr_platform_stateful_configs.yml # config/serverless.security.search_ai_lake.yml # src/platform/test/plugin_functional/test_suites/core_plugins/rendering.ts # x-pack/platform/plugins/shared/alerting/server/config.test.ts # x-pack/platform/plugins/shared/alerting/server/config.ts # x-pack/platform/plugins/shared/alerting/server/index.ts # x-pack/test/security_solution_cypress/cypress/e2e/ai4dsoc/capabilities/access.cy.ts # x-pack/test/security_solution_cypress/cypress/e2e/ai4dsoc/constants.ts # x-pack/test/security_solution_cypress/cypress/e2e/ai4dsoc/navigation/navigation.cy.ts # x-pack/test/security_solution_cypress/cypress/urls/navigation.ts
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…Maintenance window based on Serverless Tier (elastic#214586)
…nanceWindow capability (elastic#218999) ## Summary This PR fixes an issue with the ResponseOps alerts table not handling the `maintenanceWindow` capability being `undefined`. In the AI4DSOC effort, [we recently disabled](elastic#214586) the `maintenanceWindow` capability which cause the `useBulkGetMaintenanceWindowsQuery` hook to crash. Current behavior https://github.com/user-attachments/assets/8ab8c97f-04a0-45cb-95e7-cc9114e87190 Fixed behavior https://github.com/user-attachments/assets/0749bda3-7838-47b7-a65b-5c9b6a92a245 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios relates to elastic/security-team#11973 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…Maintenance window based on Serverless Tier (elastic#214586) (cherry picked from commit 6356f2c) # Conflicts: # .buildkite/ftr_platform_stateful_configs.yml # config/serverless.security.search_ai_lake.yml # src/platform/test/plugin_functional/test_suites/core_plugins/rendering.ts # x-pack/platform/plugins/shared/alerting/server/config.test.ts # x-pack/platform/plugins/shared/alerting/server/config.ts # x-pack/platform/plugins/shared/alerting/server/index.ts # x-pack/platform/plugins/shared/triggers_actions_ui/public/plugin.ts # x-pack/test/security_solution_cypress/cypress/e2e/ai4dsoc/capabilities/access.cy.ts # x-pack/test/security_solution_cypress/cypress/e2e/ai4dsoc/constants.ts # x-pack/test/security_solution_cypress/cypress/e2e/ai4dsoc/navigation/navigation.cy.ts # x-pack/test/security_solution_cypress/cypress/urls/navigation.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…nanceWindow capability (elastic#218999) ## Summary This PR fixes an issue with the ResponseOps alerts table not handling the `maintenanceWindow` capability being `undefined`. In the AI4DSOC effort, [we recently disabled](elastic#214586) the `maintenanceWindow` capability which cause the `useBulkGetMaintenanceWindowsQuery` hook to crash. Current behavior https://github.com/user-attachments/assets/8ab8c97f-04a0-45cb-95e7-cc9114e87190 Fixed behavior https://github.com/user-attachments/assets/0749bda3-7838-47b7-a65b-5c9b6a92a245 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios relates to elastic/security-team#11973 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 23ad755)
…nanceWindow capability (elastic#218999) ## Summary This PR fixes an issue with the ResponseOps alerts table not handling the `maintenanceWindow` capability being `undefined`. In the AI4DSOC effort, [we recently disabled](elastic#214586) the `maintenanceWindow` capability which cause the `useBulkGetMaintenanceWindowsQuery` hook to crash. Current behavior https://github.com/user-attachments/assets/8ab8c97f-04a0-45cb-95e7-cc9114e87190 Fixed behavior https://github.com/user-attachments/assets/0749bda3-7838-47b7-a65b-5c9b6a92a245 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios relates to elastic/security-team#11973 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 23ad755)
…nanceWindow capability (elastic#218999) ## Summary This PR fixes an issue with the ResponseOps alerts table not handling the `maintenanceWindow` capability being `undefined`. In the AI4DSOC effort, [we recently disabled](elastic#214586) the `maintenanceWindow` capability which cause the `useBulkGetMaintenanceWindowsQuery` hook to crash. Current behavior https://github.com/user-attachments/assets/8ab8c97f-04a0-45cb-95e7-cc9114e87190 Fixed behavior https://github.com/user-attachments/assets/0749bda3-7838-47b7-a65b-5c9b6a92a245 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios relates to elastic/security-team#11973 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 23ad755)
Description
Disable Rules Settings, Maintenance Window, and Rules UI in Search AI Lake Tier (AI for the SOC product).
This PR adds configuration options to disable Rules Settings, Maintenance Window, and Rules UI in the Search AI Lake tier. These changes are part of the effort to streamline the feature set available in this specific tier.
Changes
Added configuration flags in
serverless.security.search_ai_lake.yml:Modified the
alertingplugin to support enabling/disabling rule settings and maintenance window featuresModified the
triggers_actions_uiplugin to support enabling/disabling the Stack Rules UITesting
Please add the following configuration to your
serverless.security.dev.ymlfile:Closes: https://github.com/elastic/security-team/issues/12099
Closes: https://github.com/elastic/security-team/issues/12100
Partially Closes: https://github.com/elastic/security-team/issues/12396