Skip to content
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

requires: check for existence of keyword - v2 #12173

Closed
wants to merge 3 commits into from

Conversation

jasonish
Copy link
Member

Previous PR: #12138

Changes from previous PR:

  • Add ticket for unknown requirements (should be backported)
  • Doc typo.

Ticket for requires keyword: https://redmine.openinfosecfoundation.org/issues/7403

Ticket for unknown requirements: https://redmine.openinfosecfoundation.org/issues/7418

SV_BRANCH=OISF/suricata-verify#2133

For example, "requires: foo bar" is an unknown requirement, however
its not tracked, nor an error as it follows the syntax. Instead,
record these unknown keywords, and fail the requirements check if any
are present.

A future version of Suricata may have new requires keywords, for
example a check for keywords.

Ticket: OISF#7418
To be used by the requires keyword to check for keyword support.

Ticket: OISF#7403
For example:

    requires: keyword foo;

Will require that Suricata supports the "foo" keyword.

Ticket: OISF#7403
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 95.74468% with 2 lines in your changes missing coverage. Please review.

Project coverage is 49.85%. Comparing base (bd7d38e) to head (33d2f46).
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12173      +/-   ##
==========================================
+ Coverage   49.81%   49.85%   +0.04%     
==========================================
  Files         909      909              
  Lines      257904   257949      +45     
==========================================
+ Hits       128467   128597     +130     
+ Misses     129437   129352      -85     
Flag Coverage Δ
fuzzcorpus 60.98% <34.61%> (+0.03%) ⬆️
livemode 19.43% <0.00%> (-0.01%) ⬇️
pcap 44.40% <0.00%> (-0.01%) ⬇️
suricata-verify 62.73% <73.07%> (-0.02%) ⬇️
unittests 8.99% <68.08%> (+0.01%) ⬆️

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

@victorjulien
Copy link
Member

I think this looks good. The only thing I'm missing is an entry into the upgrade doc. It's a behavior change.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23594

@jasonish
Copy link
Member Author

Replaced by #12177.

@jasonish jasonish closed this Nov 28, 2024
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