Skip to content
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

Closed

Conversation

dolftax
Copy link
Contributor

@dolftax dolftax commented Feb 22, 2018

Ref: #6191

r? @adriansr

Signed-off-by: Jaipradeesh jaipradeesh@gmail.com

@elasticmachine
Copy link
Collaborator

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?

@ruflin
Copy link
Contributor

ruflin commented Feb 27, 2018

@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

@dolftax
Copy link
Contributor Author

dolftax commented Feb 27, 2018

Ref: #6191 (comment)

@dolftax dolftax force-pushed the mongo-unknown-opcodes-handler branch from 6c8712d to e40adea Compare February 27, 2018 10:37
@andrewkroh
Copy link
Member

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:

@dolftax
Copy link
Contributor Author

dolftax commented Mar 16, 2018

@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: OP_COMPRESSED isn't documented on Wire protocol opcode docs - https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/ but it is a valid one.

Ref: #6191 (comment)

@dolftax
Copy link
Contributor Author

dolftax commented Mar 25, 2018

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 OP_COMMAND and OP_COMMANDREPLY because I wasn't able to find them as they're internal to mongo cluster.

@dolftax dolftax force-pushed the mongo-unknown-opcodes-handler branch from e40adea to e0bcc7f Compare March 25, 2018 05:36
Signed-off-by: Jaipradeesh <jaipradeesh@gmail.com>
@dolftax dolftax force-pushed the mongo-unknown-opcodes-handler branch from e0bcc7f to c8567cd Compare April 18, 2018 03:18
@adriansr
Copy link
Contributor

adriansr commented May 4, 2018

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 (self.assert_no_logged_warnings()).

Copy link
Contributor

@adriansr adriansr left a 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

@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic
Copy link

botelastic bot commented Jul 17, 2020

Hi!
We just realized that we haven't looked into this PR in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it in as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jul 17, 2020
@botelastic
Copy link

botelastic bot commented Aug 16, 2020

Hi!
This PR has been stale for a while and we're going to close it as part of our cleanup procedure.
We appreciate your contribution and would like to apologize if we have not been able to review it, due to the current heavy load of the team.
Feel free to re-open this PR if you think it should stay open and is worth rebasing.
Thank you for your contribution!

@botelastic botelastic bot closed this Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants