-
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
dns: add keyword for dns.response.rrname (feat 7012) - v2 #12500
base: master
Are you sure you want to change the base?
Conversation
Feature: 7012 Add dns.response sticky buffer to match on dns response fields. Add rust functions to return dns response packet data. Unit tests verifying signature matching.
Feature: 7012
This is a better name as the keyword is looking at all rrname type fields in the response.
These arrays are manually formatted for readability.
Make the function safe by returning a reference to the DNSName object, the unsafe C wrapper can do the conversion to pointers.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12500 +/- ##
==========================================
+ Coverage 80.58% 80.65% +0.07%
==========================================
Files 925 926 +1
Lines 259313 260554 +1241
==========================================
+ Hits 208955 210157 +1202
- Misses 50358 50397 +39
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 24417 |
Is this to be considered for merge? The conversation in the prev PR suggests there is more to do? |
Other than more S-V coverage, to be comparable with the unit tests I think its ready for review. Something else standing out? There's this, #11647 (comment), but it doesn't really affect the completeness of this PR. Currently its a blocker for more discrete keywords to provide parity, for which I'll need very similar tests as well. So I could do those to complete this off, then they'd be ready for https://redmine.openinfosecfoundation.org/issues/5642. |
What are discrete keywords ? Do you say this PR is blocking adding other keywords ? Why so ?
@scrivs86 said yesterday that he was going to do another version cf #11647 (comment) This means squashing in your commits I guess |
``rdata`` field matching supports a subset of types that contain | ||
domain name structured data, for example: "www.suricata.io". The list | ||
of types inspected is: |
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.
Could we have an example with rdata
, too?
Other than that, doc looks good to me :)
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.
dns.reponse.rrname
matches on rdata that is formatted as a resource name record. There is no additional keyword.
I reached out to @jasonish , and he already implemented the changes I was going to do. Thanks :) |
For example, |
Why? We have a bit of a history of keeping the "story" when the work ends up being a collaboration. |
Rebase of: #11647
Changes:
SV_BRANCH=OISF/suricata-verify#2264