Skip to content

Commit c023d58

Browse files
added httponly and secure flags to haproxy cookie (#297)
1 parent b615d07 commit c023d58

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

charts/templates/configmap-haproxy.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ data:
112112
balance leastconn
113113
option forwardfor
114114
http-request replace-path {{ $appservicespath }}(/)?(.*) /\2
115-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
115+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
116116
stick-table type string len 32 size 10k expire 4h
117117
stick store-response res.cook(HostId)
118118
stick store-response res.cook(SessionId)
@@ -132,7 +132,7 @@ data:
132132
balance leastconn
133133
option forwardfor
134134
http-request replace-path {{ $adminpath }}(/)?(.*) /\2
135-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
135+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
136136
stick-table type string len 32 size 10k expire 4h
137137
stick store-response res.cook(HostId)
138138
stick store-response res.cook(SessionId)
@@ -152,7 +152,7 @@ data:
152152
balance leastconn
153153
option forwardfor
154154
http-request replace-path {{ $managepath }}(/)?(.*) /\2
155-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
155+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
156156
stick-table type string len 32 size 10k expire 4h
157157
stick store-response res.cook(HostId)
158158
stick store-response res.cook(SessionId)
@@ -177,7 +177,7 @@ data:
177177
balance leastconn
178178
option forwardfor
179179
http-request replace-path {{$path}}(/)?(.*) /\2
180-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
180+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
181181
stick-table type string len 32 size 10k expire 4h
182182
stick store-response res.cook(HostId)
183183
stick store-response res.cook(SessionId)
@@ -209,7 +209,7 @@ data:
209209
mode http
210210
balance leastconn
211211
option forwardfor
212-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
212+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
213213
stick-table type string len 32 size 10k expire 4h
214214
stick store-response res.cook(HostId)
215215
stick store-response res.cook(SessionId)
@@ -238,7 +238,7 @@ data:
238238
mode http
239239
balance leastconn
240240
option forwardfor
241-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
241+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
242242
stick-table type string len 32 size 10k expire 4h
243243
stick store-response res.cook(HostId)
244244
stick store-response res.cook(SessionId)
@@ -267,7 +267,7 @@ data:
267267
mode http
268268
balance leastconn
269269
option forwardfor
270-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
270+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
271271
stick-table type string len 32 size 10k expire 4h
272272
stick store-response res.cook(HostId)
273273
stick store-response res.cook(SessionId)
@@ -300,7 +300,7 @@ data:
300300
mode http
301301
balance leastconn
302302
option forwardfor
303-
cookie haproxy insert indirect nocache maxidle 30m maxlife 4h
303+
cookie haproxy insert indirect httponly secure nocache maxidle 30m maxlife 4h
304304
stick-table type string len 32 size 10k expire 4h
305305
stick store-response res.cook(HostId)
306306
stick store-response res.cook(SessionId)

0 commit comments

Comments
 (0)