summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-10-25 12:07:38 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-10-25 12:07:38 -0200
commitf815712b22010de23cc5ec255c6b1a15ca28b1c8 (patch)
tree4a9b66e4e4be208addb2925071db208cdde6ac62 /manifests
parentaabdff0f60ef75cc6a8e2fcb25a85e05a407e657 (diff)
downloadpuppet-apache-f815712b22010de23cc5ec255c6b1a15ca28b1c8.tar.gz
puppet-apache-f815712b22010de23cc5ec255c6b1a15ca28b1c8.tar.bz2
Disable compression (BREACH)
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9caf35e..cbdd051 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -82,6 +82,14 @@ class apache(
require => Package["apache"],
}
+ # disable compression
+ # prevents BREACH attack
+ # see https://superuser.com/questions/627413/how-do-i-disable-http-level-compression
+ module { [ "deflate", "gzip" ]:
+ ensure => absent,
+ require => Package["apache"],
+ }
+
# apache mod_macro configuration
file { "${macros}":
ensure => present,