Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] Fix prebuilt rules exclusion on bulk edit #209992

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

xcrzx
Copy link
Contributor

@xcrzx xcrzx commented Feb 6, 2025

Resolves: #209888

Summary

Resolves an issue when prebuilt rules were not excluded from bulk operations when the license tier is not sufficient to customize prebuilt rules.

See the attached issue for reproduction steps.

Before

Screen.Recording.2025-02-05.at.11.27.53.AM.mov

After

Screen.Recording.2025-02-06.at.12.48.58.mov

@xcrzx xcrzx self-assigned this Feb 6, 2025
@xcrzx xcrzx added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team v8.18.0 v9.1.0 v8.19.0 bug Fixes for quality problems that affect the customer experience labels Feb 6, 2025
@xcrzx xcrzx marked this pull request as ready for review February 6, 2025 11:54
@xcrzx xcrzx requested a review from a team as a code owner February 6, 2025 11:54
@xcrzx xcrzx requested a review from maximpn February 6, 2025 11:54
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

@xcrzx xcrzx added the backport:version Backport to applied version labels label Feb 6, 2025
@nikitaindik nikitaindik self-requested a review February 6, 2025 12:42
@xcrzx xcrzx removed the request for review from maximpn February 6, 2025 12:43
@elasticmachine
Copy link
Contributor

elasticmachine commented Feb 6, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #13 / Observability onboarding API tests logs/environment.spec.ts basic Install shipper setup returns apiEndpoint and scriptDownloadUrl prioritizing server.publicBaseUrl
  • [job] [logs] FTR Configs #69 / Observability onboarding API tests logs/environment.spec.ts cloud Install shipper setup returns apiEndpoint and scriptDownloadUrl prioritizing cloudId

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 21.6MB 21.6MB +41.0B

History

cc @xcrzx

Copy link
Contributor

@nikitaindik nikitaindik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @xcrzx!

I have tested by triggering all bulk actions available in UI in both ESS (Basic) and Serverless (Essentials). It works as expected - bulk actions that modify rule content are applied only to custom rules. Correct error code is returned. Exports also work only for custom rules. Adding actions, enabling/disabling, duplicating and deleting apply to both custom a prebuilt rules. 👍

@xcrzx xcrzx merged commit 376754a into elastic:main Feb 12, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13288385766

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 12, 2025
…c#209992)

**Resolves: elastic#209888

## Summary

Resolves an issue when prebuilt rules were not excluded from bulk
operations when the license tier is not sufficient to customize prebuilt
rules.

See the attached issue for reproduction steps.

**Before**

https://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3

**After**

https://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21
(cherry picked from commit 376754a)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 12, 2025
…c#209992)

**Resolves: elastic#209888

## Summary

Resolves an issue when prebuilt rules were not excluded from bulk
operations when the license tier is not sufficient to customize prebuilt
rules.

See the attached issue for reproduction steps.

**Before**

https://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3

**After**

https://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21
(cherry picked from commit 376754a)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 12, 2025
…c#209992)

**Resolves: elastic#209888

## Summary

Resolves an issue when prebuilt rules were not excluded from bulk
operations when the license tier is not sufficient to customize prebuilt
rules.

See the attached issue for reproduction steps.

**Before**

https://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3

**After**

https://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21
(cherry picked from commit 376754a)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.x
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 12, 2025
…209992) (#210851)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Security Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)](#209992)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dmitrii
Shevchenko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-12T15:04:13Z","message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] Fix prebuilt rules exclusion on bulk
edit","number":209992,"url":"https://github.com/elastic/kibana/pull/209992","mergeCommit":{"message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209992","number":209992,"mergeCommit":{"message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dmitrii Shevchenko <[email protected]>
kibanamachine added a commit that referenced this pull request Feb 12, 2025
…209992) (#210852)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)](#209992)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dmitrii
Shevchenko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-12T15:04:13Z","message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] Fix prebuilt rules exclusion on bulk
edit","number":209992,"url":"https://github.com/elastic/kibana/pull/209992","mergeCommit":{"message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209992","number":209992,"mergeCommit":{"message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dmitrii Shevchenko <[email protected]>
kibanamachine added a commit that referenced this pull request Feb 12, 2025
…209992) (#210853)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)](#209992)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dmitrii
Shevchenko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-12T15:04:13Z","message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] Fix prebuilt rules exclusion on bulk
edit","number":209992,"url":"https://github.com/elastic/kibana/pull/209992","mergeCommit":{"message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209992","number":209992,"mergeCommit":{"message":"[Security
Solution] Fix prebuilt rules exclusion on bulk edit
(#209992)\n\n**Resolves:
https://github.com/elastic/kibana/issues/209888**\n\n##
Summary\n\nResolves an issue when prebuilt rules were not excluded from
bulk\noperations when the license tier is not sufficient to customize
prebuilt\nrules.\n\nSee the attached issue for reproduction
steps.\n\n**Before**\n\n\nhttps://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3\n\n**After**\n\n\nhttps://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21","sha":"376754afb4f1e630d26d00560fc4ae124141900f"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dmitrii Shevchenko <[email protected]>
@xcrzx xcrzx deleted the bulk-edit-fix branch February 13, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
4 participants