Skip to content

Commit

Permalink
add some comments + oidc scopes
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <[email protected]>
  • Loading branch information
davidspek committed Sep 14, 2023
1 parent f37b9b5 commit f1254e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kubeflow/helm/gateway/templates/oauth2-envoy-filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
{{- include "gateway.selectorLabels" .Subcharts.gateway | nindent 6 }}
jwtRules:
- forwardOriginalToken: true
outputPayloadToHeader: Authorization # TODO: needed so the requestauth resource in user namespace works
outputPayloadToHeader: Authorization # TODO: needed so the requestauth resource in user namespace works. Overwrites what `forward_bearer_token` sets in the envoy filter. Should the auth token or JWT be passed in the authorization header?
fromHeaders: # TODO: possibly add this to profile controller setup
- name: cookie
prefix: IdToken=
Expand Down
5 changes: 5 additions & 0 deletions kubeflow/helm/gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ fullnameOverride: ""

provider: ""

# TODO: investigate XSRF filter in envoy
# TODO: check if we should be passing the access token through in the Authorization header or just the JWT

oidc:
clientID: ""
clientSecret: ""
hmacSecret: ""
scopes:
- openid
- profile
- offline
- offline_access

gateway:
name: kubeflow-gateway
Expand Down

0 comments on commit f1254e5

Please sign in to comment.