Brendan Abolivier
c862d5baf6
Check room ID and type of redacted event ( #5784 )
...
Check room ID and type of redacted event
2019-07-31 16:44:19 +02:00
Brendan Abolivier
35ec13baab
Ignore redactions of redactions in get_events_as_list
2019-07-31 15:48:57 +02:00
Brendan Abolivier
c4e56a8ee9
Ignore invalid redactions in _get_event_from_row
2019-07-31 15:11:27 +02:00
Brendan Abolivier
0fda4e2e50
Should now work, unless we can't find the redaction event which happens for some reason (need to investigate)
2019-07-30 15:56:02 +02:00
Brendan Abolivier
8ced9a2f58
Don't make the checks depend on recheck_redaction
2019-07-30 15:55:18 +02:00
Brendan Abolivier
bbd6208b3e
Do checks sooner
2019-07-29 17:22:42 +02:00
Brendan Abolivier
36c61df659
Check room ID and type of redacted event
2019-07-29 16:07:12 +02:00
Brendan Abolivier
4dc2eda1d3
Merge pull request #5702 from matrix-org/babolivier/3pid-invite
...
Fix check of the association between a 3PID invite and the subsequent m.room.member event in the 3rd party rules
2019-07-18 13:38:05 +02:00
Brendan Abolivier
13ad3f5ab1
Fix changelog
2019-07-17 15:10:16 +02:00
Brendan Abolivier
28803ad56a
Merge branch 'dinsic' into babolivier/3pid-invite
2019-07-17 15:06:41 +02:00
Brendan Abolivier
446fb64d50
Changelog
2019-07-17 15:05:35 +02:00
Brendan Abolivier
34dd738e4b
There's no third_party_signed property in an invite's content
2019-07-17 15:03:23 +02:00
Brendan Abolivier
048f86ef5d
Fix check of the association between a 3PID invite and the subsequent m.room.member event in the 3rd party rules
2019-07-17 14:54:58 +02:00
Brendan Abolivier
3bc4ea841d
Merge pull request #5646 from matrix-org/babolivier/profile-allow-self
...
Port #5644 to dinsic
2019-07-09 13:19:57 +01:00
Amber H. Brown
4e954f4bbd
make the base branch dinsic for dinsic
2019-07-09 20:53:38 +10:00
Amber H. Brown
f10b6f7385
cut down circleci config to just what dinsic needs
2019-07-09 20:38:24 +10:00
Brendan Abolivier
9fc40f7b3f
Lint
2019-07-09 10:30:43 +01:00
Brendan Abolivier
cf22aae355
Add test case
2019-07-09 10:27:53 +01:00
Brendan Abolivier
6b9d27d793
Changelog
2019-07-09 10:27:53 +01:00
Brendan Abolivier
25fff95448
Allow newly-registered users to lookup their own profiles
...
When a user creates an account and the 'require_auth_for_profile_requests' config flag is set, and a client that performed the registration wants to lookup the newly-created profile, the request will be denied because the user doesn't share a room with themselves yet.
2019-07-09 10:27:53 +01:00
Brendan Abolivier
5fe0cea37e
Merge pull request #5610 from matrix-org/babolivier/power-levels
...
Implement new restrictions on power levels
2019-07-04 11:12:47 +01:00
Brendan Abolivier
95b5d4ad54
Merge branch 'babolivier/power-levels' of github.com:matrix-org/synapse into babolivier/power-levels
2019-07-03 18:30:13 +01:00
Brendan Abolivier
4dd7de17b7
Incorporate review
2019-07-03 18:26:48 +01:00
Brendan Abolivier
8b44097771
Update synapse/third_party_rules/access_rules.py
...
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2019-07-03 18:21:42 +01:00
Brendan Abolivier
6b83a1826c
Incorporate review
2019-07-03 17:32:52 +01:00
Brendan Abolivier
aeda7fde78
Changelog
2019-07-03 15:47:58 +01:00
Brendan Abolivier
d085e0df2a
Change the rule for applying PL restrictions
2019-07-03 15:44:22 +01:00
Brendan Abolivier
8d28817eac
Add tests
2019-07-03 15:43:52 +01:00
Brendan Abolivier
aa3ba41933
Default return value for events we're not interested in
2019-07-03 12:05:56 +01:00
Brendan Abolivier
724ddaddb3
Refactor part of the access rules module
...
Since we're not processing only membership events and 3PID invites anymore, it's nice to know which function is supposed to process what.
2019-07-03 12:03:22 +01:00
Brendan Abolivier
8636ec042b
Implement restrictions for power levels
2019-07-03 11:45:07 +01:00
Brendan Abolivier
78b737ff71
Merge pull request #5577 from matrix-org/babolivier/3pid-invite-ratelimit
...
Port #5576 to dinsic
2019-06-28 18:23:53 +01:00
Brendan Abolivier
a7a8bbf502
Only ratelimit when sending the email
...
If we do the opposite, an event can arrive after or while sending the email and the 3PID invite event will get ratelimited.
2019-06-28 17:47:38 +01:00
Brendan Abolivier
f304996c61
Changelog
2019-06-28 17:44:28 +01:00
Brendan Abolivier
7c644198c8
Don't update the ratelimiter before sending a 3PID invite
...
This would cause emails being sent, but Synapse responding with a 429 when creating the event. The client would then retry, and with bad timing the same scenario would happen again. Some testing I did ended up sending me 10 emails for one single invite because of this.
2019-06-28 17:44:28 +01:00
Brendan Abolivier
ee0ee97447
Add test case for #5574
...
There's no test that makes sure #5574 didn't break things or works correctly (my bad), so this PR adds a test case that makes sure of it.
2019-06-28 10:29:02 +01:00
Brendan Abolivier
f370fd01ec
Merge pull request #5574 from matrix-org/babolivier/fix-3pid-bind
...
Fix new 3PID bindings being associated with rewritten IS's server names instead of the original one
2019-06-27 15:17:15 +01:00
Brendan Abolivier
1ef3627b05
Fix new 3PID bindings being associated with rewritten IS's server names instead of the original one
...
This would make unbind requests fail because Synapse is using the server name it has in DB as destination_is to generate signature, and Sydent uses its own server name there when verifying it, so if a mismatch happens, which is the case if the name gets rewritten for routing purposes, the unbind requests fail on the signature verification.
2019-06-27 14:53:10 +01:00
Brendan Abolivier
fbc5b58d21
Merge pull request #5542 from matrix-org/babolivier/federation-publicrooms
...
Port "Split public rooms directory auth config in two" to dinsic
2019-06-24 16:42:21 +01:00
Brendan Abolivier
84875301b6
Split public rooms directory auth config in two
2019-06-24 16:41:48 +01:00
Brendan Abolivier
18f0b69c49
Merge pull request #5495 from matrix-org/babolivier/deactivate_bg_job_typo
...
Port "Fix typo in deactivation background job" to dinsic
2019-06-19 11:58:52 +01:00
Brendan Abolivier
4875746d82
Fix typo in deactivation background job
2019-06-19 11:39:18 +01:00
Brendan Abolivier
fa4efb5967
Merge pull request #5484 from matrix-org/babolivier/dinsic_access_rules
...
Implement custom access rules
2019-06-19 10:41:37 +01:00
Brendan Abolivier
c1bc48f9d4
Add tests for constraints on changing the rule for a room
2019-06-18 18:07:05 +01:00
Brendan Abolivier
9b3c69f661
Add tests for 3PID invites
2019-06-18 17:59:07 +01:00
Brendan Abolivier
7157276124
Don't process 3PIDs in _apply_restricted
2019-06-18 17:43:34 +01:00
Brendan Abolivier
1532369dcd
Remove unused import
2019-06-18 16:46:57 +01:00
Brendan Abolivier
145291108d
Add tests for inviting with access rules
2019-06-18 16:32:54 +01:00
Brendan Abolivier
cefc5542fb
Lint
2019-06-18 14:59:05 +01:00
Brendan Abolivier
2a1f35193b
Remove unused imports
2019-06-18 14:57:04 +01:00