Add new required_fields as a build-time restricted field#2059
Add new required_fields as a build-time restricted field#2059Mikaayenson merged 19 commits intomainfrom
required_fields as a build-time restricted field#2059Conversation
require_field restricted fieldrequired_fields as a build-time restricted field
terrancedejesus
left a comment
There was a problem hiding this comment.
Reviewed and tested with @Mikaayenson
|
c59f224 I expanded the schema and values to include the additional fields. I had to do additional checks on ECS and beats schema to make the determination. For lucene rules, this will be skipped since they are not parsed (empty array). Until we add integration schemas, it has the potential to not be perfect on field type determination (#1994). It also does not parse into I successfully uploaded the full rule set to an 8.3 stack (the error is unrelated) |
brokensound77
left a comment
There was a problem hiding this comment.
A few small changes then LGTM. Thanks for diving into this. We should pay special attention on this backport and before the next lock.
* Add new `require_field` restricted field * validate new fields against BaseRuleData schema and global constant Co-authored-by: Terrance DeJesus <terrance.dejesus@elastic.co> Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com> (cherry picked from commit c76a397)
* Add new `require_field` restricted field * validate new fields against BaseRuleData schema and global constant Co-authored-by: Terrance DeJesus <terrance.dejesus@elastic.co> Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com> (cherry picked from commit c76a397)
* Add new `require_field` restricted field * validate new fields against BaseRuleData schema and global constant Co-authored-by: Terrance DeJesus <terrance.dejesus@elastic.co> Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com> (cherry picked from commit c76a397)
* Add new `require_field` restricted field * validate new fields against BaseRuleData schema and global constant Co-authored-by: Terrance DeJesus <terrance.dejesus@elastic.co> Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com> (cherry picked from commit c76a397)
* Add new `require_field` restricted field * validate new fields against BaseRuleData schema and global constant Co-authored-by: Terrance DeJesus <terrance.dejesus@elastic.co> Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com> (cherry picked from commit c76a397)

Issues
Resolves #2056
Summary
unique_fieldsin the post buildrequired_fieldsto the rule post build.