-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] Rule import/export needs to be updated to match functionality of import/export of Saved Object Management #118767
Comments
Hi everyone just wanted to outline some test cases I was working on manually to determine what changes needed to be made specifically for rules import route. Haven't found anything that would necessitate changes outside of the actions references in the PR #120975 Let me know what you all think of these test cases and if the outcomes are acceptable. Also, if anyone would like to add other test cases that might cause possible unexpected issues please comment here 😄
|
The only other area I could imagine being an issue is if a user has a legacy action side car ( I also was wondering if it could have an impact when we go to migrate users off of the legacy sidecar SO's but we are utilizing "real" SO references for the legacy action migration so we should be covered there as well which is great (I tested this out locally by creating a rule + action in a non-default space in 7.14, upgraded to 7.16 without touching the rule then upgraded to 8.0 and disabled the rule, triggering the migration process and the migration worked put the old sidecar data into the |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Motivation: Saved objects will become share-capable sometime in 8.x. In 8.0, new id's are generated for all saved objects outside of the default space. Currently when users import rules with references after 8.0, those references may not resolve properly.
import from 7.x to 8.x -> new
_ids
are generated for all saved objects, need to make sure that any rules with reference saved objects like exceptions etc are referencing the right exceptions, actions etc..In order to ensure things continue to work as expected we need to update the import / export api's to utilize functions built into the saved object management import / export which resolve properly.
Things to research include:
overwrite
functionality on import?meta
field to include the kibana version the rule was exported from which will allow us to skip the expensive checks outlined above.The text was updated successfully, but these errors were encountered: