summary refs log tree commit diff
path: root/synapse/storage/keys.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use auto_attribs/native type hints for attrs classes. (#11692)Patrick Cloke2022-01-131-3/+3
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Add additional type hints to the storage module. (#8980)Patrick Cloke2020-12-301-2/+3
|
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Move storage classes into a main "data store".Erik Johnston2019-10-211-194/+0
| | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
* Run Black. (#5482)Amber Brown2019-06-201-1/+1
|
* Fix key verification when key stored with null valid_until_msErik Johnston2019-06-101-0/+8
| | | | | | | | | | Some keys are stored in the synapse database with a null valid_until_ms which caused an exception to be thrown when using that key. We fix this by treating nulls as zeroes, i.e. they keys will match verification requests with a minimum_valid_until_ms of zero (i.e. don't validate ts) but will not match requests with a non-zero minimum_valid_until_ms. Fixes #5391.
* Store key validity time in the storage layerRichard van der Hoff2019-05-231-10/+21
| | | | | | | | 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.
* Rewrite store_server_verify_key to store several keys at once (#5234)Richard van der Hoff2019-05-231-26/+39
| | | | | Storing server keys hammered the database a bit. This replaces the implementation which stored a single key, with one which can do many updates at once.
* Rewrite Datastore.get_server_verify_keysRichard van der Hoff2019-04-091-28/+46
| | | | Rewrite this so that it doesn't hammer the database.
* Remove unused server_tls_certificates functions (#5028)Richard van der Hoff2019-04-081-48/+1
| | | | These have been unused since #4120, and with the demise of perspectives, it is unlikely that they will ever be used again.
* Fix docstring on get_server_keys_jsonRichard van der Hoff2019-04-041-2/+2
|
* Run black on the rest of the storage module (#4996)Amber Brown2019-04-031-27/+18
|
* Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase ↵Amber Brown2018-10-201-1/+1
| | | | on py3) (#4068)
* clearer logging when things fail, tooRichard van der Hoff2018-09-061-0/+1
|
* run isortAmber Brown2018-07-091-6/+8
|
* add remaining memoryview changesAdrian Tschira2018-05-291-3/+3
|
* use memoryview in py3Adrian Tschira2018-05-291-0/+8
| | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
* Misc. py3 fixesAdrian Tschira2018-05-241-1/+1
| | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
* Invalidate signing key cache when we gat an updateRichard van der Hoff2017-09-201-17/+24
| | | | This might make the cache slightly more efficient.
* fix up some key verif docstringsRichard van der Hoff2017-03-211-2/+3
|
* Add more key storage funcs into slave storeErik Johnston2016-07-281-18/+16
|
* Split out a FederationReader processErik Johnston2016-07-211-0/+4
|
* Fix relative imports so they work in both py3 and py27Mark Haines2016-03-081-1/+1
|
* Add descriptionsErik Johnston2016-02-031-0/+1
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Remove syutil dependency in favour of smaller single-purpose librariesMark Haines2015-08-241-1/+1
|
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+2
|
* Change Cache to not use *args in its interfaceErik Johnston2015-08-071-1/+1
|
* Add support for using keyword arguments with cached functionsErik Johnston2015-07-271-3/+2
|
* Implement bulk verify_signed_json APIErik Johnston2015-06-261-19/+31
|
* SYN-367: Use upsert rather than insert_or_replaceMark Haines2015-04-301-2/+6
|
* Merge branch 'develop' into key_distributionMark Haines2015-04-291-6/+10
|\ | | | | | | | | Conflicts: synapse/config/homeserver.py
| * Fix unicode supportErik Johnston2015-04-021-4/+10
| |
| * Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-2/+2
| |
| * Fix unicode database supportErik Johnston2015-03-251-2/+2
| |
| * Remove uses of REPLACE and ON CONFLICT IGNORE to make the SQL more portable.Erik Johnston2015-03-231-2/+0
| |
* | Implement remote key lookup apiMark Haines2015-04-221-13/+22
| |
* | Add methods for storing and retrieving the raw key jsonMark Haines2015-04-151-0/+56
|/
* Appease pep8Paul "LeoNerd" Evans2015-03-111-2/+2
|
* Add a description to storage layer's _execute_and_decode()Paul "LeoNerd" Evans2015-03-111-1/+3
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Fix pep8 warningsMark Haines2014-10-301-1/+2
|
* Fix pyflakes warningsMark Haines2014-10-271-1/+0
|
* Respond with more helpful error messages for unsigned requestsMark Haines2014-10-131-0/+2
|
* SYN-75 Verify signatures on server to server transactionsMark Haines2014-09-301-31/+44
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Fix homeserver config parsingMark Haines2014-09-011-1/+1
|
* Add store for server certificates and keysMark Haines2014-08-281-0/+103