Skip to content

Conversation

@kaddujames501-ship-it
Copy link

@kaddujames501-ship-it kaddujames501-ship-it commented Oct 31, 2025

Add test to ensure Suricata rejects invalid force-hash algorithm values in file logging configuration. The test verifies that an invalid hash type (e.g., 'shanani') causes Suricata to exit with an error during configuration validation.

Ticket

If your pull request is related to a Suricata ticket, please provide
the full URL to the ticket here so this pull request can monitor
changes to the ticket status: OISF/suricata#14223

Redmine ticket: OISF#4330

checks:
- shell:
args: |
(grep -q "Invalid configuration: force-hash algorithm 'shanani' must be one of: md5, sha1, sha256" suricata.log || \
Copy link
Member

Choose a reason for hiding this comment

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

which one is expected to succeed? Why are there 2 checks?

Copy link
Member

Choose a reason for hiding this comment

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

Hi! This does not seem to be resolved/answered. Could you please address this?

Copy link
Member

Choose a reason for hiding this comment

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

Still open :-/

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@catenacyber catenacyber added the requires suricata pr Depends on a PR in Suricata label Nov 3, 2025
@jufajardini jufajardini added the outreachy Contributions made by Outreachy applicants label Nov 3, 2025
@kaddujames501-ship-it kaddujames501-ship-it marked this pull request as draft November 5, 2025 14:23
Add test to ensure Suricata rejects invalid force-hash algorithm values
in file logging configuration. The test verifies that an invalid hash
type (e.g., 'shanani') causes Suricata to exit with an error during
configuration validation.

Issue: OISF#4330
@kaddujames501-ship-it kaddujames501-ship-it marked this pull request as ready for review November 5, 2025 14:46
@kaddujames501-ship-it
Copy link
Author

hello @catenacyber , @inashivb changes are ready

@catenacyber
Copy link
Collaborator

New version in #2751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

outreachy Contributions made by Outreachy applicants requires suricata pr Depends on a PR in Suricata

Development

Successfully merging this pull request may close these issues.

5 participants