File tree 3 files changed +35
-3
lines changed
3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 1.1.0-next.2
18
+ version : 1.1.0-next.3
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -32,11 +32,29 @@ data:
32
32
skip_provider_button="true"
33
33
reverse_proxy="true"
34
34
# email_domains=["*"]
35
+ {{- $cookieDomains := .Values.oauth2Proxy.cookieDomains | default (list) }}
36
+ {{- $whitelistDomains := .Values.oauth2Proxy.whitelistDomains | default (list) }}
35
37
{{- if .Values.hosts.usePaths }}
38
+ {{- if gt (len $cookieDomains) 0 }}
39
+ cookie_domains={{ toJson $cookieDomains }}
40
+ {{- else }}
36
41
cookie_domains=["{{ tpl (.Values.hosts.configuration.baseHost | toString) . }}"]
37
- whitelist_domains=["{{ tpl (.Values.hosts.configuration.baseHost | toString) . }}:*","{{ $keycloakHost }}:*",".google.com:*"]
42
+ {{- end }}
43
+ {{- if gt (len $whitelistDomains) 0 }}
44
+ whitelist_domains={{ toJson $whitelistDomains }}
45
+ {{- else }}
46
+ whitelist_domains=["{{ tpl (.Values.hosts.configuration.baseHost | toString) . }}:*","{{ $keycloakHost }}:*"]
47
+ {{- end }}
38
48
{{- else }}
49
+ {{- if gt (len $cookieDomains) 0 }}
50
+ cookie_domains={{ toJson $cookieDomains }}
51
+ {{- else }}
39
52
cookie_domains=["{{ tpl (.Values.hosts.configuration.instance | toString) . }}.{{ tpl (.Values.hosts.configuration.baseHost | toString) . }}"]
40
- whitelist_domains=["{{ tpl (.Values.hosts.configuration.instance | toString) . }}:*","{{ $keycloakHost }}:*",".google.com:*"]
53
+ {{- end }}
54
+ {{- if gt (len $whitelistDomains) 0 }}
55
+ whitelist_domains={{ toJson $whitelistDomains }}
56
+ {{- else }}
57
+ whitelist_domains=["{{ tpl (.Values.hosts.configuration.instance | toString) . }}:*","{{ $keycloakHost }}:*"]
58
+ {{- end }}
41
59
{{- end }}
42
60
custom_templates_dir="/templates"
Original file line number Diff line number Diff line change @@ -185,6 +185,20 @@ keycloak:
185
185
# for how to generate a strong cookie secret.
186
186
cookieSecret : " OQINaROshtE9TcZkNAm5Zs2Pv3xaWytBmc5W7sPX7ws="
187
187
188
+ # -- Values related to OAuth2 Proxy configuration
189
+ oauth2Proxy :
190
+ # Allowed redirect domains for OAuth2 Proxy (controls whitelist_domains).
191
+ # When empty, defaults are used:
192
+ # if hosts.usePaths: [ "<baseHost>:*", "<keycloak host>:*" ]
193
+ # else: [ "<instance>:*", "<keycloak host>:*" ]
194
+ whitelistDomains : []
195
+
196
+ # Cookie domains for OAuth2 Proxy.
197
+ # When empty, defaults are used:
198
+ # if hosts.usePaths: [ "<baseHost>" ]
199
+ # else: [ "<instance>.<baseHost>" ]
200
+ cookieDomains : []
201
+
188
202
# -- Values related to the operator
189
203
# @default -- (see details below)
190
204
operator :
You can’t perform that action at this time.
0 commit comments