Commit Graph
100 Commits
Author SHA1 Message Date
Carl Bergquist a86b8c8a04 http: remove dualstack since its deprecated (#16940)
Deprecated: Fast Fallback is enabled by default. To
disable, set FallbackDelay to a negative value.

https://golang.org/src/net/dial.go
2019-05-08 10:37:48 +02:00
Carl Bergquist b426ff5292 devenv: add slow reverse proxy (#16943)
this can be useful when testing timeouts etc
in the dataproxy

ref #16923
2019-05-08 10:09:48 +02:00
Carl Bergquist f001815d9d alerting: no notification when going from nodata -> pending (#16905)
ref #16496
2019-05-07 10:34:00 +02:00
Carl Bergquist b8674f4ec1 rpm: start grafana after mysqld process (#16917)
closes #16850
2019-05-07 09:47:03 +02:00
Carl Bergquist ec500ed416 devenv: add alert list panel (#16896) 2019-05-06 10:15:14 +02:00
Carl Bergquist 9660356638 Auth: Enable retries and transaction for some db calls for auth tokens (#16785)
the WithSession wrapper handles retries and connection
management so the caller dont have to worry about it.
2019-04-30 14:42:01 +02:00
Carl Bergquist fef3638018 build: removes gopkg files from dev docker file (#16817) 2019-04-30 12:01:43 +02:00
bergquist 4beed35890 removes gopkg.lock from root folder 2019-04-30 07:52:12 +02:00
bergquist 945cbf4710 updates changelog for 6.1.6 2019-04-29 16:06:01 +02:00
bergquist f7c8d90d1a phantomjs: set web-security to true 2019-04-29 14:37:52 +02:00
bergquist a8326e3e93 build: removes unused vendored files 2019-04-26 13:35:48 +02:00
Carl Bergquist 85e5835ddc Chore: bump jQuery to 3.4.0 in grafana/ui (#16781)
CVE-2019-5428
Vulnerable versions: < 3.4.0
Patched version: 3.4.0
A prototype pollution vulnerability exists in jQuery versions < 3.4.0 that
allows an attacker to inject properties on Object.prototype.

https://nvd.nist.gov/vuln/detail/CVE-2019-5428
2019-04-26 10:29:40 +02:00
Carl Bergquist 8ca5add4ec Build: Disables gosec until identified performance problems (#16764) 2019-04-25 14:49:32 +02:00
Carl Bergquist eb8af01a8a admin: add more stats about roles (#16667)
closes #14967
2019-04-24 13:18:16 +02:00
bergquist b9e148f3ab build: remove dep config files since they are not used anymore 2019-04-18 11:16:16 +02:00
Carl Bergquist e4eb0817e4 Cloudwatch: fix for flaky tests (#16649)
The iteration order over maps is not specified and is not guaranteed
to be the same from one iteration to the next. If a map entry that
has not yet been reached is removed during iteration, the corresponding
iteration value will not be produced. If a map entry is created during
iteration, that entry may be produced during the iteration or may be skipped.
The choice may vary for each entry created and from one iteration to
the next. If the map is nil, the number of iterations is 0.

https://golang.org/ref/spec#For_range
2019-04-17 19:06:32 +02:00
Carl Bergquist 3f136e0da9 tech: replace bmizerany/assert with stretchr/testify (#16625)
bmizerany is old and unsupported. so we are replacing it
with stretchr which is an drop in replacement and something
we want to use more in Grafana.
2019-04-17 10:25:58 +02:00
Carl Bergquist 68f5ddf18c replace dep with go modules (#16017)
- guide shamelessly stolen from prometheus/prometheus
- updates local interface of oauth exchange
- updates local impl of hclogger
- bump jaeger client version

closes #16088
2019-04-16 12:00:55 +02:00
Carl Bergquist 490515aec6 build: partially replace gometalinter with golangci-lint (#16610)
we still use gometalinter for goconst since it doesn't 
report errors for duplicated in test files
2019-04-16 10:27:07 +02:00
Carl Bergquist 9134251417 build: upgrades to golang 1.12.4 (#16545)
fix govet issue in golang 1.12.4
2019-04-15 09:18:28 +02:00
Carl Bergquist 44b365028f Build: Upgrades to go 1.12.3 (#16491)
fixes go vet issue that 1.12.3 detects
2019-04-12 09:44:02 +02:00
bergquist 98911e0708 adds backend code style guide 2019-03-15 20:19:24 +01:00
bergquist 1db7913a1c changelog: adds note about closing #15836 2019-03-15 09:25:58 +01:00
bergquist 1ddf6dafb6 changelog: adds note about closing #6359 and #15931 2019-03-15 07:32:33 +01:00
bergquist 191a7e4b8d changelog: adds note about closing #10816 2019-03-14 16:19:12 +01:00
bergquist 6d42d43b22 use constants for cache type 2019-03-14 15:48:20 +01:00
bergquist 5f059038c6 makes variables template prettier complient 2019-03-14 13:52:36 +01:00
bergquist f059c25f95 white space formating 2019-03-14 10:59:13 +01:00
bergquist 7b692c1cfd changelog: adds note about #15744 2019-03-14 10:10:58 +01:00
bergquist 0a86a1d7b6 updates old distcache names 2019-03-14 09:23:35 +01:00
bergquist c001cfe1d9 dont allow inifinite expiration 2019-03-14 09:22:03 +01:00
bergquist 5186273731 return error if cache type is invalid 2019-03-14 08:57:38 +01:00
bergquist f13263eb54 reduce loglevel to debug 2019-03-13 09:01:45 +01:00
bergquist 7aeab0a235 use Get instead of Find 2019-03-11 11:04:56 +01:00
bergquist b2967fbb37 avoid exposing cache client directly 2019-03-11 10:49:56 +01:00
bergquist 085b631099 add docs about remote cache settings 2019-03-11 10:49:56 +01:00
bergquist 7e7427637c renames distcache -> remotecache 2019-03-11 10:49:55 +01:00
bergquist 66e71b66dd renames key to cache_key
apparently key is a reserved keyword in mysql.
and the error messages doesnt mention that.
can I please have 6h back?
2019-03-11 10:49:55 +01:00
bergquist dbc1315d6f build steps for cache servers 2019-03-11 10:49:55 +01:00
bergquist daa3b17951 code layouts and comments 2019-03-11 10:49:42 +01:00
bergquist 9a78c23165 rename put -> set 2019-03-11 10:49:10 +01:00
bergquist 6231095f72 reverts package.json I made during the flight >.> 2019-03-11 10:49:10 +01:00
bergquist 98f5432659 memcache -> memcached
https://github.com/memcached/memcached
2019-03-11 10:49:09 +01:00
bergquist 995647be2c removes memory as distcache option
if database caching is to expensive if should
not use distcache in the first place.
2019-03-11 10:49:09 +01:00
bergquist b933b4efc8 test redis and memcached during integration tests 2019-03-11 10:49:09 +01:00
bergquist 196cdf9710 adds config to default settings 2019-03-11 10:49:09 +01:00
bergquist f9f2d9fcf3 avoid exporting test helpers 2019-03-11 10:49:09 +01:00
bergquist 33935b09f0 uses set instead of add for memcache
set always sets the value regardless.
2019-03-11 10:49:09 +01:00
bergquist 8db2864fee adds memory as dist storage alt 2019-03-11 10:49:09 +01:00
bergquist a60bb83a70 extract tests into seperate files 2019-03-11 10:49:09 +01:00
bergquist c8ff698d90 avoid exposing internal structs and functions 2019-03-11 10:49:04 +01:00
bergquist 3890bd14eb fixes typo in redis devenv 2019-03-08 09:09:28 +01:00
bergquist 11d671c637 add support for memcached 2019-03-08 09:09:28 +01:00
bergquist 5ced863f75 add support for redis storage 2019-03-08 09:09:27 +01:00
bergquist d99af23946 add garbage collector for database cache 2019-03-08 09:09:27 +01:00
bergquist 996d5059b1 test at interface level instead impl 2019-03-08 09:09:27 +01:00
bergquist d4f5789660 cache: initial version of db cache 2019-03-08 09:09:27 +01:00
bergquist d4c718091c changelog: adds note about closing #15608 2019-03-05 14:41:04 +01:00
bergquist ae9327ff3a remove UseBool since we use AllCols 2019-03-05 13:41:40 +01:00
bergquist 27dc3586b1 changelog: adds note about closing #14239 2019-03-02 21:27:09 +01:00
bergquist cde3a21434 changelog: adds note about closing #10506 2019-03-02 20:37:36 +01:00
bergquist dafd7afb97 changelog: adds note about closing #15651 2019-03-02 20:35:53 +01:00
bergquist 60fef31748 moves social package to /login
ref #14679
2019-02-25 15:30:40 +01:00
bergquist 0c67194b45 moves tracing packge into /infra 2019-02-25 15:29:25 +01:00
bergquist 8a3a3cccc3 moves metric package to /infra
ref #14679
2019-02-24 21:12:51 +01:00
bergquist 7754c37a1f reduce loglevel to debug 2019-02-19 08:22:33 +01:00
bergquist c68da40710 run db tests in all packages 2019-02-15 16:26:24 +01:00
bergquist af5a2468e8 fix spelling error 2019-02-14 20:18:24 +01:00
bergquist 191f9c8407 whats new: rename security section 2019-02-14 19:42:39 +01:00
bergquist 72f522bb51 rearrange bullet points in PR template
[skip ci]
2019-02-14 15:24:52 +01:00
bergquist b37e05714c link to contributing guidelines in pr template 2019-02-14 15:22:13 +01:00
bergquist 3f714fbd1b contributing: adds link to help wanted label 2019-02-14 14:54:09 +01:00
bergquist 681269b3fe contributing: adds link to our CLA 2019-02-14 14:53:46 +01:00
bergquist e22cba67dc removes testing instruction from contributing doc 2019-02-14 14:26:25 +01:00
bergquist 94c1335f11 docs: move alerting above session 2019-02-14 14:17:02 +01:00
bergquist 933d4729db docs: mention samesite setting 2019-02-14 14:06:50 +01:00
bergquist 7f7cc85ef0 docs: adds note about new login cookie name 2019-02-14 13:24:41 +01:00
bergquist 982f262089 make bug/feature titles more verbose 2019-02-14 09:13:58 +01:00
bergquist 0e6800495f mentioned closes/fixes for new features 2019-02-14 09:02:51 +01:00
bergquist 058debee67 contributing: improve guide for bug fixes 2019-02-13 14:25:26 +01:00
bergquist e163aadfe4 use authtoken for session quota restrictions
closes #15360
2019-02-12 15:10:55 +01:00
bergquist 1310d356fc removes unused session code 2019-02-12 12:33:54 +01:00
bergquist 3b9105e1be enable testing provsioned datasources
closes #12164
2019-02-12 08:45:21 +01:00
bergquist e4e42fcd08 adds edition to build_info metric 2019-02-11 15:42:12 +01:00
bergquist 13f21fffc4 changelog: adds note about closing #15295
[skip ci]
2019-02-11 13:35:37 +01:00
bergquist 5dc864b47f fixes invalid folder check
-f check if a file exists. -d checks if the dir exists
2019-02-11 11:36:34 +01:00
bergquist 7ce18ec4f7 extract notifiers folder creation to new if statement 2019-02-11 11:30:41 +01:00
bergquist 217eb6310e make sure notifiers dir exists for provisioning in docker 2019-02-11 11:17:23 +01:00
bergquist 3ce99bca66 renames usage state name for auth token
as noted, sessions might not be a good name for this metrics.
while devices would be a better name for users I think we should
align the name with the code as much as possible. The ui listing
all auth_tokens per user should probarbly say "devices" instead
2019-02-11 11:08:31 +01:00
bergquist 2c8c4729a8 changelog: adds note about closing #15288 2019-02-11 10:47:03 +01:00
bergquist 2be60887ca adds usage stats for sessions 2019-02-07 16:27:40 +01:00
bergquist 6e7941d396 moves usage stats sender to new package 2019-02-07 14:59:50 +01:00
bergquist 487e7b5ea6 removes cleanup setting from docs 2019-02-07 11:07:55 +01:00
bergquist 170783c292 make hourly cleanup the default behavior 2019-02-07 10:51:35 +01: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
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