-
Notifications
You must be signed in to change notification settings - Fork 431
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
feature: add signature name to event definition #3743
feature: add signature name to event definition #3743
Conversation
3313d6f
to
1eb3496
Compare
1eb3496
to
30a59ae
Compare
@denisgersh Below an example of threat on the event when streaming, and one in the event definition: Event:
EventDefinition:
|
30a59ae
to
7e41175
Compare
I see here in EventDefinition example that you posted that there is a duplication of the For the BTW, the |
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.
Left a few suggestions/requests.
7e41175
to
35fcd10
Compare
33c87b0
to
bb22872
Compare
@NDStrahilevitz @denisgersh can you review? And if you agree, I need an approve on #3742 so I can merge it and rebase this one. Thanks |
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.
LGTM
I'm approving types for merging, since I think we're fine on that front, anything missing implementation wise would be here. |
bb22872
to
b2992a5
Compare
@josedonizetti rebase and we can merge |
8e1a3c8
to
c4a7cd1
Compare
c4a7cd1
to
4c2218d
Compare
@@ -44,6 +45,8 @@ func CreateEventsFromSignatures(startId events.ID, sigs []detect.Signature) map[ | |||
evtDependency = append(evtDependency, eventDefID) | |||
} | |||
|
|||
tags := set.New[string](append([]string{"signatures", "default"}, m.Tags...)...) |
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.
nit: pretty sure you can do
set.New[string]("signatures", "default", m.Tags...)
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.
I'll try again, but it complained about arguments string,string,[]string
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.
You're right jsut checked myself. odd that golang wouldn't support it, it's rather intuitive...
Close: #3741