[Security Solution] Adds customized_fields and has_base_version fields to internal rule schema#235394
Conversation
|
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
|
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
jkelas
left a comment
There was a problem hiding this comment.
LGTM.
Done some basic exploratory testing to make sure that our features work correctly.
Approving.
…-field-internal-schema
…-field-internal-schema
| z.object({ | ||
| type: z.literal('external'), | ||
| isCustomized: IsExternalRuleCustomized, | ||
| customizedFields: z |
There was a problem hiding this comment.
do we need to add new parameter to external schemas too?
There was a problem hiding this comment.
That's what this PR is doing. We need to add it to the internal rule schemas first due to our intermediate release practice with rule schema modifications
|
Starting backport for target branches: 9.1 https://github.com/elastic/kibana/actions/runs/17883771345 |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Saved Objects .kibana field count
History
cc @dplumlee |
…ields to internal rule schema (elastic#235394) ## Summary Precursor to elastic#234793 **Must go into serverless before that PR is merged in** Adds new fields related to [customized rule alert telemetry](elastic#230856) to the internal rule schema, an addition that must be done before adding them to the security rule schemas (e.g. `RuleResponse`, etc.) (cherry picked from commit a15e334)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…astic#235922) Adds the missing props added by elastic#235394 to the registered rule types schema snapshot. (cherry picked from commit fa205bc)
…ion` fields to internal rule schema (#235394) (#235897) # Backport This will backport the following commits from `main` to `9.1`: - [[Security Solution] Adds `customized_fields` and `has_base_version` fields to internal rule schema (#235394)](#235394) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Davis Plumlee","email":"56367316+dplumlee@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-09-20T19:09:45Z","message":"[Security Solution] Adds `customized_fields` and `has_base_version` fields to internal rule schema (#235394)\n\n## Summary\n\nPrecursor to https://github.com/elastic/kibana/pull/234793\n\n**Must go into serverless before that PR is merged in**\n\nAdds new fields related to [customized rule alert\ntelemetry](#230856) to the\ninternal rule schema, an addition that must be done before adding them\nto the security rule schemas (e.g. `RuleResponse`, etc.)","sha":"a15e3345fe5c7cc7171112710d27b555f517acaa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v9.2.0","v9.1.5"],"title":"[Security Solution] Adds `customized_fields` and `has_base_version` fields to internal rule schema","number":235394,"url":"https://github.com/elastic/kibana/pull/235394","mergeCommit":{"message":"[Security Solution] Adds `customized_fields` and `has_base_version` fields to internal rule schema (#235394)\n\n## Summary\n\nPrecursor to https://github.com/elastic/kibana/pull/234793\n\n**Must go into serverless before that PR is merged in**\n\nAdds new fields related to [customized rule alert\ntelemetry](#230856) to the\ninternal rule schema, an addition that must be done before adding them\nto the security rule schemas (e.g. `RuleResponse`, etc.)","sha":"a15e3345fe5c7cc7171112710d27b555f517acaa"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235394","number":235394,"mergeCommit":{"message":"[Security Solution] Adds `customized_fields` and `has_base_version` fields to internal rule schema (#235394)\n\n## Summary\n\nPrecursor to https://github.com/elastic/kibana/pull/234793\n\n**Must go into serverless before that PR is merged in**\n\nAdds new fields related to [customized rule alert\ntelemetry](#230856) to the\ninternal rule schema, an addition that must be done before adding them\nto the security rule schemas (e.g. `RuleResponse`, etc.)","sha":"a15e3345fe5c7cc7171112710d27b555f517acaa"}},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com> Co-authored-by: Davis Plumlee <davis.plumlee@elastic.co>
…ields to internal rule schema (elastic#235394) ## Summary Precursor to elastic#234793 **Must go into serverless before that PR is merged in** Adds new fields related to [customized rule alert telemetry](elastic#230856) to the internal rule schema, an addition that must be done before adding them to the security rule schemas (e.g. `RuleResponse`, etc.)
…astic#235922) Adds the missing props added by elastic#235394 to the registered rule types schema snapshot.
…ields to internal rule schema (#235394) ## Summary Precursor to #234793 **Must go into serverless before that PR is merged in** Adds new fields related to [customized rule alert telemetry](#230856) to the internal rule schema, an addition that must be done before adding them to the security rule schemas (e.g. `RuleResponse`, etc.)
…ields to internal rule schema (elastic#235394) ## Summary Precursor to elastic#234793 **Must go into serverless before that PR is merged in** Adds new fields related to [customized rule alert telemetry](elastic#230856) to the internal rule schema, an addition that must be done before adding them to the security rule schemas (e.g. `RuleResponse`, etc.)
…astic#235922) Adds the missing props added by elastic#235394 to the registered rule types schema snapshot.
Summary
Precursor to #234793
Must go into serverless before that PR is merged in
Adds new fields related to customized rule alert telemetry to the internal rule schema, an addition that must be done before adding them to the security rule schemas (e.g.
RuleResponse, etc.)