[Security Solution] Rule find requests failing due to migration error #198647
Labels
8.16 candidate
bug
Fixes for quality problems that affect the customer experience
Feature:Rule Management
Security Solution Detection Rule Management area
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
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.
Summary
Requests to
/kbn/internal/alerting/rules/_find
fail when called with thefields
param. This occurs when documents created under the first rule model version are read after another rule model version is added. Migration fails as a result of the attempt to migrate a partial document due to thefields
parameter in the find API.Steps to Reproduce
Root Cause
fields
parameter in the find API limits document fields read from ES:kibana/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.ts
Line 188 in 343e43d
kibana/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/migration.ts
Line 71 in 343e43d
Failed to migrate document to the latest version.: [name]: expected value of type [string] but got [undefined]
Proposed Solution
fields
param from the find requestThe text was updated successfully, but these errors were encountered: