|
39 | 39 | - {'name': 'matrix_synapse_metrics_proxying_hostname', when: "{{ matrix_synapse_metrics_proxying_enabled }}"}
|
40 | 40 | - {'name': 'matrix_synapse_metrics_proxying_path_prefix', when: "{{ matrix_synapse_metrics_proxying_enabled }}"}
|
41 | 41 |
|
42 |
| - - {'name': 'matrix_synapse_experimental_features_msc3861_issuer', when: "{{ matrix_synapse_experimental_features_msc3861_enabled }}"} |
43 |
| - - {'name': 'matrix_synapse_experimental_features_msc3861_client_id', when: "{{ matrix_synapse_experimental_features_msc3861_enabled }}"} |
44 |
| - - {'name': 'matrix_synapse_experimental_features_msc3861_client_auth_method', when: "{{ matrix_synapse_experimental_features_msc3861_enabled }}"} |
45 |
| - - {'name': 'matrix_synapse_experimental_features_msc3861_client_secret', when: "{{ matrix_synapse_experimental_features_msc3861_enabled }}"} |
46 |
| - - {'name': 'matrix_synapse_experimental_features_msc3861_admin_token', when: "{{ matrix_synapse_experimental_features_msc3861_enabled }}"} |
47 |
| - - {'name': 'matrix_synapse_experimental_features_msc3861_account_management_url', when: "{{ matrix_synapse_experimental_features_msc3861_enabled }}"} |
| 42 | + - {'name': 'matrix_synapse_matrix_authentication_service_endpoint', when: "{{ matrix_synapse_matrix_authentication_service_enabled }}"} |
| 43 | + - {'name': 'matrix_synapse_matrix_authentication_service_secret', when: "{{ matrix_synapse_matrix_authentication_service_enabled }}"} |
48 | 44 |
|
49 | 45 | - {'name': 'matrix_synapse_container_labels_traefik_compression_middleware_name', when: "{{ matrix_synapse_container_labels_traefik_compression_middleware_enabled }}"}
|
50 | 46 |
|
51 |
| -# If only MSC 4108 is enabled, Synapse fails with: "MSC4108 requires MSC3861 to be enabled" |
52 |
| -- name: Fail if Synapse experimental feature QR code login (MSC4108) is enabled while Next-Gen Auth (MSC3861) is not |
53 |
| - ansible.builtin.fail: |
54 |
| - msg: >- |
55 |
| - QR code login (MSC4108) requires Next-Gen Auth (MSC3861) to be enabled or Synapse will fail to start. |
56 |
| - Enable `matrix_synapse_experimental_features_msc3861_enabled` when using `matrix_synapse_experimental_features_msc4108_enabled`. |
57 |
| - when: "matrix_synapse_experimental_features_msc4108_enabled and not matrix_synapse_experimental_features_msc3861_enabled" |
58 |
| - |
59 | 47 | - name: Fail if asking for more than 1 instance of single-instance workers
|
60 | 48 | ansible.builtin.fail:
|
61 | 49 | msg: >-
|
|
121 | 109 | - {'old': 'matrix_s3_goofys_docker_image_name_prefix', 'new': 'matrix_s3_goofys_docker_image_registry_prefix'}
|
122 | 110 | - {'old': 'matrix_synapse_rust_synapse_compress_state_docker_image_name_prefix', 'new': 'matrix_synapse_rust_synapse_compress_state_docker_image_registry_prefix'}
|
123 | 111 |
|
| 112 | + - {'old': 'matrix_synapse_experimental_features_msc3861_enabled', 'new': 'matrix_synapse_matrix_authentication_service_enabled'} |
| 113 | + - {'old': 'matrix_synapse_experimental_features_msc3861_issuer', 'new': '<superseded by matrix_synapse_matrix_authentication_service_endpoint>'} |
| 114 | + - {'old': 'matrix_synapse_experimental_features_msc3861_client_id', 'new': '<removed>'} |
| 115 | + - {'old': 'matrix_synapse_experimental_features_msc3861_client_auth_method', 'new': '<removed>'} |
| 116 | + - {'old': 'matrix_synapse_experimental_features_msc3861_client_secret', 'new': '<removed>'} |
| 117 | + - {'old': 'matrix_synapse_experimental_features_msc3861_admin_token', 'new': '<removed>'} |
| 118 | + - {'old': 'matrix_synapse_experimental_features_msc3861_account_management_url', 'new': '<removed>'} |
| 119 | + |
124 | 120 | - name: (Deprecation) Catch and report renamed settings in matrix_synapse_configuration_extension_yaml
|
125 | 121 | ansible.builtin.fail:
|
126 | 122 | msg: >-
|
|
163 | 159 |
|
164 | 160 | - name: Fail if known Synapse password provider modules are enabled when auth is delegated to Matrix Authentication Service
|
165 | 161 | ansible.builtin.fail:
|
166 |
| - msg: "When Synapse is delegating authentication to Matrix Authentication Service, it does not make sense to enable password provider modules, because it is not Synapse that is handling authentication. Please disable {{ item }} before enabling Matrix Authentication Service integration for Synapse. Synapse will refuse to start otherwise." |
167 |
| - when: matrix_synapse_experimental_features_msc3861_enabled and vars[item] | bool |
| 162 | + msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it does not make sense to enable password provider modules, because it is not Synapse that is handling authentication. Please disable {{ item }} before enabling Matrix Authentication Service integration for Synapse. Synapse will refuse to start otherwise." |
| 163 | + when: matrix_synapse_matrix_authentication_service_enabled and vars[item] | bool |
168 | 164 | with_items:
|
169 | 165 | - matrix_synapse_ext_password_provider_rest_auth_enabled
|
170 | 166 | - matrix_synapse_ext_password_provider_shared_secret_auth_enabled
|
171 | 167 | - matrix_synapse_ext_password_provider_ldap_enabled
|
172 | 168 |
|
173 | 169 | - name: Fail if password config is enabled for Synapse when auth is delegated to Matrix Authentication Service
|
174 | 170 | ansible.builtin.fail:
|
175 |
| - msg: "When Synapse is delegating authentication to Matrix Authentication Service, it doesn't make sense to enable the password config (`matrix_synapse_password_config_enabled: true`), because it is not Synapse that is handling authentication. Please remove your `matrix_synapse_password_config_enabled: true` setting before enabling Matrix Authentication Service integration for Synapse. Synapse will refuse to start otherwise." |
176 |
| - when: matrix_synapse_experimental_features_msc3861_enabled and matrix_synapse_password_config_enabled |
| 171 | + msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it doesn't make sense to enable the password config (`matrix_synapse_password_config_enabled: true`), because it is not Synapse that is handling authentication. Please remove your `matrix_synapse_password_config_enabled: true` setting before enabling Matrix Authentication Service integration for Synapse. Synapse will refuse to start otherwise." |
| 172 | + when: matrix_synapse_matrix_authentication_service_enabled and matrix_synapse_password_config_enabled |
| 173 | + |
| 174 | +- name: Fail if registration is enabled for Synapse when auth is delegated to Matrix Authentication Service |
| 175 | + ansible.builtin.fail: |
| 176 | + msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it doesn't make sense to enable registration (`matrix_synapse_enable_registration: true`), because it is not Synapse that is handling authentication. Synapse will refuse to start otherwise." |
| 177 | + when: matrix_synapse_matrix_authentication_service_enabled and matrix_synapse_enable_registration |
| 178 | + |
| 179 | +- name: Fail if registration CAPTCHA is enabled for Synapse when auth is delegated to Matrix Authentication Service |
| 180 | + ansible.builtin.fail: |
| 181 | + msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it doesn't make sense to enable registration CAPTCHA (`matrix_synapse_enable_registration_captcha: true`), because it is not Synapse that is handling authentication. Synapse will refuse to start otherwise." |
| 182 | + when: matrix_synapse_matrix_authentication_service_enabled and matrix_synapse_enable_registration_captcha |
| 183 | + |
| 184 | +- name: Fail if OpenID Connect is enabled for Synapse when auth is delegated to Matrix Authentication Service |
| 185 | + ansible.builtin.fail: |
| 186 | + msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it doesn't make sense to enable OpenID Connect (`matrix_synapse_oidc_enabled: true`), because it is not Synapse that is handling authentication. Synapse will refuse to start otherwise." |
| 187 | + when: matrix_synapse_matrix_authentication_service_enabled and matrix_synapse_oidc_enabled |
| 188 | + |
| 189 | +- name: Fail if CAS config is enabled for Synapse when auth is delegated to Matrix Authentication Service |
| 190 | + ansible.builtin.fail: |
| 191 | + msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it doesn't make sense to enable CAS config (`matrix_synapse_cas_config_enabled: true`), because it is not Synapse that is handling authentication. Synapse will refuse to start otherwise." |
| 192 | + when: matrix_synapse_matrix_authentication_service_enabled and matrix_synapse_cas_config_enabled |
177 | 193 |
|
178 |
| -- name: Fail if QR code login (MSC4108) is enabled while Next-Gen Auth (MSC3861) is not |
| 194 | +- name: Fail if QR code login (MSC4108) is enabled while Matrix Authentication Service is not |
179 | 195 | ansible.builtin.fail:
|
180 |
| - msg: "When Synapse QR code login is enabled (MSC4108 via `matrix_synapse_experimental_features_msc4108_enabled`), Next-Gen auth (MSC3861 via `matrix_synapse_experimental_features_msc3861_enabled`) must also be enabled." |
181 |
| - when: matrix_synapse_experimental_features_msc4108_enabled and not matrix_synapse_experimental_features_msc3861_enabled |
| 196 | + msg: "When Synapse QR code login is enabled (MSC4108 via `matrix_synapse_experimental_features_msc4108_enabled`), Matrix Authentication Service integration (`matrix_synapse_matrix_authentication_service_enabled`) must also be enabled." |
| 197 | + when: matrix_synapse_experimental_features_msc4108_enabled and not matrix_synapse_matrix_authentication_service_enabled |
0 commit comments