-
Notifications
You must be signed in to change notification settings - Fork 331
Ignore received EDUs if origin server in room ACL #18475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
changelog.d/18475.feature
Outdated
@@ -0,0 +1 @@ | |||
Make ACLs apply to EDUs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any tests for ACLs on
/send
anywhere? I can't seem to find any and don't want to waste time reinventing the wheel trying to add tests for these 2 cases.
There is tests/federation_acl_test.go
in Complement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Complement PR: matrix-org/complement#783
Co-authored-by: Eric Eastwood <[email protected]>
@@ -551,6 +551,30 @@ async def _process_edu(edu_dict: JsonDict) -> None: | |||
edu_type=edu_dict["edu_type"], | |||
content=edu_dict["content"], | |||
) | |||
|
|||
if edu.edu_type == EduTypes.TYPING: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For each of these cases, we should add a comment to mark the MSC that determines this behavior
// Server ACL's apply to `EduTypes.TYPING` per MSC4163
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was a good suggestion, helped me figure out that we were rejecting the whole EDU instead of stripping read receipts for banned rooms only
Implements: MSC4163: Make ACLs apply to EDUs
Part of #18118 to declare support for Matrix v1.13
Complement PR: matrix-org/complement#783
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.