-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Security Solution] Rules managment RBAC subfeatures #250131
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
Changes from all commits
3fd870e
8e75c38
ec4f66e
d431428
3e5e365
8ba7d9f
9995c0d
d64695b
c214731
d80876e
31599cf
e851123
6d930cb
f18f721
7e52053
ee96cec
5d90bd0
06872d4
755bbf5
7829fe6
1a44ea8
7e217a8
ab2fa96
2ce7a4f
dbe43b0
a1eb7eb
20e558d
722076b
a79c3b1
8250627
65738ea
d5426d4
5209fc3
1a2772d
6461632
f0eec8f
fbb64a1
2184513
550bb15
1783ed1
04be738
c1e0814
4e46870
4e9619e
f8c566d
ba31309
d8bcb47
ed1ab83
e673d01
5082b4f
7799987
f0dad7e
8a3c482
e319d14
cc538ab
37b36dc
597e529
60cf008
1533b55
e74fe7f
e256f8f
4cf231b
634c1e5
14e4693
b79eee1
18ee780
632c2e5
e53de87
f5c4b5d
3b9f4d9
fcee772
28e649a
50d59c2
6c0f721
75b8770
2fcec69
79ef72c
b5ab7b7
3a140f4
a3938e3
229123c
c77b027
9417677
7d8d3ca
385fa97
2aa23fa
5938fa3
b37f3ad
d1a87b3
3ebfb30
18932e1
d419ac1
0e9e9d4
9d136c7
e56c67e
c8903fa
db10fc9
ff843c7
b21f85c
7182026
dab8f1e
6186644
244db7f
eed0cf7
8d39bf9
e32e2bd
e24f793
f9cfec2
158b7be
63d33a2
5a6d844
060e259
7789d23
92f5e13
6b11227
18d6877
9622507
6a7cdaa
416698f
553744c
b9b75e9
83d0ad2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am curious, how are these changes related to the feature?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This and the |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,8 +83,14 @@ export const bulkMigrateLegacyActions = async ({ | |
|
|
||
| rule.attributes.actions = [...existingActionsWithFrequencies, ...transformedActions]; | ||
| rule.references = [...rule.references, ...transformedReferences]; | ||
| rule.attributes.throttle = undefined; | ||
| rule.attributes.notifyWhen = undefined; | ||
| // Only clear rule-level throttle when there are actual migrated actions from | ||
| // the sidecar (throttled sidecars). For no_actions/rule sidecars (empty | ||
| // transformedActions), the original throttle value should be preserved since | ||
| // there are no per-action frequencies being migrated from the sidecar. | ||
| if (transformedActions.length > 0) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was it a bug?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this was a bug that we were finding in the code related to this that caused us to skip a test. It's a slightly different bug that was able to be solved a bit easier than that one which is why we included it in this PR so we wouldn't have to skip more tests. |
||
| rule.attributes.throttle = undefined; | ||
| } | ||
| rule.attributes.notifyWhen = null; | ||
| }); | ||
| return Object.keys(transformed); | ||
| } catch (e) { | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am curious, how are these changes related to the feature? |
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.
Just a note that adding these fields here will allow users with only read access to modify them. Switching back would be a breaking change.