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

tool: rewrite suricatasc and suricatactl in rust - v13 #12561

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jasonish
Copy link
Member

Previous PR: #12554

Changes:

  • Re-add some features to clap that were disabled when not using
    default features, and we depend on. Should fix CI.

Replaces suricatasc and suricatactl with Rust variants removing python from our
distributed code (except suricata-update).

These now pass CI as some CI tests now use suricatasc where they didn't in the
previous version.

These should also be pure drop-in replacements.

Usually rewrites are a bad idea, but these are small, and in our core language
set, and may inspire us to write new more interesting tooling in the future,
like perhaps a plugin manager?

Ticket: https://redmine.openinfosecfoundation.org/issues/6287

This is a re-implementation of suricatasc program in Rust that
attempts to be a 100% drop-in replacement.
As we have 2 Windows builds, do one using the release-style
distribution file.
These should probably be removed even without the rewrite, and
suricatasc has been installed as a proper program for many releases.
After a build, check if Cargo.lock.in and Cargo.lock differ, if so,
Cargo.lock.in needs an update as part of a depedency update.
Without this script `make distcheck` fails on a system with
documentation tooling installed, as its required to build the EVE
appendix.
@jasonish jasonish requested review from inashivb, jufajardini and a team as code owners February 11, 2025 19:34
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.71%. Comparing base (ef044b2) to head (a56d0ae).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12561      +/-   ##
==========================================
- Coverage   80.71%   80.71%   -0.01%     
==========================================
  Files         928      929       +1     
  Lines      259007   259010       +3     
==========================================
- Hits       209063   209054       -9     
- Misses      49944    49956      +12     
Flag Coverage Δ
fuzzcorpus 56.96% <ø> (+<0.01%) ⬆️
livemode 19.40% <ø> (-0.01%) ⬇️
pcap 44.20% <ø> (-0.05%) ⬇️
suricata-verify 63.41% <ø> (+0.01%) ⬆️
unittests 58.38% <ø> (-0.01%) ⬇️

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

@jasonish
Copy link
Member Author

RPM builds expected to fail. I could disable them for now, but fixing the RPMs required the breaking changes (for them) to be merged into Suricata master first.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24691

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.

2 participants