summary refs log tree commit diff
path: root/synapse/util/retryutils.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-02-05Allocate guest user IDs numericcallyDaniel Wagner-Hall2-19/+72
The current random IDs are ugly and confusing when presented in UIs. This makes them prettier and easier to read. Also, disable non-automated registration of numeric IDs so that we don't need to worry so much about people carving out our automated address space and us needing to keep retrying ID registration.
2016-02-05Host /media/r0 as well as /media/v1Daniel Wagner-Hall2-3/+6
2016-02-05Error if macaroon key is missing from configDaniel Wagner-Hall7-23/+198
Currently we store all access tokens in the DB, and fall back to that check if we can't validate the macaroon, so our fallback works here, but for guests, their macaroons don't get persisted, so we don't get to find them in the database. Each restart, we generate a new ephemeral key, so guests lose access after each server restart. I tried to fix up the config stuff to be less insane, but gave up, so instead I bolt on yet another piece of custom one-off insanity. Also, add some basic tests for config generation and loading.
2016-02-03Actually return something sensibleErik Johnston1-1/+1
2016-02-03Remove old log lineErik Johnston1-2/+0
2016-02-03We return dicts now.Erik Johnston1-1/+1
2016-02-03Add descriptionsErik Johnston4-1/+5
2016-02-03Preserve log context over when deferring to thread pool in media repoErik Johnston1-4/+7
2016-02-03No braces hereDavid Baker1-1/+1