Configuring Matrix Authentication Service
Configuring Matrix Authentication Service
See how to download example files from the helm chart here.
Configuration
For a quick setup using the default settings, see the minimal fragment example in charts/matrix-stack/ci/fragments/matrix-authentication-service-minimal.yaml
.
Using Element Web ingress
If Element Web is deployed, you can use the ingress host to access the Matrix Authentication Service. To do so, you can skip configuring matrixAuthenticationService.ingress
. The chart will automatically expose the Matrix Authentication Service on the same ingress as Element Web, under the path /account
.
Configuring a postgresql database
If you want to use an external postgresql database, merge 2 files to postgresql.yaml
:
-
charts/matrix-stack/ci/fragments/matrix-authentication-service-postgres.yaml
-
charts/matrix-stack/ci/fragments/matrix-authentication-service-postgres-secrets-in-helm.yaml
orcharts/matrix-stack/ci/fragments/matrix-authentication-service-postgres-secrets-externally.yaml
Credentials
Credentials are generated if possible. Alternatively they can either be provided inline
in the values with value
or if you have an existing Secret
in the cluster in the
same namespace you can use secret
andsecretKey
to reference it.
If you dont want the chart to generate the secret, please refer to the following values fragments examples to see the secrets to configure.
Matrix Authentication Service requires encryptionSecret
, synapseSharedSecret
and synapseOIDCClientSecret
secrets:
-
charts/matrix-stack/ci/fragments/matrix-authentication-service-secrets-in-helm.yaml
-
charts/matrix-stack/ci/fragments/matrix-authentication-service-secrets-externally.yaml
If you are using LDAP Authentication, this will also need to configure dex.masClientSecret
.
### Additional configuration
Additional Matrix Authentication Service configuration can be provided inline in the values as a string with
matrix-authentication-service:
additional:
## Either reference config to inject by:
1-custom-config:
config: |
admin_contact: "mailto:admin@example.com"
## Either reference an existing `Secret` by:
2-custom-config:
configSecret: custom-matrix-authentication-service-config
configSecretKey: shared.yaml
Disabling Matrix Authentication Service
Matrix Authentication Service is enabled for deployment by default can be disabled with the following values
matrix-authentication-service:
enabled: false