feat Add OIDC providers configuration

This commit is contained in:
Tommy 2024-01-18 13:55:50 +01:00
parent a09ed65baa
commit a791adb21f
No known key found for this signature in database
2 changed files with 20 additions and 2 deletions

View file

@ -5,7 +5,7 @@ icon: https://matrix.org/images/matrix-logo.svg
appVersion: 1.99.0
type: application
version: 4.0.4
version: 4.0.5
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -107,6 +107,7 @@ data:
media_store_path: "/synapse/data/media"
uploads_path: "/synapse/data/uploads"
{{- if .Values.config.recaptcha }}
## Captcha ##
@ -127,7 +128,24 @@ data:
enable_registration: {{ .Values.config.enableRegistration | default false }}
registration_requires_token: {{ .Values.config.enableRegistration | default false }}
## Metrics ###
{{- if .Values.config.oidcProviders }}
oidc_providers:
{{- range .Values.config.oidcProviders }}
- {{- range $key, $value := . }}
{{- if eq $key "clientSecretKeyRef" }}
client_secret:
valueFrom:
secretKeyRef:
name: {{ .Values.existingSecrets }}
key: "$value"
{{- else }}
{{ $key }}: {{ $value | toYaml | nindent 6 }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
## Metrics ##
enable_metrics: true