Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
7af5a630
Commit
7af5a630
authored
5 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Fixup review comments
parent
62fb643c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/sample_config.yaml
+2
-2
2 additions, 2 deletions
docs/sample_config.yaml
synapse/crypto/keyring.py
+2
-2
2 additions, 2 deletions
synapse/crypto/keyring.py
synapse/rest/key/v2/remote_key_resource.py
+2
-2
2 additions, 2 deletions
synapse/rest/key/v2/remote_key_resource.py
with
6 additions
and
6 deletions
docs/sample_config.yaml
+
2
−
2
View file @
7af5a630
...
...
@@ -1029,8 +1029,8 @@ signing_key_path: "CONFDIR/SERVERNAME.signing.key"
# - server_name: "matrix.org"
#
# The
additional
signing keys to use when acting as a trusted key server
, on
#
top of the normal
signing key
s
.
# The signing keys to use when acting as a trusted key server
. If not specified
#
defaults to the server
signing key.
#
# Can contain multiple keys, one per line.
#
...
...
This diff is collapsed.
Click to expand it.
synapse/crypto/keyring.py
+
2
−
2
View file @
7af5a630
...
...
@@ -539,7 +539,7 @@ class BaseV2KeyFetcher(object):
verify_key
=
verify_key
,
valid_until_ts
=
key_data
[
"
expired_ts
"
]
)
signed_
key_json_bytes
=
encode_canonical_json
(
response_json
)
key_json_bytes
=
encode_canonical_json
(
response_json
)
yield
make_deferred_yieldable
(
defer
.
gatherResults
(
...
...
@@ -551,7 +551,7 @@ class BaseV2KeyFetcher(object):
from_server
=
from_server
,
ts_now_ms
=
time_added_ms
,
ts_expires_ms
=
ts_valid_until_ms
,
key_json_bytes
=
signed_
key_json_bytes
,
key_json_bytes
=
key_json_bytes
,
)
for
key_id
in
verify_keys
],
...
...
This diff is collapsed.
Click to expand it.
synapse/rest/key/v2/remote_key_resource.py
+
2
−
2
View file @
7af5a630
...
...
@@ -14,7 +14,7 @@
import
logging
from
canonicaljson
import
json
from
canonicaljson
import
encode_canonical_json
,
json
from
signedjson.sign
import
sign_json
from
twisted.internet
import
defer
...
...
@@ -227,4 +227,4 @@ class RemoteKey(DirectServeResource):
results
=
{
"
server_keys
"
:
signed_keys
}
respond_with_json_bytes
(
request
,
200
,
json
.
dumps
(
results
).
encode
(
"
utf-8
"
))
respond_with_json_bytes
(
request
,
200
,
encode_canonical_json
(
results
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment