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

Adding ModSecurity parameter for audit log format. #2583

Merged
merged 6 commits into from
Jan 8, 2025

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 bastelfreak, ekohl, smortex and a team 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!

manifests/params.pp Outdated Show resolved Hide resolved
manifests/mod/security.pp Outdated Show resolved Hide resolved
manifests/mod/security.pp Outdated Show resolved Hide resolved
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.

2 participants