Skip to content

Comments

[8.19] [Security Solution] Adds ability to revert prebuilt rules to their base version (#223301)#225666

Merged
dplumlee merged 2 commits intoelastic:8.19from
dplumlee:backport/8.19/pr-223301
Jun 28, 2025
Merged

[8.19] [Security Solution] Adds ability to revert prebuilt rules to their base version (#223301)#225666
dplumlee merged 2 commits intoelastic:8.19from
dplumlee:backport/8.19/pr-223301

Conversation

@dplumlee
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…se version (elastic#223301)

Ticket: elastic#215506

Adds ability to revert prebuilt rules to their base version.

Implements following endpoints:

- `GET /internal/detection_engine/prebuilt_rules/base_version`
- `POST /internal/detection_engine/prebuilt_rules/revert`

Allows users to revert their customized prebuilt rules to the original Elastic versions. This also implements a rule diff flyout on the rule details page so users can see which fields are customized and would be changed on reversion.
![Screenshot 2025-06-12 at 2 54 05 PM](https://github.com/user-attachments/assets/1b1cb544-80f7-4914-ba06-d94d6a673b8d)
![Screenshot 2025-06-12 at 2 53 15 PM](https://github.com/user-attachments/assets/e22b0ccc-ddd2-4dd3-b2e9-9c7077c00700)

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [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

(cherry picked from commit d532ff4)
@dplumlee dplumlee requested a review from kibanamachine as a code owner June 27, 2025 15:08
@dplumlee dplumlee added the backport This PR is a backport of another PR label Jun 27, 2025
@dplumlee dplumlee enabled auto-merge (squash) June 27, 2025 15:08
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 7517 7527 +10

Async chunks

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

id before after diff
securitySolution 9.4MB 9.4MB +10.1KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 85.8KB 85.7KB -6.0B

History

@dplumlee dplumlee merged commit c17c28b into elastic:8.19 Jun 28, 2025
8 checks passed
@dplumlee dplumlee deleted the backport/8.19/pr-223301 branch June 28, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants