-
Notifications
You must be signed in to change notification settings - Fork 618
[fix] Preserve actions[].params.message field formatting during rule export from the repo
#5597
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
base: main
Are you sure you want to change the base?
Conversation
Bug - GuidelinesThese guidelines serve as a reminder set of considerations when addressing a bug in the code. Documentation and Context
Code Standards and Practices
Testing
Additional Checks
|
message field formattingactions[].params.message field formatting during rule export from the repo
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.
This fix address the immediate bug and given that multiple users have reported this, we should consider this a priority to fix and prioritize a fix being merged compared to the fix being the best fix. Given this, I approve 🟢 👍
However, for posterity it should be noted that I do not see investigation as to why this is occurring, so we should expect that this may be occurring in other fields as well erroneously.
See testing details comment for more details (since Github no longer allows details in review submission). Screenshot below is a before and after using the test criteria I outlined in the issue write up.
|
@eric-forte-elastic thanks for the review! The root cause here if our business logic: string values go through |
100% that part makes sense and I think your implementation is clean and effective to address that. More of the posterity note is in reference to it being unclear as to why we have |
|
Testing details Details
python -m detection_rules export-rules-from-repo -f rules/test_email.toml -o test_email_action_rule.ndjson
|

Pull Request
Issue link(s):
Summary - What I changed
Field
messageis added to the list of fields excluded from string normalization.How To Test
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist