-
- Downloads
Store key validity time in the storage layer
This is a first step to checking that the key is valid at the required moment. The idea here is that, rather than passing VerifyKey objects in and out of the storage layer, we instead pass FetchKeyResult objects, which simply wrap the VerifyKey and add a valid_until_ts field.
Showing
- changelog.d/5237.misc 1 addition, 0 deletionschangelog.d/5237.misc
- synapse/crypto/keyring.py 33 additions, 14 deletionssynapse/crypto/keyring.py
- synapse/storage/keys.py 21 additions, 10 deletionssynapse/storage/keys.py
- synapse/storage/schema/delta/54/add_validity_to_server_keys.sql 23 additions, 0 deletions...e/storage/schema/delta/54/add_validity_to_server_keys.sql
- tests/crypto/test_keyring.py 14 additions, 8 deletionstests/crypto/test_keyring.py
- tests/storage/test_keys.py 30 additions, 14 deletionstests/storage/test_keys.py
Loading
Please register or sign in to comment