-
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
pgsql: track 'progress' in tx per direction - v0 #11540
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11540 +/- ##
==========================================
- Coverage 82.51% 82.50% -0.01%
==========================================
Files 923 923
Lines 248732 248749 +17
==========================================
+ Hits 205232 205238 +6
- Misses 43500 43511 +11
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 21679 |
ca8de24
to
4589172
Compare
Information: QA ran without warnings. Pipeline 21683 |
4589172
to
347d25b
Compare
Information: QA ran without warnings. Pipeline 21689 |
While PGSQL can have multiple responses within a single transaction, the current implementation can only have one request. It makes sense then to track the transaction progress per flow direction. This will help when triggering raw stream reassembly or for unidirectional transactions, and may be useful when we implement sub- protocols that can have multiple requests per transaction, as well. CancelRequests and TerminationRequests are examples of unidirectional transactions. While we know this, we can't garantee that either messages would result in early termination of existing transactions, so we skip finishing existing transactions - which shouldn't be common, regardless, as PGSQL is mostly a sequential protocol. Bug OISF#7113
Once we are tracking tx progress per-direction for PGSQL, we can trigger the raw stream reassembly for detection purposes once the transactions are completed. Task OISF#7000
347d25b
to
7f03644
Compare
I think this is now ready for a review. |
Information: QA ran without warnings. Pipeline 21690 |
Lets keep a PR that has seen these force pushes as draft. |
oh, okie, sorry. |
Non-draft version: #11547 |
Sharing to check if this is the right direction (heh)
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7113
Describe changes:
Provide values to any of the below to override the defaults.
link to the pull request in the respective
_BRANCH
variable.SV_BRANCH=OISF/suricata-verify#1990