summary refs log tree commit diff
path: root/synapse/groups/attestations.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Add type annotations to `synapse.metrics` (#10847)Sean Quah2021-11-171-1/+3
|
* Use direct references for some configuration variables (#10798)Patrick Cloke2021-09-131-1/+1
| | | | Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit).
* Rewrite the KeyRing (#10035)Erik Johnston2021-06-021-1/+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>`
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
|
* Add type hints to groups code. (#9393)Patrick Cloke2021-02-171-13/+24
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-8/+4
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Fix typos and spelling errors. (#8639)Patrick Cloke2020-10-231-1/+1
|
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-2/+2
|
* Convert groups and visibility code to async / await. (#7951)Patrick Cloke2020-07-271-14/+11
|
* Add `HomeServer.signing_key` property (#7805)Richard van der Hoff2020-07-081-1/+1
| | | ... instead of duplicating `config.signing_key[0]` everywhere
* Port group attestation renewal slow down from matrix-org-hotfixes (#7442)Andrew Morgan2020-05-061-4/+2
|
* Fix incorrect metrics reporting for renew_attestations (#7344)Richard van der Hoff2020-04-271-10/+9
| | | | We need to wait for the renewals to finish, so that the metrics are correctly reported.
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-1/+1
| | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated.
* Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
|
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-1/+1
|
* Run Black. (#5482)Amber Brown2019-06-201-16/+19
|
* Merge pull request #5385 from matrix-org/erikj/reduce_http_exceptionsErik Johnston2019-06-171-2/+2
|\ | | | | Handle HttpResponseException when using federation client.
| * Handle HttpResponseException when using federation client.Erik Johnston2019-06-071-2/+2
| | | | | | | | Otherwise we just log exceptions everywhere.
* | Only start background group attestation renewals on masterErik Johnston2019-06-071-3/+4
|/
* Associate a request_name with each verify request, for loggingRichard van der Hoff2019-06-051-1/+3
| | | | | | | Also: * rename VerifyKeyRequest->VerifyJsonRequest * calculate key_ids on VerifyJsonRequest construction * refactor things to pass around VerifyJsonRequests instead of 4-tuples
* Enforce validity period on server_keys for fed requests. (#5321)Richard van der Hoff2019-06-031-2/+3
| | | | | | | | When handling incoming federation requests, make sure that we have an up-to-date copy of the signing key. We do not yet enforce the validity period for event signatures.
* Correctly handle RequestSendFailed exceptionsErik Johnston2019-02-141-1/+6
| | | | This mainly reduces the number of exceptions we log.
* Fix some looping_call calls which were broken in #3604Richard van der Hoff2018-07-261-1/+1
| | | | | | | | | It turns out that looping_call does check the deferred returned by its callback, and (at least in the case of client_ips), we were relying on this, and I broke it in #3604. Update run_as_background_process to return the deferred, and make sure we return it to clock.looping_call.
* Wrap a number of things that run in the backgroundRichard van der Hoff2018-07-251-1/+5
| | | | | This will reduce the number of "Starting db connection from sentinel context" warnings, and will help with our metrics.
* another typoMatthew Hodgson2018-07-101-1/+1
|
* typo (i think)Matthew Hodgson2018-07-101-1/+1
|
* run isortAmber Brown2018-07-091-3/+2
|
* Merge remote-tracking branch 'origin/develop' into rav/use_run_in_backgroundRichard van der Hoff2018-04-271-20/+24
|\
| * Improve exception handling for background processesRichard van der Hoff2018-04-271-20/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a bunch of places where we fire off a process to happen in the background, but don't have any exception handling on it - instead relying on the unhandled error being logged when the relevent deferred gets garbage-collected. This is unsatisfactory for a number of reasons: - logging on garbage collection is best-effort and may happen some time after the error, if at all - it can be hard to figure out where the error actually happened. - it is logged as a scary CRITICAL error which (a) I always forget to grep for and (b) it's not really CRITICAL if a background process we don't care about fails. So this is an attempt to add exception handling to everything we fire off into the background.
* | Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-2/+2
|/ | | | | | While I was going through uses of preserve_fn for other PRs, I converted places which only use the wrapped function once to use run_in_background, to avoid creating the function object.
* Revert "Merge branch 'master' of github.com:matrix-org/synapse into develop"Erik Johnston2017-11-071-1/+10
| | | | | This reverts commit f9b255cd62fe724e16b2222f6af623b2d39282ab, reversing changes made to 1bd654dabde776bbb7ee365c115b307cd6a110b8.
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2017-11-071-10/+1
|\
| * Revert "Add jitter to validity period of attestations"Erik Johnston2017-10-271-12/+1
| |
* | Merge branch 'erikj/attestation_jitter' of github.com:matrix-org/synapse ↵Erik Johnston2017-10-271-1/+11
|\| | | | | | | into develop
| * Add jitter to validity period of attestationsErik Johnston2017-10-271-1/+12
| | | | | | | | | | This helps ensure that the renewals of attestations are spread out more evenly.
* | Merge branch 'erikj/attestation_local_fix' of github.com:matrix-org/synapse ↵Erik Johnston2017-10-271-4/+16
|\ \ | | | | | | | | | into develop
| * | Import loggerErik Johnston2017-10-271-0/+5
| | |
| * | FixupErik Johnston2017-10-271-3/+3
| | |
| * | Remove incorrect attestationsErik Johnston2017-10-271-0/+1
| | |
| * | Log if we try to do attestations for our own user and groupErik Johnston2017-10-271-2/+8
| |/
* / Add comment about attestationsErik Johnston2017-10-271-0/+22
|/
* Fix typo in group attestation handlingErik Johnston2017-10-191-1/+2
|
* Fix typoErik Johnston2017-10-191-1/+1
|
* CommentErik Johnston2017-07-111-5/+8
|
* TypoErik Johnston2017-07-111-1/+1
|
* CommentsErik Johnston2017-07-111-2/+2
|
* CommentsErik Johnston2017-07-111-1/+28
|
* Initial group server implementationErik Johnston2017-07-101-0/+120