-
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
tool: rewrite suricatasc and suricatactl in rust - v10 #12540
Conversation
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12540 +/- ##
==========================================
+ Coverage 80.68% 80.71% +0.02%
==========================================
Files 925 926 +1
Lines 258914 258917 +3
==========================================
+ Hits 208914 208977 +63
+ Misses 50000 49940 -60
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 24662 |
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.
Crom the docs, it looks like this will also make it easier for less experienced folks to try the unix-socket. Maybe now I'll be able to use it :P
Breaks make distcheck on the usual suspect in my CI: FreeBSD 14.
|
I guess expected, but this does break my CI checks for unix socket that don't install anything and call the python script directly. Not sure if this is worth considering as part of a upgrade doc/process, but it doesn't make it transparent. |
Yeah, I guess its transparent for end-users, but not for those running from the source directory. There'll be a path change like |
Out of date Cargo.lock, I forgot to update it. Need to add a CI check for that! |
Continued at #12552:
|
Previous PR: #12504
Changes:
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