-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
MySQL: parser v2 #11842
MySQL: parser v2 #11842
Conversation
da3fc12
to
90496a5
Compare
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.
Thanks for the work so far, still more to do
CI : 🔴 could you fix it ?
Commits segmentation : I think we will squash all in the end, especially the commits like mysql: fix
, so we do not have a buggy point in our git history if we can avoid it
Commit messages : ok, we can see after squashing
Git ID set : ok
CLA : ❓ I do not have access
Doc update : 🟠 I think there is more to do, like a note in upgrade guide cc @jufajardini
Redmine ticket : ok
Rustfmt : ok
Tests : thanks for the SV test
Dependencies added: none
Code : will look into it
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.
CI is to be fixed
mysql: | ||
enabled: no | ||
# Stream reassembly size for MySQL. By default, track it completely. | ||
stream-depth: 0 |
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.
Why that default ?
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 copied from pgsql configuration, now i know what it means, i will remove it.
rust/src/mysql/mysql.rs
Outdated
if tx_completed { | ||
tx.complete = true; | ||
} | ||
} |
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.
Should we not create a new transaction with the response if self.find_or_create_tx()
returns None ?
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.
Sorry, I don't understand the question.
There is an amazing amount of work in here :-) |
I've adjusted the way the SV PR is passed, hopefully the step for preparing dependencies should work now.
:) kudos on aaalll the work done so far, here! |
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.
About the documentation:
- we could indeed have a note on the Upgrading section (upgrading from 7 to 8, an example: 70ed9f91d84d)
- we should also document the log and keyword additions (one example: 70ed9f91d84d)
About the copyright note:
- all newly files should have it
- If this work is all being done by a single author, could you please standardize the author name and e-mail used when you're adding those to the file author annotations?
As Philippe said, there is a massive amount of work done here, so it will take some time for us to do proper rounds of reviews. But thanks for incorporating the feedback, and the time dedicated to this!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11842 +/- ##
===========================================
- Coverage 82.60% 66.45% -16.15%
===========================================
Files 912 852 -60
Lines 249351 151008 -98343
===========================================
- Hits 205965 100356 -105609
- Misses 43386 50652 +7266
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
a few comments, not a full review yet
149c42b
to
e973b39
Compare
c90c2c0
to
88caf8b
Compare
I have added the document in upgrade and log and keyword |
8b677ac
to
5967e62
Compare
Thanks for incorporating the feedback shared. This currently needs a rebase, due to conflicts. When you can, then, it'd be good to share a new, the most current version, rebased. Probably also after creating a new SV version :) |
5967e62
to
beba425
Compare
I have resolved conflicts, please check again, thx. |
Please, submit a new PR, to make it easier for us to review the cleaned up and rebased code, as well as to ensure that the CI checks will run against a rebased and updated SV PR :) |
self.transactions.back_mut() | ||
} | ||
|
||
fn request_next_state( |
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.
It seems that this function is doing way more than just get the next state based on the request. Can we refactor it?
if let Some(state) = self.request_next_state(request, flow) { | ||
self.state_progress = state; | ||
} |
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.
Is it possible for this to return None
?
Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
(including schema descriptions)
Link to ticket: OISF/suricata-verify#2067
Describe changes:
fix mysql parser bug.
fix mysql logger bug.
add mysql detection keywords
mysql.command
andmysql.rows
add SV tests.
SV_REPO=
SV_BRANCH=OISF/suricata-verify#2067