Deploy httpd config to prevent varnish attacks

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-08-02 17:29:00 +00:00
parent 753f640cd6
commit ef52ab8e89
2 changed files with 18 additions and 0 deletions

View file

@ -52,6 +52,20 @@
- httpd
- httpd/website
- name: Copy over varnish workaround for {{name}}
template: >
src=blockchunked.conf
dest=/etc/httpd/conf.d/{{name}}/blockchunked.conf
owner=root
group=root
mode=0644
notify:
- reload proxyhttpd
tags:
- httpd
- httpd/website
- security/workaround
- name: And lastly, the robots.txt file
copy: >
src={{item}}

View file

@ -0,0 +1,4 @@
# Workaround for https://www.varnish-cache.org/lists/pipermail/varnish-announce/2017-August/000722.html
<If "%{HTTP:Transfer-Encoding} == 'chunked'">
Require all denied
</If>