-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proposals: * [MSC2076](#2076) * [MSC2077](#2077) Implementation references: * matrix-org/synapse@00bf99f * matrix-org/synapse#5354 * matrix-org/synapse#5321 No known differences from the proposals are included here - alterations are accidental.
- Loading branch information
Showing
5 changed files
with
68 additions
and
2 deletions.
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
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 @@ | ||
Clarify how ``valid_until_ts`` behaves with respect to room version. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. Copyright 2019 The Matrix.org Foundation C.I.C. | ||
.. | ||
.. Licensed under the Apache License, Version 2.0 (the "License"); | ||
.. you may not use this file except in compliance with the License. | ||
.. You may obtain a copy of the License at | ||
.. | ||
.. http://www.apache.org/licenses/LICENSE-2.0 | ||
.. | ||
.. Unless required by applicable law or agreed to in writing, software | ||
.. distributed under the License is distributed on an "AS IS" BASIS, | ||
.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
.. See the License for the specific language governing permissions and | ||
.. limitations under the License. | ||
Room Version 5 | ||
============== | ||
|
||
This room version builds on `version 4 <v4.html>`_, enforcing signing key validity | ||
periods for events. | ||
|
||
.. contents:: Table of Contents | ||
.. sectnum:: | ||
|
||
|
||
Client considerations | ||
--------------------- | ||
|
||
There are no specific requirements for clients in this room version. Clients should | ||
be aware of event ID changes in `room version 4 <v4.html>`_, however. | ||
|
||
|
||
Server implementation components | ||
-------------------------------- | ||
|
||
.. WARNING:: | ||
The information contained in this section is strictly for server implementors. | ||
Applications which use the Client-Server API are generally unaffected by the | ||
intricacies contained here. The section above regarding client considerations | ||
is the resource that Client-Server API use cases should reference. | ||
|
||
|
||
Room version 5 uses the same algorithms defined in `room version 4 <v4.html>`_, ensuring | ||
that signing key validity is respected. | ||
|
||
Signing key validity period | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
When validating event signatures, servers MUST enforce the ``valid_until_ts`` property | ||
from a key request is at least as large as the ``origin_server_ts`` for the event being | ||
validated. Servers missing a copy of the signing key MUST try to obtain one via the | ||
`GET /_matrix/key/v2/server <../server_server/r0.1.1.html#get-matrix-key-v2-server-keyid>`_ | ||
or `POST /_matrix/key/v2/query <../server_server/r0.1.1.html#post-matrix-key-v2-query>`_ | ||
APIs. When using the ``/query`` endpoint, servers MUST set the ``minimum_valid_until_ts`` | ||
property to prompt the notary server to attempt to refresh the key if appropriate. |
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