-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Include pluginId in alert events #8454
Conversation
Would we want this to be alert ref if it exists? |
Oh, good suggestion.. |
1cf7a9c
to
2927cab
Compare
Updated to use alertRef instead. |
Related PR: zaproxy/zaproxy#8454 (but not a dependency) Signed-off-by: Simon Bennetts <psiinon@gmail.com>
Related PR: zaproxy/zaproxy#8454 (but not a dependency) Signed-off-by: Simon Bennetts <psiinon@gmail.com>
I haven't dug through the code but does this always have a value? Does it default to pluginId if a specific ref hasn't been set? |
Yes, its defaulted to the pluginId for standard rules. |
2927cab
to
b43b58b
Compare
This means event consumers will be able to reliably identify alerts. Right now they only have access to the alert names, with are i18ned. Signed-off-by: Simon Bennetts <psiinon@gmail.com>
b43b58b
to
8192477
Compare
Switched back to pluginId based on IRC discussions :) |
Thank you! |
To me if it's about Alerts then it should be the thing that most specifically identifies the alert, but whatever we can always do more later. |
It definitely depends on the use case, and here the scan rule ID is enough. |
This means event consumers will be able to reliably identify alerts.
Right now they only have access to the alert names, with are i18ned.