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 - v11 #12552

Closed
wants to merge 9 commits into from

Conversation

jasonish
Copy link
Member

Previous PR: #12540

Changes:

  • Should fix distcheck on FreeBSD
  • Add CI check for out-of-date Cargo.lock.in, the source of the error on the FreeBSD distcheck
  • Add upgrade note

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
Copy link
Member Author

Rust audit issue addressed here: #12554

@jasonish jasonish closed this Feb 10, 2025
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.73%. Comparing base (d4330ef) to head (454214a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12552      +/-   ##
==========================================
+ Coverage   80.68%   80.73%   +0.04%     
==========================================
  Files         925      926       +1     
  Lines      258914   258917       +3     
==========================================
+ Hits       208914   209030     +116     
+ Misses      50000    49887     -113     
Flag Coverage Δ
fuzzcorpus 56.96% <ø> (+0.13%) ⬆️
livemode 19.41% <ø> (+<0.01%) ⬆️
pcap 44.20% <ø> (+<0.01%) ⬆️
suricata-verify 63.37% <ø> (-0.02%) ⬇️
unittests 58.38% <ø> (-0.01%) ⬇️

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

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.

1 participant