Skip to content

matrixAuthenticationService.additional.* values are ignored for MAS ConfigMap (no user-config.yaml rendered) #1219

@d-ryabov

Description

@d-ryabov

Describe the bug
When using the matrix-stack-26.3.2 chart, matrixAuthenticationService.additional.* values are accepted by Helm (visible in helm get values), but they are not rendered into the ess-matrix-authentication-service ConfigMap. As a result, it is not possible to extend the Matrix Authentication Service configuration via additional files, even though this mechanism works for Synapse.

Environment

  • Chart: matrix-stack-26.3.2
  • App: matrix-authentication-service 1.14.0
  • Deployed via: helm upgrade using the OCI chart from ghcr.io/element-hq/ess-helm/matrix-stack
  • Namespace: ess

To Reproduce
Steps to reproduce the behavior:

  1. Install or upgrade the chart:

    helm upgrade --namespace ess ess \
      oci://ghcr.io/element-hq/ess-helm/matrix-stack \
      -f auth.yaml \
      --wait --debug --timeout 5m

    where auth.yaml contains the matrixAuthenticationService.additional.user-config.yaml.config block as shown above.

  2. Verify that values are present:

    helm get values ess -n ess

    Check that matrixAuthenticationService.additional.user-config.yaml.config is listed.

  3. Inspect the rendered manifest:

    helm get manifest ess -n ess | sed -n '/name: ess-matrix-authentication-service/,/---/p'
  4. Observe that the ConfigMap only contains mas-config-overrides.yaml and mas-config-underrides.yaml, with no key created from matrixAuthenticationService.additional.user-config.yaml.

Observed behavior

  • The rendered manifest for ess-matrix-authentication-service (via helm get manifest ess -n ess) contains only two keys in the ConfigMap data section:
  mas-config-underrides.yaml: |
    policy:
      
        admin_clients: []
        admin_users: []
        client_registration:
          allow_host_mismatch: false
          allow_insecure_uris: false

  mas-config-overrides.yaml: |
    http:
      public_base: "https://account.matrix.domain"
      listeners:
        ...
    database:
      ...
    telemetry:
      ...
    matrix:
      ...
    secrets:
      ...
  • No additional key like user-config.yaml (or any other file derived from matrixAuthenticationService.additional.*) is present in this ConfigMap.
  • For Synapse, additional.user-config.yaml is rendered as separate keys (e.g. 05-main.yaml, log_config.yaml), so the additional mechanism clearly works there but not for MAS.

Expected behavior

  • The matrixAuthenticationService.additional.* values should be rendered into the ess-matrix-authentication-service ConfigMap as additional keys, similar to how additional is handled for Synapse.
  • For the example above, there should be a user-config.yaml (or equivalent) entry under `` so that MAS can consume this config (typically mounted into /config.d/).

Screenshots
Not applicable.

Desktop (please complete the following information):
Not applicable.

Smartphone (please complete the following information):
Not applicable.

Additional context
There is currently no documented way (in this chart version) to extend MAS configuration via additional files, which prevents configuring features like captcha, http.trusted_proxies, token TTLs, etc., in the same way as described in the ESS documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions