Commit 1bd75eee authored by Rafael Monnerat's avatar Rafael Monnerat

erp5: backend apache must not handle Remote-User

  The backend haproxy must not handle the arbitrary variable Remote-User from headers.

It isn't implemented authentication on this backend, so this setting is irrelevant by default.

The proper way to handle authentication is use a trustfull frontend that will set this variable after properly authenticate the certificate and extract the user.
parent 3d63cd39
......@@ -94,7 +94,7 @@ md5sum = 0fad9497da12ed0186dca5236c23f3a7
[template-haproxy-cfg]
filename = haproxy.cfg.in
md5sum = 2cd76971b64b0bf7771978ad07bfc2e5
md5sum = 50c72e1934e589b0e26918cc53ee1fc0
[template-rsyslogd-cfg]
filename = rsyslogd.cfg.in
......
......@@ -192,9 +192,6 @@ listen {{ name }}
# remove X-Forwarded-For unless client presented a verified certificate
http-request del-header X-Forwarded-For unless { ssl_c_verify 0 } { ssl_c_used 1 }
# set Remote-User if client presented a verified certificate
http-request del-header Remote-User
http-request set-header Remote-User %{+Q}[ssl_c_s_dn(cn)] if { ssl_c_verify 0 } { ssl_c_used 1 }
# reject invalid host header before using it in path
http-request deny deny_status 400 if { req.hdr(host) -m sub / }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment