Skip to content

Commit

Permalink
Merge pull request #2600 from kubecost/nick/oidc-offline-validation
Browse files Browse the repository at this point in the history
skip online validation helm value
  • Loading branch information
nickcurie authored Sep 29, 2023
2 parents a1ae6f1 + 6f80b21 commit 1b58ae5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ spec:
{{- if .Values.oidc.enabled }}
- name: OIDC_ENABLED
value: "true"
- name: OIDC_SKIP_ONLINE_VALIDATION
value: {{ (quote .Values.oidc.skipOnlineTokenValidation) | default (quote false) }}
{{- end}}
{{- if .Values.saml }}
{{- if .Values.saml.enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data:
"loginRedirectURL" : "{{ .Values.oidc.loginRedirectURL }}",
"discoveryURL" : "{{ .Values.oidc.discoveryURL }}",
"hostedDomain" : "{{ .Values.oidc.hostedDomain }}",
"skipOnlineTokenValidation" : "{{ .Values.oidc.skipOnlineTokenValidation | default "false" }}",
"rbac" : {
"enabled" : {{ .Values.oidc.rbac.enabled }},
"groups" : [
Expand Down
1 change: 1 addition & 0 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ oidc:
authURL: "https://my.auth.server/authorize" # endpoint for login to auth server
loginRedirectURL: "http://my.kubecost.url/model/oidc/authorize" # Kubecost url configured in provider for redirect after authentication
discoveryURL: "https://my.auth.server/.well-known/openid-configuration" # url for OIDC endpoint discovery
skipOnlineTokenValidation: false # if true, will skip accessing OIDC introspection endpoint for online token verification, and instead try to locally validate JWT claims
# hostedDomain: "example.com" # optional, blocks access to the auth domain specified in the hd claim of the provider ID token
rbac:
enabled: false
Expand Down

0 comments on commit 1b58ae5

Please sign in to comment.