Skip to content

Commit 87597f4

Browse files
author
OpenShift Bot
authored
Merge pull request #13221 from JacobTanenbaum/BZ1428720
Merged by openshift-bot
2 parents 5444fac + 06cd1d1 commit 87597f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

images/router/haproxy/conf/haproxy-config.template

+4
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,11 @@ backend be_secure_{{$cfgIdx}}
448448
http-request set-header X-Forwarded-Proto https if { ssl_fc }
449449
http-request set-header Forwarded for=%[src];host=%[req.hdr(host)];proto=%[req.hdr(X-Forwarded-Proto)]
450450
{{ if not (matchPattern "true|TRUE" (index $cfg.Annotations "haproxy.router.openshift.io/disable_cookies")) }}
451+
{{ if ne $cfg.InsecureEdgeTerminationPolicy "Allow" }}
451452
cookie {{$cfg.RoutingKeyName}} insert indirect nocache httponly secure
453+
{{ else }}
454+
cookie {{$cfg.RoutingKeyName}} insert indirect nocache httponly
455+
{{ end }}
452456
{{ end }}
453457
{{ range $serviceUnitName, $weight := $cfg.ServiceUnitNames }}
454458
{{ if ne $weight 0 }}

0 commit comments

Comments
 (0)