Commit graph

14 commits

Author SHA1 Message Date
Kegsay c0466122e1
Merge branch 'master' into kegan/trace-logging 2020-04-15 17:23:54 +01:00
Kegan Dougal ca8268e69e More linting 2020-04-15 15:52:20 +01:00
Kegan Dougal deee80f93a How did this get missed 2020-04-15 15:31:30 +01:00
Kegan Dougal 9d32ab8ff3 Linting 2020-04-15 15:24:29 +01:00
Kegan Dougal 392dca78cd False is true and true is false 2020-04-15 15:22:53 +01:00
Kegan Dougal b82ca6555c Bugfix for response body and linting 2020-04-15 15:05:04 +01:00
Kegan Dougal c76d271c6f DENDRITE_TRACE_HTTP is better 2020-04-15 11:12:30 +01:00
Kegan Dougal a71b9d27bf Wrap in DENDRITE_TRACE 2020-04-15 11:12:04 +01:00
Kegsay 609f034bfb
S7evinK: basicauth metrics (#961)
* Add setting to enable/disable metrics (#461)
Add basic auth to /metric handlers

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Add warning message if metrics are exposed without protection

* Remove redundant type conversion

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* SetBasicAuth per test case

* Update warning message and change loglevel to warn

* Update common/config/config.go

* Update dendrite-config.yaml

Co-authored-by: Till Faelligen <tfaelligen@gmail.com>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-04-14 15:54:35 +01:00
Kegan Dougal 33b8c8f56f Dump all requests/response server-side 2020-04-09 18:11:26 +01:00
Kegsay cdc1157785
Improve logging when sending events (#883)
We have some failing sytests on sqlite but it's very difficult to debug
due to lack of useful logging. This adds a log line for when a new event
is sent (incl. logging the event ID) as well as adding a user_id field
for all contextual logs so we know who initiated certain actions.
2020-03-09 14:37:51 +00:00
Andrew Morgan 8fb2c9c33c Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker 2019-12-17 16:47:45 +00:00
Parminder Singh d21a2fb152 Add auth fallback endpoint (#405)
Also adds support for the recaptcha auth type.
2019-08-15 01:34:49 +08:00
ruben 74827428bd use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
Renamed from src/github.com/matrix-org/dendrite/common/httpapi.go (Browse further)