From a791adb21f1841f6b27fe8508220331e690a4b9f Mon Sep 17 00:00:00 2001 From: Tommy Date: Thu, 18 Jan 2024 13:55:50 +0100 Subject: [PATCH] feat Add OIDC providers configuration --- charts/matrix-synapse/Chart.yaml | 2 +- .../templates/configuration.yaml | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) 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