Skip to content

Commit 1f89639

Browse files
sumnerevanstulir
andcommitted
bridgeconfig: add rotation settings for encryption
Also copies the config values that the code depends on. Before, some of the values had to be copied by each bridge. Co-authored-by: Tulir Asokan <[email protected]>
1 parent fa1514c commit 1f89639

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mautrix/bridge/config.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ def do_update(self, helper: ConfigUpdateHelper) -> None:
102102
copy("bridge.management_room_text.additional_help")
103103
copy("bridge.management_room_multiple_messages")
104104

105+
copy("bridge.encryption.allow")
106+
copy("bridge.encryption.default")
107+
copy("bridge.encryption.key_sharing.allow")
108+
copy("bridge.encryption.key_sharing.require_cross_signing")
109+
copy("bridge.encryption.key_sharing.require_verification")
110+
copy("bridge.encryption.rotation.enable_custom")
111+
copy("bridge.encryption.rotation.milliseconds")
112+
copy("bridge.encryption.rotation.messages")
113+
105114
copy("bridge.relay.enabled")
106115
copy_dict("bridge.relay.message_formats", override_existing_map=False)
107116

0 commit comments

Comments
 (0)