-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Packetbeat: add COMMAND, COMMANDREPLY mongodb opcodes #6440
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@jaipradeesh Could you add some tests with pcap files for this if possible? Also please add a line to the changelog file. Still needs review from probably @adriansr |
Ref: #6191 (comment) |
6c8712d
to
e40adea
Compare
LGTM, but I would feel better about merging if there were a test covering these opcodes. Would you be able to add a test case? Like in either of: |
@andrewkroh I was waiting for @adriansr 's input on this because (when looking for a sample pcap file with OP_COMMAND and OP_COMMANDREPLY codes) Derick from MongoDB team suggested not to whitelist any opcodes as it might change without warning. An example scenario from Wireshark who did the same (whitelist opcodes on wire protocol) - https://derickrethans.nl/wireshark-mongo-36.html For example: Ref: #6191 (comment) |
Since we don't have a solid list of opcodes, I'm not sure if we really need to add a pcap file and test for the same here. If you think we should, could someone please add a pcap file which has opcodes |
e40adea
to
e0bcc7f
Compare
Signed-off-by: Jaipradeesh <jaipradeesh@gmail.com>
e0bcc7f
to
c8567cd
Compare
Hi @jaipradeesh How do you feel about adding the test? I think best is adding a system-test (the python ones) that reads a pcap file and checks that no warning/errors are printed to the log ( |
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 needs rebasing with current master and a test
Pinging @elastic/siem (Team:SIEM) |
Hi! We're labeling this issue as |
Hi! |
Ref: #6191
r? @adriansr
Signed-off-by: Jaipradeesh jaipradeesh@gmail.com