Skip to content

[8.x] [Rules migration] Add install and install all migration rules endpoints (#11283) (#202026)#202368

Merged
e40pud merged 1 commit intoelastic:8.xfrom
e40pud:backport/8.x/pr-202026
Nov 30, 2024
Merged

[8.x] [Rules migration] Add install and install all migration rules endpoints (#11283) (#202026)#202368
e40pud merged 1 commit intoelastic:8.xfrom
e40pud:backport/8.x/pr-202026

Conversation

@e40pud
Copy link
Copy Markdown
Contributor

@e40pud e40pud commented Nov 29, 2024

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…points (elastic#11283) (elastic#202026)

## Summary

[Internal link](elastic/security-team#10820)
to the feature details

With these changes we two new routes:

* `/internal/siem_migrations/rules/install`: allows to install a
specific set of migration rules
* `/internal/siem_migrations/rules/install_translated`: allows to
install all translated rules in specified migration

Also we connect these two new API calls with the "Install" button within
the "migration rules" table and the "Install translated rules" button on
the "SIEM migration rules" page.

### Screenshots

https://github.com/user-attachments/assets/29390d07-eab5-4157-8958-1e3f8459db09

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Sergi Massaneda <sergi.massaneda@gmail.com>
(cherry picked from commit 07fbb92)

# Conflicts:
#	x-pack/plugins/security_solution/public/siem_migrations/rules/api/api.ts
#	x-pack/plugins/security_solution/server/lib/siem_migrations/rules/task/agent/nodes/match_prebuilt_rule/match_prebuilt_rule.ts
#	x-pack/test/api_integration/services/security_solution_api.gen.ts
@e40pud e40pud added the backport This PR is a backport of another PR label Nov 29, 2024
@e40pud e40pud enabled auto-merge (squash) November 29, 2024 21:21
@e40pud e40pud merged commit e6a2897 into elastic:8.x Nov 30, 2024
description: result.rule.description,
prebuilt_rule_id: result.rule.rule_id,
id: result.installedRuleId,
translation_result: SiemMigrationRuleTranslationResult.FULL,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The translation_result goes outside elatic_rule, I wonder how the linter accepted this 🤔
I'll fix it on the following backport

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.

2 participants