Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#1398 from aledbf/nginx-httpoxy
Browse files Browse the repository at this point in the history
Mitigate HTTPoxy Vulnerability
  • Loading branch information
bprashanth authored Jul 20, 2016
2 parents 5306ca4 + a38f2b2 commit 1a04fa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/nginx/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ http {
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $pass_access_scheme;

# mitigate HTTPoxy Vulnerability
# https://www.nginx.com/blog/mitigating-the-httpoxy-vulnerability-with-nginx/
proxy_set_header Proxy "";

proxy_connect_timeout {{ $cfg.proxyConnectTimeout }}s;
proxy_send_timeout {{ $cfg.proxySendTimeout }}s;
proxy_read_timeout {{ $cfg.proxyReadTimeout }}s;
Expand Down

0 comments on commit 1a04fa4

Please sign in to comment.