-
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
7.0.x: backport treating unknown requirements as unsatisfied with opt-out flag - v1 #12224
Conversation
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 (cherry picked from commit 820a3e5)
The new behavior in 8, and backported is to treat unknown requirements as unsatisfied requirements. For 7.0.8, add a configuration option, "ignore-unknown-requirements" to completely ignore unknown requirements, effectively treating them as available. Ticket: OISF#7434
default-rule-path: /var/lib/suricata/rules | ||
rule-files: | ||
- suricata.rules | ||
ignore-unknown-requirements: true |
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 opted for a top-level key to keep it simple, and to keep it close to where you define your rules. The other option would be under detect somewhere.
@@ -34,6 +34,27 @@ also check all the new features that have been added but are not covered by | |||
this guide. Those features are either not enabled by default or require | |||
dedicated new configuration. | |||
|
|||
Upgrading to 7.0.7 |
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.
Grr...
Replaced by #12226. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main-7.0.x #12224 +/- ##
==============================================
- Coverage 83.18% 83.17% -0.01%
==============================================
Files 922 922
Lines 260858 260880 +22
==============================================
- Hits 216982 216975 -7
- Misses 43876 43905 +29
Flags with carried forward coverage won't be shown. Click here to find out more. |
Ticket: https://redmine.openinfosecfoundation.org/issues/7434
SV_BRANCH=OISF/suricata-verify#2162