Skip to content

Commit 2997f23

Browse files
committed
Remove variables controlling removed Element options (secure_backup_required & secure_backup_setup_methods) from /.well-known/matrix/client
Ref: - element-hq/element-web#30681 - element-hq/element-web#30702
1 parent 6e5cf9f commit 2997f23

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

roles/custom/matrix-base/tasks/validate_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
- {'old': 'matrix_client_element_e2ee_default', 'new': 'matrix_static_files_file_matrix_client_property_io_element_e2ee_default'}
3232
- {'old': 'matrix_client_element_e2ee_secure_backup_required', 'new': 'matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required'}
3333
- {'old': 'matrix_client_element_e2ee_secure_backup_setup_methods', 'new': 'matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods'}
34+
- {'old': 'matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required', 'new': '<removed; see https://github.com/element-hq/element-web/pull/30702 and https://github.com/element-hq/element-web/pull/30681>'}
35+
- {'old': 'matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods', 'new': '<removed; see https://github.com/element-hq/element-web/pull/30702 and https://github.com/element-hq/element-web/pull/30681>'}
3436
- {'old': 'matrix_container_global_registry_prefix', 'new': '<no global variable anymore; you need to override the `_registry_prefix` variable in each component separately>'}
3537
- {'old': 'matrix_user_username', 'new': 'matrix_user_name'}
3638
- {'old': 'matrix_user_groupname', 'new': 'matrix_group_name'}

roles/custom/matrix-static-files/defaults/main.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -172,30 +172,16 @@ matrix_static_files_file_matrix_client_property_m_tile_server_map_style_url: ""
172172

173173
# Controls whether Element related entries (io.element.e2ee) should be added to the client well-known.
174174
# By default if any of the following change from their default this would be set to true:
175-
# `matrix_static_files_file_matrix_client_property_io_element_e2ee_default`
176-
# `matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required`
177-
# `matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods`
178-
matrix_static_files_file_matrix_client_property_io_element_e2ee_entries_enabled: "{{ not matrix_static_files_file_matrix_client_property_io_element_e2ee_default or matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required or matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods | length > 0 }}"
175+
# - `matrix_static_files_file_matrix_client_property_io_element_e2ee_default`
176+
# - `matrix_static_files_file_matrix_client_property_io_element_e2ee_force_disable`
177+
matrix_static_files_file_matrix_client_property_io_element_e2ee_entries_enabled: "{{ not matrix_static_files_file_matrix_client_property_io_element_e2ee_default or matrix_static_files_file_matrix_client_property_io_element_e2ee_force_disable }}"
179178

180179
# Controls the io.element.e2ee/default property in the /.well-known/matrix/client file,
181180
# which instructs Element clients whether they should use End-to-End Encryption by default.
182181
# Setting this to false will update `/.well-known/matrix/client` and tell Element clients to avoid E2EE.
183182
# See: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md
184183
matrix_static_files_file_matrix_client_property_io_element_e2ee_default: true
185184

186-
# Controls the io.element.e2ee/secure_backup_required property in the /.well-known/matrix/client file,
187-
# which instructs Element clients whether they should require a secure backup set up before they can be used.
188-
# Setting this to true will update `/.well-known/matrix/client` and tell Element clients require a secure backup.
189-
# See: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md
190-
matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required: false
191-
192-
# Controls the io.element.e2ee/secure_backup_setup_methods property in the /.well-known/matrix/client file,
193-
# which instructs Element clients which backup methods from ["key", "passphrase"] should be used.
194-
# When an empty list is provided, Element clients default to using both.
195-
# Setting this to other than empty will update `/.well-known/matrix/client` and tell Element clients which method to use.
196-
# See: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md
197-
matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods: []
198-
199185
# Controls the io.element.e2ee/force_disable property in the /.well-known/matrix/client file,
200186
# which can be set to `true` to instruct Element clients whether to disable End-to-End Encryption by default
201187
# and to not show encryption related-settings in room settings.

roles/custom/matrix-static-files/templates/public/.well-known/matrix/client.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
{% if matrix_static_files_file_matrix_client_property_io_element_e2ee_entries_enabled %},
4545
"io.element.e2ee": {
4646
"default": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_default|to_json }},
47-
"secure_backup_required": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required|to_json }},
48-
"secure_backup_setup_methods": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods|to_json }},
4947
"force_disable": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_force_disable|to_json }}
5048
}
5149
{% endif %}

0 commit comments

Comments
 (0)