Skip to content

Comments

pgsql: low hanging fruits - v2#10853

Closed
jufajardini wants to merge 2 commits intoOISF:masterfrom
jufajardini:pgsql-3827-logger/v2
Closed

pgsql: low hanging fruits - v2#10853
jufajardini wants to merge 2 commits intoOISF:masterfrom
jufajardini:pgsql-3827-logger/v2

Conversation

@jufajardini
Copy link
Contributor

While starting review for the LDAP protocol parser, noticed that we had a TODO for adding a simpler logger function for PGSQL, following up #9851.

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6092

Previous PR: #10830

Describe changes:

  • rebased, new PR to trigger CI checks with SV PR

These commits don't change the output behavior, just ensure that we pass pgsql config flags as metadata, therefore, these tests should pass with master, too.

Provide values to any of the below to override the defaults.

SV_BRANCH=OISF/suricata-verify#1770

It was brought to my attention by GLongo that Pgsql parser handled eof
diffrently for requests and responses, and apparently there isn't a good
reason for such a difference therefore, apply same logic used for
rs_pgsql_parse_request for checking for eof when parsing a response.
@codecov
Copy link

codecov bot commented Apr 16, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 82.88%. Comparing base (784ce30) to head (a0fac7f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10853      +/-   ##
==========================================
+ Coverage   82.83%   82.88%   +0.05%     
==========================================
  Files         913      913              
  Lines      246847   246852       +5     
==========================================
+ Hits       204474   204614     +140     
+ Misses      42373    42238     -135     
Flag Coverage Δ
fuzzcorpus 64.40% <16.66%> (+0.09%) ⬆️
suricata-verify 62.10% <50.00%> (+0.01%) ⬆️
unittests 62.33% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@victorjulien victorjulien added this to the 8.0 milestone Apr 16, 2024
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 20079

@victorjulien
Copy link
Member

Merged in #10856, thanks!

@jufajardini jufajardini deleted the pgsql-3827-logger/v2 branch April 16, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants