Skip to content

Conversation

tamerz
Copy link
Contributor

@tamerz tamerz commented Nov 28, 2024

Summary

Adds a parameter to set the audit log format to JSON

https://github.com/owasp-modsecurity/ModSecurity/wiki/Reference-Manual-(v2.x)#user-content-SecAuditLogFormat

Additional Context

Since as of the current version of ModSecurity, this can only have two values Native and JSON, and Native is default, I decided only add the line if someone specifically sets the value to JSON. This means it shouldn't touch any existing config, especially on versions where this parameter may not exist.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@tamerz tamerz requested review from a team, bastelfreak, ekohl and smortex as code owners November 28, 2024 10:44
Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

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

LGTM but see inline comment for some doc improvements. Thank!

Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

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

LGTM, I regenerated REFERENCE.md so that it reflect your changes. Thanks!

@smortex smortex merged commit 97449e4 into puppetlabs:main Jan 8, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants