forked-synapse/synapse
Daniel Wagner-Hall 6a9f1209df Error if macaroon key is missing from config
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-05 01:58:23 +00:00
..
api Log more diagnostics for unrecognised access tokens 2016-02-02 19:21:49 +00:00
app Error if macaroon key is missing from config 2016-02-05 01:58:23 +00:00
appservice Fix flake8 warnings for new flake8 2016-02-02 17:18:50 +00:00
config Error if macaroon key is missing from config 2016-02-05 01:58:23 +00:00
crypto copyrights 2016-01-07 04:26:29 +00:00
events Make Event objects behave more like dicts 2016-01-18 14:43:50 +00:00
federation Fix flake8 warnings for new flake8 2016-02-02 17:18:50 +00:00
handlers Merge pull request #555 from matrix-org/erikj/logcontext 2016-02-03 15:20:00 +00:00
http Allowing tagging log contexts 2016-02-03 13:52:27 +00:00
metrics copyrights 2016-01-07 04:26:29 +00:00
push Change event_push_actions_rm_tokens schema 2016-02-03 10:50:49 +00:00
rest Merge pull request #557 from matrix-org/dbkr/profile_dont_return_null 2016-02-04 15:39:12 +00:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Actually return something sensible 2016-02-03 16:35:00 +00:00
streams Clamp pagination limits to at most 1000 2016-01-14 10:22:02 +00:00
util Allowing tagging log contexts 2016-02-03 13:52:27 +00:00
__init__.py copyrights 2016-01-07 04:26:29 +00:00
notifier.py Fix flake8 warnings for new flake8 2016-02-02 17:18:50 +00:00
python_dependencies.py Pin pynacl to 0.3.0 2016-01-28 14:47:03 +00:00
server.py Fix flake8 warnings for new flake8 2016-02-02 17:18:50 +00:00
state.py Fix flake8 warnings for new flake8 2016-02-02 17:18:50 +00:00
types.py Introduce a Requester object 2016-01-11 17:48:45 +00:00