Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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] [Detections] Adds support for system actions (and cases action) to detection rules #183937
[Security Solution] [Detections] Adds support for system actions (and cases action) to detection rules #183937
Changes from 9 commits
2cfed78
a2bb5ba
7082de6
5e137b3
3600f32
7140b48
33cebd7
2a91ec0
4d73f76
2ef4df5
62b6ec8
67e406b
5e61574
7c72634
7f7a4ba
098194d
fdce619
8d75153
0599aa2
3c8a799
1d02e49
0b121bd
b697826
43a779f
ed4b400
033fe41
b3f5498
caa8702
73202f0
6a6f397
6e16ab0
1b35aeb
9eeb2e6
56c8b03
06efd06
c250336
dfb239e
1fbafc3
0e42109
7254095
77e351b
0e4f045
683504b
57a4a77
e36a295
ed6f8c7
69ba82b
475915e
3b8e874
bf2d39b
9e8eda5
9e67428
5827e1e
ee5ae09
cc33a01
dbf4db2
991e10a
374309c
da2217f
fee7dbb
bd7c725
604a755
bc9efa2
09716a2
f2e919d
8de96fa
19748e3
851e19a
3848196
8d517b4
739a6a3
3903f00
872477e
256b6ea
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
For any questions on this, I pulled this from the system actions RFC:
Ref: https://docs.google.com/document/d/1mYStNLxrafnyxR6v_uB4ONw_iFHTg1pmE3EAQYgKFSY/edit?pli=1
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 is maybe nitpicking, but given that we're dealing with the
DetectionRulesClient
here, I strongly feel that theactionsClient
should not be the first parameter ofcreateDetectionRulesClient
. Can we reordering it so?Same goes with the arguments of all the methods used here. Instead of:
This should be:
The idea being, the most important dependency for interacting with rules is the
rulesClient
. Then, we need the arguments to create/modify/delete them. And only after that, additional dependencies likeactionsClient
andmlAutzh
.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.
@dhurley14 Just a heads up that I've refactored this builder function to accept arguments as an object instead of positional arguments in my PR:
I'd propose aligning here, so we don't end up with a lot of conflicts.
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 should be fixed now.