summary refs log tree commit diff
path: root/synapse/groups/attestations.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-06-04 16:12:57 +0100
committerRichard van der Hoff <richard@matrix.org>2019-06-05 10:46:26 +0100
commitcea9750d112cf74790fb8c16482a0068717954d5 (patch)
tree73a8c25947705e074a5d1e85ec0fbb5393f9e3a1 /synapse/groups/attestations.py
parentAdd a test room version where we enforce key validity (#5348) (diff)
downloadsynapse-cea9750d112cf74790fb8c16482a0068717954d5.tar.xz
Associate a request_name with each verify request, for logging
Also:
* rename VerifyKeyRequest->VerifyJsonRequest
* calculate key_ids on VerifyJsonRequest construction
* refactor things to pass around VerifyJsonRequests instead of 4-tuples
Diffstat (limited to 'synapse/groups/attestations.py')
-rw-r--r--synapse/groups/attestations.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/groups/attestations.py b/synapse/groups/attestations.py
index fa6b641ee1..e5dda1975f 100644
--- a/synapse/groups/attestations.py
+++ b/synapse/groups/attestations.py
@@ -101,7 +101,9 @@ class GroupAttestationSigning(object):
         if valid_until_ms < now:
             raise SynapseError(400, "Attestation expired")
 
-        yield self.keyring.verify_json_for_server(server_name, attestation, now)
+        yield self.keyring.verify_json_for_server(
+            server_name, attestation, now, "Group attestation"
+        )
 
     def create_attestation(self, group_id, user_id):
         """Create an attestation for the group_id and user_id with default