-
Notifications
You must be signed in to change notification settings - Fork 510
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 versioned schemas with a downgrade path #84
Conversation
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.
Schema diff between 7.8
and 7.9
LGTM!
Added fields in 7.9
are as follows, and those are indeed absent from what you have for 7.8
👍
New fields in 7.9
:
- severity_mapping
- author
- risk_score_mapping
- license
- rule_name_override
- timestamp_override
- building_block_type
New rule type in 7.9
- threshold
Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
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.
👍
Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
Issues
Closes #70
Summary
Updated the schemas so we can track with stack version. This way, with kibana-upload, we'll be able to upload to old versions of the stack, not just the latest version. Otherwise, we'll run into schema errors when we use fields that an old stack didn't know about like
author
orlicense
. Now, you can just downgrade a rule from 7.9 to 7.8, and as long as it was supported you can post it. New rule types likethreshold
will raise an exception.More @spong spamming: I added you to check that I correctly captured the changes between 7.8 and 7.9.