Marcus Efraimsson
b4267eafb8
log root cause error when reading from provisioning directories
2019-02-07 15:46:57 +01:00
Marcus Efraimsson
c71904e326
Merge pull request #15239 from grafana/auth_token_middleware_refactor
...
Auth token package and middleware refactoring
2019-02-07 14:24:23 +01:00
Torkel Ödegaard
78ea7ae783
Merge pull request #15212 from grafana/dashboard-react-page
...
Dashboard react page
2019-02-07 14:23:44 +01:00
bergquist
170783c292
make hourly cleanup the default behavior
2019-02-07 10:51:35 +01:00
Marcus Efraimsson
1a140ee199
run token cleanup job when grafana starts, then each hour
2019-02-06 22:27:08 +01:00
Marcus Efraimsson
836501186f
fix
2019-02-06 17:30:17 +01:00
Marcus Efraimsson
8ae066ab5d
move authtoken package into auth package
2019-02-06 17:02:57 +01:00
Marcus Efraimsson
8678620730
move UserToken and UserTokenService to models package
2019-02-06 16:55:12 +01:00
Marcus Efraimsson
a60124a88c
change UserToken from interface to struct
2019-02-06 16:30:50 +01:00
Marcus Efraimsson
afa87e6ab4
Merge pull request #15197 from SamuelToh/12546_annotation_nulls_existing_val
...
Add http patch support for annotations
2019-02-06 14:50:00 +01:00
Marcus Efraimsson
44275d9660
middleware fix
2019-02-06 08:45:01 +01:00
Marcus Efraimsson
d8658a765c
enhanced expiration logic for lookup token
...
tokens are not expired if created_at > now - LoginMaxLifetimeDays and
rotated_at > now - LoginMaxInactiveLifetimeDays
2019-02-06 08:30:14 +01:00
Marcus Efraimsson
e87ff5a06d
Merge pull request #15265 from larsjoergensen/cloudwatch/add-rds-aurora-serverlessdatabasecapacity-metrics
...
Added ServerlessDatabaseCapacity metric to list of AWS RDS metrics.
2019-02-05 21:56:11 +01:00
SamuelToh
4de9e3598b
Address review comments
2019-02-06 06:41:39 +10:00
Marcus Efraimsson
9483506590
auth token clean up job now runs on schedule and deletes all expired tokens
...
delete tokens having created_at <= LoginMaxLifetimeDays or
rotated_at <= LoginMaxInactiveLifetimeDays
2019-02-05 21:20:11 +01:00
Marcus Efraimsson
871c84d195
changes needed for api/middleware due to configuration settings
2019-02-05 21:14:23 +01:00
Marcus Efraimsson
0915f931ae
change configuration settings in auth package
2019-02-05 21:12:30 +01:00
Marcus Efraimsson
3c2fd02bc0
refactor login/auth token configuration settings
...
remove login section and reuse existing sections security and auth
2019-02-05 21:09:55 +01:00
Marcus Efraimsson
1d1b617cee
remove unused code
2019-02-05 21:08:55 +01:00
Lars Jørgensen
749320002b
Added ServerlessDatabaseCapacity metric to list of AWS RDS metrics.
2019-02-05 20:57:51 +01:00
jeroenvollenbrock
28aafcd789
cloudwatch: Add tests for resource_arn template query
2019-02-05 18:37:05 +01:00
jeroenvollenbrock
fa977ce090
cloudwatch: Add resource_arns template query function
...
Implements feature request #8207
2019-02-05 18:37:04 +01:00
Torkel Ödegaard
3d5ca99d53
Merge branch 'dashboard-react-page' of github.com:grafana/grafana into dashboard-react-page
2019-02-05 09:24:14 +01:00
SamuelToh
a7a964ec19
Added PATCH verb end point for annotation op
...
Added new PATCH verb annotation endpoint
Removed unwanted fmt
Added test cases for PATCH verb annotation endpoint
Fixed formatting issue
Check arr len before proceeding
Updated doc to include PATCH verb annotation endpt
2019-02-05 09:43:17 +10:00
Marcus Efraimsson
d53e64a32c
move auth token middleware/hooks to middleware package
...
fix/adds auth token middleware tests
2019-02-05 00:21:05 +01:00
Marcus Efraimsson
7cd3cd6cd4
auth package refactoring
...
moving middleware/hooks away from package
exposing public struct UserToken accessible from other packages
fix debug log lines so the same order and naming are used
2019-02-05 00:10:56 +01:00
Torkel Ödegaard
70974c01f2
Added playlist controls to new react DashNav
2019-02-04 21:08:30 +01:00
Marcus Efraimsson
fb3c510178
Merge branch 'master' into delete_session_on_logout
2019-02-04 20:23:05 +01:00
Torkel Ödegaard
60d7d9c691
Merge pull request #15181 from marefr/fix_ping_unauthorized
...
auth: /api/login/ping fixes
2019-02-04 18:41:35 +01:00
Marcus Efraimsson
cfd8eb5167
now /api/login/ping returns Response
2019-02-04 17:37:07 +01:00
Marcus Efraimsson
d433ca7d40
fix util for splitting host and port
...
Now you can provide both a default host and a default port
2019-02-04 13:10:32 +01:00
Connor Patterson
48c8ff8899
Add AWS/Neptune to metricsMap and dimensionsMap
2019-02-03 16:29:35 -05:00
bergquist
a6bd2c73a0
introduce samesite setting for login cookie
...
ref #15067
2019-02-01 11:47:21 +01:00
bergquist
a1b3986532
always delete session cookie even if db delete fails
2019-02-01 09:59:53 +01:00
Marcus Efraimsson
dd5a8275f1
must return json response from /api/login/ping
...
Even though http error 401 was returned, the result was still a http 200
2019-02-01 01:21:23 +01:00
bergquist
91bd908e03
adds more tests signing out session
2019-01-31 22:24:04 +01:00
bergquist
11c4967bdc
changes some info logging to debug
2019-01-31 21:51:14 +01:00
bergquist
88ca54eba9
renames signout function
2019-01-31 16:26:36 +01:00
bergquist
43ac79685a
delete auth token on signout
2019-01-31 16:13:35 +01:00
Carl Bergquist
e2c2b70a61
Merge pull request #14852 from jpenalbae/pushover-attach
...
pushover: add support for attaching images (closes #10780 )
2019-01-31 11:18:08 +01:00
Daniel Lee
782c4eae98
Merge pull request #15127 from challengerdeep/fix-stackdriver-aggparams-reducer
...
Change primaryAggregation to crossSeriesReducer in Stackdriver
2019-01-30 00:45:22 +01:00
Torkel Ödegaard
9a598be4f7
Fixed failing unit test
2019-01-29 21:17:56 +01:00
Torkel Ödegaard
416562bd90
Merge pull request #15102 from mjtrangoni/fix-golint-issues
...
Fix golint issues
2019-01-29 21:12:34 +01:00
Torkel Ödegaard
a2dd6f378f
fixed sqlite issue introduced by #14709
2019-01-29 20:27:01 +01:00
Marcus Efraimsson
a067862a0a
Merge pull request #14709 from tpetr/extra-connection-string-args
...
add support for defining additonal database connection string args
2019-01-29 20:13:17 +01:00
Robert Edström
9b6746d808
Change primaryAggregation to crossSeriesReducer in Stackdriver
2019-01-29 19:11:54 +01:00
Daniel Lee
a3e09d8bbc
azuremonitor: fixes merge conflict in yarn.lock
2019-01-29 15:35:43 +01:00
Carl Bergquist
c6f80ecec2
Merge pull request #14229 from pbakulev/configurable-alert-notification
...
Configurable alert notification
2019-01-28 22:47:12 +01:00
Mario Trangoni
b7628f2060
pkg/util/{filepath.go,shortid_generator.go}: Fix golint issues
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=golint ./...
filepath.go:12:5⚠️ error var WalkSkipDir should have name of the form ErrFoo (golint)
shortid_generator.go:11:5⚠️ var validUidPattern should be validUIDPattern (golint)
shortid_generator.go:19:6⚠️ func IsValidShortUid should be IsValidShortUID (golint)
shortid_generator.go:24:6⚠️ func GenerateShortUid should be GenerateShortUID (golint)
2019-01-28 22:37:44 +01:00
Mario Trangoni
8261613b51
pkg/util/{ip.go,url.go}: Fix some golint issues
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=golint ./...
ip.go:8:6⚠️ func SplitIpPort should be SplitIPPort (golint)
url.go:14:6⚠️ func NewUrlQueryReader should be NewURLQueryReader (golint)
url.go:9:6⚠️ type UrlQueryReader should be URLQueryReader (golint)
url.go:37:6⚠️ func JoinUrlFragments should be JoinURLFragments (golint)
2019-01-28 22:29:20 +01:00