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

userguide: explain rule types and categorization - v10 #12411

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jufajardini
Copy link
Contributor

Add documentation about the rule types introduced by commit 2696fda.

Add doc tags around code definitions that are referenced in the docs.

Task #https://redmine.openinfosecfoundation.org/issues/7031

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

Previous PR: #12209

Sharing as a Draft considering there's still one flowchart missing, we'll want to have it, before actually merging this work.

Compiled version of the doc can be seen at: https://suri-rtd-test.readthedocs.io/en/doc-sigtypes-et-properties-v10/rules/rule-types.html#detailed-flowcharts-sig-type

Describe changes:

  • add explanation about flowbits set and isset and impact on rule state
  • add references to tickets that cover topics related to this doc
  • address comments made by Jamie and Jason:
    -- move doc to last within the Suricata Rules chapter
    -- add more flowcharts to the end of the documents (now missing one for DE only)
    -- add brief explanation about pseudo packet
    -- add brief explanation for each rule
    -- move some of the notes/ warnings to specific rule type subsection
    -- add reference to each rule type subsections to the signature types table
    -- add a reference to the Transactions devguide doc

Add documentation about the rule types introduced by commit
2696fda.

Add doc tags around code definitions that are referenced in the docs.

Task #https://redmine.openinfosecfoundation.org/issues/7031
@jufajardini jufajardini added the typo/doc update No code change : only doc or typo fixes label Jan 16, 2025
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.62%. Comparing base (078c646) to head (3cbc277).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12411      +/-   ##
==========================================
- Coverage   80.63%   80.62%   -0.02%     
==========================================
  Files         917      917              
  Lines      258687   258687              
==========================================
- Hits       208601   208569      -32     
- Misses      50086    50118      +32     
Flag Coverage Δ
fuzzcorpus 56.81% <ø> (ø)
livemode 19.39% <ø> (-0.01%) ⬇️
pcap 44.27% <ø> (+0.01%) ⬆️
suricata-verify 63.23% <ø> (+<0.01%) ⬆️
unittests 58.50% <ø> (-0.01%) ⬇️

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

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24247

A fake packet is then injected in the flow to finish up processing before ending it.

Those two types will be more documented soon (tracking
`#7424 <https://redmine.openinfosecfoundation.org/issues/7424>`_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: missing )

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``app_layer``, ``app_tx``, ``pkt``, ``stream`` and ``stream-pkt`` flows.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require_packet and require_stream can be seen as flags "need_packet" and "need_stream" in the engine analysis output

@victorjulien
Copy link
Member

I think this is great. I added 2 minor comments. When they are addressed I think we're ready to merge and do any further updates incrementally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typo/doc update No code change : only doc or typo fixes
Development

Successfully merging this pull request may close these issues.

3 participants