Skip to content

Commit c7f2f24

Browse files
authored
charts: Fix XHR calls so they return 401 if not auth (#654)
Previously it would do a redirect to the OIDC provider, which the UI did not present in a way that made sense for the user.
1 parent ef45396 commit c7f2f24

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

deployments/charts/router/templates/_sidecar-helpers.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ OAuth2 Proxy sidecar container
112112
- --redirect-url=https://{{ .Values.sidecars.envoy.service.hostname }}/oauth2/callback
113113
- --silence-ping-logging=true
114114
- --skip-provider-button=true
115+
- --api-route=/api/.+
115116
{{- range .Values.sidecars.oauth2Proxy.extraArgs }}
116117
- {{ . }}
117118
{{- end }}

deployments/charts/service/templates/_sidecar-helpers.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ OAuth2 Proxy sidecar container
238238
- --redirect-url=https://{{ .Values.sidecars.envoy.service.hostname }}/oauth2/callback
239239
- --silence-ping-logging=true
240240
- --skip-provider-button=true
241+
- --api-route=/api/.+
241242
{{- range .Values.sidecars.oauth2Proxy.extraArgs }}
242243
- {{ . }}
243244
{{- end }}

deployments/charts/web-ui/templates/_sidecar-helpers.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ OAuth2 Proxy sidecar container
162162
- --redirect-url=https://{{ .Values.sidecars.envoy.service.hostname }}/oauth2/callback
163163
- --silence-ping-logging=true
164164
- --skip-provider-button=true
165+
- --api-route=/api/.+
165166
{{- range .Values.sidecars.oauth2Proxy.extraArgs }}
166167
- {{ . }}
167168
{{- end }}

0 commit comments

Comments
 (0)