Skip to content

Commit 3724223

Browse files
VskiletMa27
authored andcommitted
matrix-synapse: 1.3.1 -> 1.4.0
Bumps `matrix-synapse` to version 1.4.0[1]. With this version the following changes in the matrix-synapse module were needed: * Removed `trusted_third_party_id_servers`: option is marked as deprecated and ignored by matrix-synapse[2]. * Added `account_threepid_delegates` options as replacement for 3rdparty server features[3]. * Added `redaction_retention_period` option to configure how long redacted options should be kept in the database. * Added `ma27` as maintainer for `matrix-synapse`. Co-Authored-By: Notkea <[email protected]> Co-authored-by: Maximilian Bosch <[email protected]> [1] https://matrix.org/blog/2019/10/03/synapse-1-4-0-released [2] matrix-org/synapse#5875 [3] matrix-org/synapse#5876
1 parent 2436c27 commit 3724223

File tree

2 files changed

+35
-11
lines changed

2 files changed

+35
-11
lines changed

nixos/modules/services/misc/matrix-synapse.nix

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ turn_user_lifetime: "${cfg.turn_user_lifetime}"
7979
user_creation_max_duration: ${cfg.user_creation_max_duration}
8080
bcrypt_rounds: ${cfg.bcrypt_rounds}
8181
allow_guest_access: ${boolToString cfg.allow_guest_access}
82-
trusted_third_party_id_servers: ${builtins.toJSON cfg.trusted_third_party_id_servers}
82+
83+
account_threepid_delegates:
84+
${optionalString (cfg.account_threepid_delegates.email != null) "email: ${cfg.account_threepid_delegates.email}"}
85+
${optionalString (cfg.account_threepid_delegates.msisdn != null) "msisdn: ${cfg.account_threepid_delegates.msisdn}"}
86+
8387
room_invite_state_types: ${builtins.toJSON cfg.room_invite_state_types}
8488
${optionalString (cfg.macaroon_secret_key != null) ''
8589
macaroon_secret_key: "${cfg.macaroon_secret_key}"
@@ -102,6 +106,7 @@ perspectives:
102106
'') cfg.servers)}
103107
}
104108
}
109+
redaction_retention_period: ${toString cfg.redaction_retention_period}
105110
app_service_config_files: ${builtins.toJSON cfg.app_service_config_files}
106111
107112
${cfg.extraConfig}
@@ -552,14 +557,18 @@ in {
552557
accessible to anonymous users.
553558
'';
554559
};
555-
trusted_third_party_id_servers = mkOption {
556-
type = types.listOf types.str;
557-
default = [
558-
"matrix.org"
559-
"vector.im"
560-
];
560+
account_threepid_delegates.email = mkOption {
561+
type = types.nullOr types.str;
562+
default = null;
561563
description = ''
562-
The list of identity servers trusted to verify third party identifiers by this server.
564+
Delegate email sending to https://example.org
565+
'';
566+
};
567+
account_threepid_delegates.msisdn = mkOption {
568+
type = types.nullOr types.str;
569+
default = null;
570+
description = ''
571+
Delegate SMS sending to this local process (https://localhost:8090)
563572
'';
564573
};
565574
room_invite_state_types = mkOption {
@@ -600,6 +609,13 @@ in {
600609
A list of application service config file to use
601610
'';
602611
};
612+
redaction_retention_period = mkOption {
613+
type = types.int;
614+
default = 7;
615+
description = ''
616+
How long to keep redacted events in unredacted form in the database.
617+
'';
618+
};
603619
extraConfig = mkOption {
604620
type = types.lines;
605621
default = "";
@@ -699,4 +715,12 @@ in {
699715
};
700716
};
701717
};
718+
719+
imports = [
720+
(mkRemovedOptionModule [ "services" "matrix-synapse" "trusted_third_party_id_servers" ] ''
721+
The `trusted_third_party_id_servers` option as been removed in `matrix-synapse` v1.4.0
722+
as the behavior is now obsolete.
723+
'')
724+
];
725+
702726
}

pkgs/servers/matrix-synapse/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ let
2323

2424
in buildPythonApplication rec {
2525
pname = "matrix-synapse";
26-
version = "1.3.1";
26+
version = "1.4.0";
2727

2828
src = fetchPypi {
2929
inherit pname version;
30-
sha256 = "1nz9bhy5hraa1h7100vr0innz8npnpha6xr9j2ln7h3cgwv73739";
30+
sha256 = "1y8yhzsf2lk2d7v4l61rpy4918c0qz276j79q88l9yazb6gw5pkk";
3131
};
3232

3333
patches = [
@@ -83,6 +83,6 @@ in buildPythonApplication rec {
8383
homepage = https://matrix.org;
8484
description = "Matrix reference homeserver";
8585
license = licenses.asl20;
86-
maintainers = with maintainers; [ ralith roblabla ekleog pacien ];
86+
maintainers = with maintainers; [ ralith roblabla ekleog pacien ma27 ];
8787
};
8888
}

0 commit comments

Comments
 (0)