Skip to content

Commit

Permalink
fix: address gateway customization in shib and overide ttl
Browse files Browse the repository at this point in the history
closes #630
  • Loading branch information
moabu committed Apr 1, 2024
1 parent 39cd007 commit ef59ebe
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ spec:
consistentHash:
httpCookie:
name: casa-route
ttl: 60s
ttl: {{ .Values.istioDestinationRuleCookieTTL }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ spec:
consistentHash:
httpCookie:
name: passport-statefulset-route
ttl: 60s
ttl: {{ .Values.istioDestinationRuleCookieTTL }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ spec:
consistentHash:
httpCookie:
name: shib-stateful-route
ttl: 60s
ttl: {{ .Values.istioDestinationRuleCookieTTL }}
path: /idp
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ spec:
hosts:
- {{ .Values.global.domain }}
gateways:
- {{ .Release.Name }}-global-gtw
{{- if .Values.global.istio.gateways }}
{{- with .Values.global.istio.gateways }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- else }}
- {{ .Release.Name }}-global-gtw
{{- end }}
http:
- name: {{ .Release.Name }}-istio-oxshibbioleth
match:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ spec:
consistentHash:
httpCookie:
name: admin-ui-route
ttl: 60s
ttl: {{ .Values.istioDestinationRuleCookieTTL }}
{{- end }}
8 changes: 8 additions & 0 deletions pygluu/kubernetes/templates/helm/gluu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,8 @@ oxtrust:
# - /tmp/custom.sh
# - /tmp/custom2.sh
customScripts: []
# -- Istio Destination Rule loadBalancer.consistentHash.httpCookie.ttl if istio ingress is enabled
istioDestinationRuleCookieTTL: 60s

# -- FIDO 2.0 (FIDO2) is an open authentication standard that enables leveraging common devices to authenticate to online services in both mobile and desktop environments.
fido2:
Expand Down Expand Up @@ -1779,6 +1781,8 @@ casa:
# - /tmp/custom.sh
# - /tmp/custom2.sh
customScripts: []
# -- Istio Destination Rule loadBalancer.consistentHash.httpCookie.ttl if istio ingress is enabled
istioDestinationRuleCookieTTL: 60s

# -- Gluu interface to Passport.js to support social login and inbound identity.
oxpassport:
Expand Down Expand Up @@ -1899,6 +1903,8 @@ oxpassport:
# - /tmp/custom.sh
# - /tmp/custom2.sh
customScripts: []
# -- Istio Destination Rule loadBalancer.consistentHash.httpCookie.ttl if istio ingress is enabled
istioDestinationRuleCookieTTL: 60s

# -- Shibboleth project for the Gluu Server's SAML IDP functionality.
oxshibboleth:
Expand Down Expand Up @@ -2021,6 +2027,8 @@ oxshibboleth:
# - /tmp/custom.sh
# - /tmp/custom2.sh
customScripts: []
# -- Istio Destination Rule loadBalancer.consistentHash.httpCookie.ttl if istio ingress is enabled
istioDestinationRuleCookieTTL: 60s

# -- CacheRefreshRotation is a special container to monitor cache refresh on oxTrust containers. This may be depreciated.
cr-rotate:
Expand Down

0 comments on commit ef59ebe

Please sign in to comment.