Closed
Description
Epics: https://github.com/elastic/security-team/issues/1974 (internal), #174168
Summary
Implement calculation of ruleSource.isCustomized
in all necessary endpoints that write the ruleSource
field to prebuilt rules, and where fields can be customized, diverging from the base version from the Rule Asset.
The calculation and saving of the field should be done in the following endpoints:
- Update Rule -
PUT /rules
- Patch Rule -
PATCH /rules
- Bulk Update Rules -
PUT /rules/_bulk_update
- Bulk Patch Rules -
PATCH /rules/_bulk_update
- Import Rules -
POST /rules/_import
- Perform Rule Upgrade -
POST /prebuilt_rules/upgrade/_perform
(Internal)
Extracted to other tickets:
- Bulk Actions -
POST /rules/_bulk_action
: with action Edit rules action
Background
Context from RFC:
- Calculating the
isCustomized
field - see table with scenarios for calculation ofisCustomized
- Calculating
isCustomized
during bulk editing rules - Calculating
isCustomized
when importing rules - see table with import scenarios and their respectiveisCustomized
calculations