@@ -266,8 +266,19 @@ data:
266266 # The maximum allowed duration by which sent events can be delayed, as per MSC4140.
267267 max_event_delay_duration: {{ $.Values.synapse.max_event_delay_duration }}
268268 {{- end }}
269- {{- if or $.Values.matrixAuthentication.enabled $.Values.experimentalFeatures.msc3266.enabled }}
269+ {{- if or $.Values.matrixAuthentication.enabled }}
270270 # https://matrix-org.github.io/matrix-authentication-service/setup/homeserver.html#configure-the-homeserver-to-delegate-authentication-to-the-service
271+ matrix_authentication_service:
272+ # Enable the MAS integration
273+ enabled: true
274+ # The base URL where Synapse will contact MAS
275+ {{- $defaultMasEndpoint := http://project.{{ .Release.Namespace }} }}
276+ endpoint: {{ $.Values.synapse.matrixAuthenticationServiceEndpoint | default (printf "http://matrix-authentication.%s.svc:%s" $.Release.Namespace $.Values.matrixAuthentication.service.port) }}
277+ # The shared secret used to authenticate MAS requests, must be the same as `matrix.secret` in the MAS configuration
278+ # See https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#matrix
279+ secret: {{ $.Values.experimentalFeatures.msc3861.admin_token }}
280+ {{- end }}
281+ {{- if or $.Values.experimentalFeatures.msc3967.enabled $.Values.experimentalFeatures.msc3266.enabled }}
271282 experimental_features:
272283 {{- if $.Values.experimentalFeatures.msc3266.enabled }}
273284 # MSC3266: Room summary API. Used for knocking over federation
@@ -276,9 +287,6 @@ data:
276287 msc3266:
277288 enabled: {{ $.Values.experimentalFeatures.msc3266.enabled }}
278289 {{- end }}
279- {{- if $.Values.experimentalFeatures.msc3861.enabled }}
280- msc3861: {{ $.Values.experimentalFeatures.msc3861 | toYaml | nindent 8 }}
281- {{- end }}
282290 {{- if $.Values.experimentalFeatures.msc3967.enabled }}
283291 msc3967:
284292 enabled: true
0 commit comments