-
Notifications
You must be signed in to change notification settings - Fork 416
Validate the body of requests to /keys/upload
#17097
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3c0c30a
Ensure that uploaded keys are dicts
S7evinK 67d516d
Run the linters again after changing the file
S7evinK 9d2cd9f
Add newsfile
S7evinK f4c17c5
Merge branch 'develop' of github.com:element-hq/synapse into s7evink/…
S7evinK 75a45e9
Merge branch 'develop' of github.com:element-hq/synapse into s7evink/…
S7evinK 9c2d8fd
Merge branch 'develop' of github.com:element-hq/synapse into s7evink/…
S7evinK 9385361
Ensure that uploaded keys are dicts
S7evinK 34d6eba
Merge branch 'develop' of github.com:element-hq/synapse into HEAD
anoadragon453 b61527b
Validate requests to `/keys/upload` with pydantic
anoadragon453 0d4a081
Remove redundant validation
anoadragon453 ca0c87c
Move validation from the handler to the servlet
anoadragon453 88bc4bb
Add a regression unit test
anoadragon453 0eaf28f
Add further validation of key property format
anoadragon453 a0c6243
Merge branch 'develop' of github.com:element-hq/synapse into HEAD
anoadragon453 29fe51b
Use `body` directly for this endpoint
anoadragon453 fc4e3f3
Extend unit tests to cover new user_id, device_id validation
anoadragon453 ee9768c
Only validate device_keys fields when device keys are provided
anoadragon453 95900ef
Use `.keys()`
anoadragon453 b2b86cd
Fix "special" double-quotes
anoadragon453 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 hidden or 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 @@ | ||
| Extend validation of uploaded device keys. | ||
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.