Skip to content

Commit 6c988a5

Browse files
Merge pull request #636 from alebedev87/dcm-dynamic-cookie
NE-1815: Activate dynamic cookies for dynamic server slots (DCM)
2 parents e05cf92 + 8a9230d commit 6c988a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ backend {{ genBackendNamePrefix $cfg.TLSTermination }}:{{ $cfgIdx }}
703703
{{- "" }} secure attr SameSite={{ $samesite }}
704704
{{- end }}
705705
{{- end }}
706+
{{- with $dynamicConfigManager }} dynamic
707+
{{- end }}
706708
{{- end }}{{/* end disable cookies check */}}
707709

708710
{{- if matchValues (print $cfg.TLSTermination) "edge" "reencrypt" }}
@@ -760,6 +762,7 @@ backend {{ genBackendNamePrefix $cfg.TLSTermination }}:{{ $cfgIdx }}
760762

761763
{{- with $dynamicConfigManager }}
762764
{{- if (eq $cfg.TLSTermination "reencrypt") }}
765+
dynamic-cookie-key {{ $cfg.RoutingKeyName }}
763766
{{- range $idx, $serverName := $dynamicConfigManager.GenerateDynamicServerNames $cfgIdx }}
764767
server {{ $serverName }} 172.4.0.4:8765 weight 0 ssl disabled check inter {{ firstMatch $timeSpecPattern (index $cfg.Annotations "router.openshift.io/haproxy.health.check.interval") (env "ROUTER_BACKEND_CHECK_INTERVAL") "5000ms" }}
765768
{{- if gt (len (index $cfg.Certificates (printf "%s_pod" $cfg.Host)).Contents) 0 }} verify required ca-file {{ $workingDir }}/router/cacerts/{{$cfgIdx }}.pem

0 commit comments

Comments
 (0)