Skip to content

Commit

Permalink
fix: set unique session-cookie-name of ingresses to avoid collision (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iromli authored Apr 6, 2023
1 parent cca808b commit 1629f8e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "base-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
{{- if .Values.ingress.adminUiAdditionalAnnotations }}
{{ toYaml .Values.ingress.adminUiAdditionalAnnotations | indent 4 }}
Expand Down Expand Up @@ -586,7 +586,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "passport-statefulset-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.passportAdditionalAnnotations }}
Expand Down Expand Up @@ -640,7 +640,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "shib-stateful-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.additionalAnnotations }}
Expand Down Expand Up @@ -689,7 +689,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "admin-ui-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.adminUiAdditionalAnnotations }}
Expand Down Expand Up @@ -742,7 +742,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/session-cookie-hash: sha1
nginx.ingress.kubernetes.io/session-cookie-name: route
nginx.ingress.kubernetes.io/session-cookie-name: "casa-route"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.casaAdditionalAnnotations }}
{{ toYaml .Values.ingress.casaAdditionalAnnotations | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "base-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
{{- if .Values.ingress.adminUiAdditionalAnnotations }}
{{ toYaml .Values.ingress.adminUiAdditionalAnnotations | indent 4 }}
Expand Down Expand Up @@ -724,7 +724,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "passport-statefulset-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.passportAdditionalAnnotations }}
Expand Down Expand Up @@ -779,7 +779,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "shib-stateful-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.shibAdditionalAnnotations }}
Expand Down Expand Up @@ -833,7 +833,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "admin-ui-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.adminUiAdditionalAnnotations }}
Expand Down Expand Up @@ -888,7 +888,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/session-cookie-hash: sha1
nginx.ingress.kubernetes.io/session-cookie-name: route
nginx.ingress.kubernetes.io/session-cookie-name: "casa-route"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
{{- if .Values.ingress.casaAdditionalAnnotations }}
{{ toYaml .Values.ingress.casaAdditionalAnnotations | indent 4 }}
Expand Down
6 changes: 3 additions & 3 deletions pygluu/kubernetes/templates/nginx/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "base-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
spec:
tls:
Expand Down Expand Up @@ -265,7 +265,7 @@ metadata:
nginx.org/ssl-services: "oxtrust"
nginx.ingress.kubernetes.io/app-root: "/identity"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "stateful-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
spec:
Expand Down Expand Up @@ -300,7 +300,7 @@ metadata:
nginx.org/ssl-services: "casa"
nginx.ingress.kubernetes.io/app-root: "/casa"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-name: "casa-route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
spec:
Expand Down

0 comments on commit 1629f8e

Please sign in to comment.