Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cleanup dex config in profile and move common config to parent values yaml #211

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions charts/testkube-enterprise/profiles/values.demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,34 +100,13 @@ dex:
enabled: true
configTemplate:
customConfig: ""
base: |
logger:
level: debug
format: json
web:
http: 0.0.0.0:5556
expiry:
deviceRequests: "5m"
signingKeys: "6h"
idTokens: "24h"
refreshTokens:
disableRotation: false
reuseInterval: "3s"
validIfNotUsedFor: "2160h" # 90 days
absoluteLifetime: "3960h" # 165 days
oauth2:
responseTypes: ["code"]
skipApprovalScreen: true
alwaysShowLoginScreen: false
passwordConnector: local
additionalStaticClients: []
additionalConfig: |
staticClients:
additionalStaticClients:
- id: testkube-enterprise
redirectURIs:
- http://localhost:8090/auth/callback
name: Testkube
secret: QWkVzs3nct6HZM5hxsPzwaZtq
additionalConfig: |
enablePasswordDB: true
staticPasswords:
- email: "[email protected]"
Expand Down
12 changes: 6 additions & 6 deletions charts/testkube-enterprise/templates/dex-config-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ stringData:
config.yaml: |-
{{- .Values.dex.configTemplate.base | nindent 4 }}
storage:
{{- if .Values.dex.storage }}
{{- toYaml .Values.dex.storage | nindent 6 }}
{{- with .Values.dex.storage }}
{{- toYaml . | nindent 6 }}
{{- else }}
type: kubernetes
config:
Expand All @@ -34,11 +34,11 @@ stringData:
secret: '{{ $api.api.oauth.clientSecret }}'
redirectURIs:
- '{{ if .Values.global.domain }}https://{{ .Values.global.restApiSubdomain }}.{{ .Values.global.domain }}/auth/callback{{ else }}http://localhost:8090/auth/callback{{ end }}'
{{- if .Values.dex.configTemplate.additionalStaticClients }}
{{- toYaml .Values.dex.configTemplate.additionalStaticClients | nindent 6 }}
{{- with .Values.dex.configTemplate.additionalStaticClients }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.dex.configTemplate.additionalConfig }}
{{ .Values.dex.configTemplate.additionalConfig | nindent 4 }}
{{- with .Values.dex.configTemplate.additionalConfig }}
{{ . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
16 changes: 16 additions & 0 deletions charts/testkube-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,22 @@ dex:
logger:
level: debug
format: json
web:
http: 0.0.0.0:5556
expiry:
deviceRequests: "5m"
signingKeys: "6h"
idTokens: "24h"
refreshTokens:
disableRotation: false
reuseInterval: "3s"
validIfNotUsedFor: "2160h" # 90 days
absoluteLifetime: "3960h" # 165 days
oauth2:
responseTypes: ["code"]
skipApprovalScreen: true
alwaysShowLoginScreen: false
passwordConnector: local
# -- Additional static clients which will be appended to the dex staticClients config
additionalStaticClients: []
# - id: testkube-cloud-local
Expand Down
Loading