diff --git a/charts/matrix-synapse/Chart.yaml b/charts/matrix-synapse/Chart.yaml index b40d6d8..2e98e08 100644 --- a/charts/matrix-synapse/Chart.yaml +++ b/charts/matrix-synapse/Chart.yaml @@ -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 diff --git a/charts/matrix-synapse/templates/configuration.yaml b/charts/matrix-synapse/templates/configuration.yaml index ef69997..9121a21 100644 --- a/charts/matrix-synapse/templates/configuration.yaml +++ b/charts/matrix-synapse/templates/configuration.yaml @@ -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