This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Strip unauthorized fields from unsigned
object in events received over federation
#11530
Merged
Merged
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e5731aa
add some tests to verify we are stripping unauthorized fields out of …
H-Shay d3e786d
add function to strip unauthorized fields from the unsigned object of…
H-Shay edc3ebb
newsfragment
H-Shay e60f9a2
update newsfragment number
H-Shay c865eac
add check to on_send_membership_event
H-Shay bd38e53
refactor tests
H-Shay c34088a
fix lint error
H-Shay 28b2141
slightly refactor tests and add some comments
H-Shay 36696da
slight refactor
H-Shay a3e7258
refactor tests
H-Shay bdbbbb3
Merge branch 'develop' into shay/strip_unsigned_values
H-Shay 6475c71
fix import error
H-Shay e29625b
slight refactor
H-Shay 3451bd4
remove unsigned filtration code from synapse/handlers/federation_even…
H-Shay b8cfe8c
lint
H-Shay 718e168
move unsigned filtering code to event base
H-Shay ae06c9f
refactor tests
H-Shay f0e9b97
update newsfragment
H-Shay 0917991
requested changes
H-Shay 6f4834c
Merge branch 'develop' into shay/strip_unsigned_values
H-Shay 835a282
remove unused retun values
H-Shay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fix a long-standing issue which could cause Synapse to incorrectly accept data in the unsigned field of events | ||
received over federation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
let's remove this: It's no longer used, and I think that returning a value makes it look like we might be returning something different from the input.
likewise, s/
return pdu_dict
/return
/ above, and you'll need to change the annotation to-> None
.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.
Right makes sense, also thank you for the quick and enlightening review!