Mario Trangoni
97fd66db2e
pkg: fix deadcode issues
2018-04-26 19:24:21 +02:00
Dan Cech
3fedcb1e4b
cleanup, make sure users are always synced with ldap
2018-04-17 17:48:56 -04:00
Dan Cech
52503d9cb5
refactor authproxy & ldap integration, address comments
2018-04-17 14:06:25 -04:00
Dan Cech
d837be91ec
switch to passing ReqContext as a property
2018-04-17 14:06:25 -04:00
Dan Cech
e53315dce8
cleanup
2018-04-17 14:06:25 -04:00
Dan Cech
a1b1d2fe80
switch to Result
2018-04-17 14:06:25 -04:00
Dan Cech
d5dd1c9bca
update auth proxy
2018-04-17 14:06:25 -04:00
Dan Cech
d2eab2ff4c
fix tests
2018-04-17 14:06:25 -04:00
Dan Cech
1c5afa731f
shared library for managing external user accounts
2018-04-17 14:06:25 -04:00
Mario Trangoni
91fb2e07ce
pkg: fix codespell issues
2018-04-13 20:31:29 +02:00
Julian Kornberger
391868c5d6
Use net.SplitHostPort to support IPv6
...
- Add some tests
- Make error message more helpful
2018-03-26 02:48:25 +02:00
Julian Kornberger
0a415c50d0
Make golint happier
2018-03-22 22:38:44 +01:00
Julian Kornberger
7aab6a8887
Make golint happier
2018-03-22 12:40:21 +01:00
Daniel Lee
1cef373d16
Merge remote-tracking branch 'upstream/master' into update-xorm
2018-03-20 19:21:58 +01:00
Daniel Lee
3ca1e06509
session: fork Macaron mysql session middleware
...
This changes forks the mysql part of the Macaron session middleware.
In the forked mysql file:
- takes in a config setting for SetConnMaxLifetime (this solves wait_timeout
problem if it is set to a shorter interval than wait_timeout)
- removes the panic when an error is returned in the Exist function.
- retries the exist query once
- retries the GC query once
2018-03-16 01:19:28 +01:00
bergquist
6cac7c2de9
renderer: avoid redirect render requests
...
closes #11180
2018-03-14 15:27:18 +01:00
Dan Cech
bbd6adabbf
move quota to dedicated service
2018-03-07 17:19:35 -05:00
Dan Cech
c0ecdee375
rename Context to ReqContext
2018-03-07 11:54:50 -05:00
Dan Cech
338655dd37
move Context and session out of middleware
2018-03-06 18:16:49 -05:00
bergquist
0ab0343995
mark redirect_to cookie as http only
...
closes #10829
2018-02-15 10:56:29 +01:00
bergquist
842f4c1d32
tech: dont print error message on 500 page
...
closes #10828
2018-02-14 16:39:20 +01:00
Torkel Ödegaard
0e61a670bb
fix: error handling now displays page correctly, fixes #10777
2018-02-06 12:28:17 +01:00
Alexander Zobnin
f97be541af
redirect "permission denied" requests to "/" ( #10773 )
2018-02-05 18:17:47 +01:00
Marcus Efraimsson
32054ad9a6
dashboard: fix redirect of legacy dashboard url's
...
Redirect of /dashboard/db/:slug to /d/:uid/:slug and
/dashboard-solo/db/:slug to /d-solo/:uid/:slug now includes querystring parameters.
Fixes #10752
2018-02-04 17:29:16 +01:00
bergquist
58cfb23625
retry uid generation
2018-01-31 17:29:17 +01:00
Marcus Efraimsson
a99331cdb9
dashboards: redirect from old url used to load dashboard to new url
...
If legacy backend routes (/dashboard/db/<slug> and /dashboard-solo/db/<slug>)
are requested we try to redirect to new routes with a 301 Moved Permanently
#7883
2018-01-31 14:06:19 +01:00
SteelPhase
a320a83138
Use strings.TrimPrefix to make sure relative url doesn't start with forward slash
...
Closes grafana/grafana#10263
2017-12-19 03:01:33 -05:00
Torkel Ödegaard
a8a5f8181b
fix: viewers can edit now works correctly
2017-12-15 14:19:49 +01:00
Torkel Ödegaard
0e44fe082b
Merge branch 'master' into develop
2017-11-17 15:49:17 +01:00
Daniel Lee
0d85c63fff
middleware: recovery handles panics in all handlers
...
Also, changes the order of the middleware so that recovery is after the
gzip middleware. Otherwise, a 200 OK is returned instead of a 500 error.
2017-11-15 13:57:33 +01:00
Torkel Ödegaard
b44daaabf2
Merge branch 'master' into develop
2017-10-24 09:06:09 +02:00
bergquist
139f077453
prometheus: enable gzip for /metrics endpoint
...
closes #9464
2017-10-23 09:35:46 +02:00
Torkel Ödegaard
18337f610d
Merge branch 'master' into develop
2017-09-22 08:42:07 +02:00
Torkel Ödegaard
41e01184aa
Merge branch 'master' into develop
2017-09-18 12:32:29 +02:00
bergquist
861843f4ca
mark >=400 responses as error
2017-09-18 11:08:58 +02:00
bergquist
ec29b469e4
adds custom tags from settings
2017-09-18 11:08:58 +02:00
bergquist
e3211f6e48
use route as span name
2017-09-18 11:08:58 +02:00
bergquist
d55b49b7b7
attach context with span to *http.Request
2017-09-18 11:08:58 +02:00
bergquist
89c86c7a22
use opentracing ext package when possible
2017-09-18 11:08:58 +02:00
bergquist
2e350bbb8e
adds basic traces using open traces
2017-09-18 11:08:58 +02:00
bergquist
491e6897e7
metrics: set summary unit
...
we have to use milleseconds since graphite
doesnt support float64
2017-09-14 19:28:54 +02:00
bergquist
4bc6ecb241
adds metric middlware to route register
2017-09-14 14:26:32 +02:00
bergquist
6d22a67a30
return /metrics before session middleware
2017-09-14 14:26:32 +02:00
bergquist
2de94d6548
convert old metrics to prom metrics
2017-09-14 14:26:32 +02:00
Torkel Ödegaard
a38ded9e7e
Merge branch 'master' into develop-newgrid-row-design2
2017-09-07 15:05:41 +02:00
wangguoliang
652fce7e76
Optimize some wrong usage and spelling
...
Signed-off-by: wgliang <liangcszzu@163.com>
2017-09-07 17:50:11 +08:00
Torkel Ödegaard
d25dae9b58
Merge branch 'master' into develop-newgrid
2017-08-09 14:07:06 +02:00
Torkel Ödegaard
668cb3c1ef
Merge branch 'v4.4.x'
2017-08-09 10:37:06 +02:00
Torkel Ödegaard
e8a20643d6
feat: store last seen date for users and present in stats and user lists, closes #9007
2017-08-09 10:36:41 +02:00
Daniel Lee
649fe7e462
Merge branch 'v4.4.x'
2017-08-07 10:47:23 +02:00