-
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
PostgreSQL: initial support (MVP) #5824
Conversation
PostgreSQL: add SSL handshake support
Codecov Report
@@ Coverage Diff @@
## master #5824 +/- ##
==========================================
- Coverage 72.38% 72.38% -0.01%
==========================================
Files 604 606 +2
Lines 179369 179453 +84
==========================================
+ Hits 129837 129894 +57
- Misses 49532 49559 +27
Flags with carried forward coverage won't be shown. Click here to find out more. |
Do you have a Suricata-Verify test that goes with this? If not, a pcap to play with it? |
Oh, I haven't thought of adding the suricata-verify, I'll do that next time. Here are two pcaps, I don't know if this is doing much, already, though:
|
named!(pub parse_message<String>, | ||
do_parse!( | ||
len: map_res!( | ||
map_res!(take_until!(":"), std::str::from_utf8), parse_len) >> |
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'm not understanding what is happening here. It parses the 4 byte length field, but then also takes something until a :
is found? Shouldn't we just to something like take!(len)
?
When testing with postgresql-13-simple-select.pcap
I see this return incomplete
all the time.
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, that's my fault, I haven't worked on this function, but now I can see that I certainly should, before sharing. (This also helps me understand when I can expect to see things "changing" if I run suricata after changing things here, and when not much will happen...) I will do that, and submit a new PR.
Closed with: #5830 |
PostgreSQL: add SSL handshake support
Make sure these boxes are signed before submitting your Pull Request -- thank you.
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/4241
Describe changes:
#suricata-verify-pr:
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch: