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

Added support for modsecurity parameter SecPcreMatchLimit and SecPcr… #1296

Merged
merged 1 commit into from
Feb 2, 2016
Merged

Conversation

whotwagner
Copy link

…eMatchLimitRecursion

Set default PcreMatchLimit to 1000

fixed default variables for secpcrematchlimit(recursion) in params.pp

@tphoney
Copy link
Contributor

tphoney commented Dec 10, 2015

hi @whotwagner this change looks ok, but it will definitely need a readme update to explain the new parameter

@whotwagner
Copy link
Author

Hello, I changed the README.md and also set the default-values to modsecurity's default-values as it is described here https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#SecPcreMatchLimit.

@@ -3,6 +3,8 @@
$activated_rules = $::apache::params::modsec_default_rules,
$modsec_dir = $::apache::params::modsec_dir,
$modsec_secruleengine = $::apache::params::modsec_secruleengine,
$modsec_secpcrematchlimit = $::apache::params::modsec_secpcrematchlimit,
$modsec_secpcrematchlimitrecursion = $::apache::params::modsec_secpcrematchlimitrecursion,
Copy link
Contributor

Choose a reason for hiding this comment

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

do we really need the $modspec_ prefix within the mod::security module?

Copy link
Author

Choose a reason for hiding this comment

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

good question, the parameter-name is long enough without the prefix. I used the prefix because all other parameter had this prefix too. i thought it might be some kind of naming convention.

Copy link
Contributor

Choose a reason for hiding this comment

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

@whotwagner it seems to vary from module to module :S

…eMatchLimitRecursion

fixed default variables for secpcrematchlimit(recursion) in params.pp

added documentation for SecPcreMatchLimit and SecPcreMatchLimitRecursion. also changed the default value to 1500(its modsecurity's default value)

removed modsec_-prefix from variable names
@whotwagner
Copy link
Author

I changed(shortened) the variable-names and made a rebase again

tphoney added a commit that referenced this pull request Feb 2, 2016
	Added support for modsecurity parameter SecPcreMatchLimit and SecPcr…
@tphoney tphoney merged commit 5150b35 into puppetlabs:master Feb 2, 2016
@tphoney
Copy link
Contributor

tphoney commented Feb 2, 2016

Thanks for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants