-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow configuring mod_security's SecAuditLogParts #1392
Conversation
The default configuration for this includes "I" which is not always always suitable, e.g. if you cannot tolerate POST parameters appearing in your modsec_audit.log You may want to omit `I` if mod_security is protecting a hypothetical web service that accepts credit card data in a POST request, for example.
So it is valid for Debian-based systems also.
So many apologies about the many commits here. This is my first encounter with rspec, and I was initially not able to run the tests locally, so was coding blind. I believe it should now pass. I'm happy to squash the commits if desired. (Assuming this change is is accepted at all :-) ) |
It appears that the failure is unrelated to my change:
|
Should I be adding an entry to the README as well, to document this new option? |
@stig yes please! |
@@ -47,6 +47,8 @@ | |||
|
|||
$vhost_include_pattern = '*' | |||
|
|||
$modsec_audit_log_parts = 'ABIJDEFHZ' |
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.
According to the docs the default is ABCFHZ
. Why did you choose this instead? It actually says that D
isn't even implemented yet.
Allow configuring mod_security's SecAuditLogParts
The default configuration for this includes "I" which is not always
always suitable, e.g. if you cannot tolerate POST parameters appearing
in your modsec_audit.log
You may want to omit
I
if mod_security is protecting a hypotheticalweb service that accepts credit card data in a POST request, for
example.