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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/st…
…ateless_contexts_3
- Loading branch information
Showing
74 changed files
with
3,628 additions
and
3,294 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Remove unnecessary event re-signing hacks |
File renamed without changes.
File renamed without changes.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Don't generate TURN credentials if no TURN config options are set |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Catch failures saving metrics captured by Measure, and instead log the faulty metrics information for further analysis. |
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 @@ | ||
Release notes are now in the Markdown format. |
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 @@ | ||
Add metrics to track resource usage by background processes |
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 @@ | ||
Add `code` label to `synapse_http_server_response_time_seconds` prometheus metric |
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 @@ | ||
Add metrics to track resource usage by background processes |
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 @@ | ||
add config for pep8 |
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 @@ | ||
Fix potential stack overflow and deadlock under heavy load |
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 @@ | ||
Merge Linearizer and Limiter |
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 @@ | ||
Merge Linearizer and Limiter |
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,63 @@ | ||
Shared-Secret Registration | ||
========================== | ||
|
||
This API allows for the creation of users in an administrative and | ||
non-interactive way. This is generally used for bootstrapping a Synapse | ||
instance with administrator accounts. | ||
|
||
To authenticate yourself to the server, you will need both the shared secret | ||
(``registration_shared_secret`` in the homeserver configuration), and a | ||
one-time nonce. If the registration shared secret is not configured, this API | ||
is not enabled. | ||
|
||
To fetch the nonce, you need to request one from the API:: | ||
|
||
> GET /_matrix/client/r0/admin/register | ||
|
||
< {"nonce": "thisisanonce"} | ||
|
||
Once you have the nonce, you can make a ``POST`` to the same URL with a JSON | ||
body containing the nonce, username, password, whether they are an admin | ||
(optional, False by default), and a HMAC digest of the content. | ||
|
||
As an example:: | ||
|
||
> POST /_matrix/client/r0/admin/register | ||
> { | ||
"nonce": "thisisanonce", | ||
"username": "pepper_roni", | ||
"password": "pizza", | ||
"admin": true, | ||
"mac": "mac_digest_here" | ||
} | ||
|
||
< { | ||
"access_token": "token_here", | ||
"user_id": "@pepper_roni@test", | ||
"home_server": "test", | ||
"device_id": "device_id_here" | ||
} | ||
|
||
The MAC is the hex digest output of the HMAC-SHA1 algorithm, with the key being | ||
the shared secret and the content being the nonce, user, password, and either | ||
the string "admin" or "notadmin", each separated by NULs. For an example of | ||
generation in Python:: | ||
|
||
import hmac, hashlib | ||
|
||
def generate_mac(nonce, user, password, admin=False): | ||
|
||
mac = hmac.new( | ||
key=shared_secret, | ||
digestmod=hashlib.sha1, | ||
) | ||
|
||
mac.update(nonce.encode('utf8')) | ||
mac.update(b"\x00") | ||
mac.update(user.encode('utf8')) | ||
mac.update(b"\x00") | ||
mac.update(password.encode('utf8')) | ||
mac.update(b"\x00") | ||
mac.update(b"admin" if admin else b"notadmin") | ||
|
||
return mac.hexdigest() |
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 |
---|---|---|
@@ -1,5 +1,30 @@ | ||
[tool.towncrier] | ||
package = "synapse" | ||
filename = "CHANGES.rst" | ||
filename = "CHANGES.md" | ||
directory = "changelog.d" | ||
issue_format = "`#{issue} <https://github.com/matrix-org/synapse/issues/{issue}>`_" | ||
issue_format = "[\\#{issue}](https://github.com/matrix-org/synapse/issues/{issue}>)" | ||
|
||
[[tool.towncrier.type]] | ||
directory = "feature" | ||
name = "Features" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "bugfix" | ||
name = "Bugfixes" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "doc" | ||
name = "Improved Documentation" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "removal" | ||
name = "Deprecations and Removals" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "misc" | ||
name = "Internal Changes" | ||
showcontent = true |
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
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
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
Oops, something went wrong.