-
Notifications
You must be signed in to change notification settings - Fork 563
Add new required_fields
as a build-time restricted field
#2059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new required_fields
as a build-time restricted field
#2059
Conversation
require_field
restricted fieldrequired_fields
as a build-time restricted field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> Co-authored-by: brokensound77 <[email protected]> (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 <[email protected]> Co-authored-by: brokensound77 <[email protected]> (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 <[email protected]> Co-authored-by: brokensound77 <[email protected]> (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 <[email protected]> Co-authored-by: brokensound77 <[email protected]> (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 <[email protected]> Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit c76a397)
Issues
Resolves #2056
Summary
unique_fields
in the post buildrequired_fields
to the rule post build.