519ec93c7d
Datasource: Prefix SigV4 json data keys with sigV4 ( #28195 )
...
Prefixes SigV4 json data and secure json data keys with sigV4 to make
sure they don't collide with any other settings. Also minor fixes to UI.
Ref #27552
2020-10-12 17:52:17 +02:00
92c2a6c239
Fix: Add additional settings for dataproxy to help with network proxy timeouts ( #27841 )
...
* adding additional settings for datasource cache transport
* added documentation for the new changes
* fixing small typo in defaults.ini comment
* fixing small typo in configuration.md comment
* Update conf/defaults.ini keepalive comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update conf/defaults.ini idle conn comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update conf/defaults.ini anon user comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/administration/configuration.md idle conn comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* adding suggestions from papagian
* fixing configuration.md
* fixing configuration.md typo
* Apply suggestions from code review aknuds1
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* updating sample.ini
* Apply suggestions for docs from code review papagian
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
* Update docs/sources/administration/configuration.md fix typo
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-10-12 11:36:47 +03:00
7d63b2c473
Auth: Add Sigv4 auth option to datasources ( #27552 )
...
* create transport chain
* add frontend
* remove log
* inline field updates
* allow ARN, Credentials + Keys auth in frontend
* configure credentials
* add tests and refactor
* update frontend json field names
* fix tests
* fix comment
* add app config flag
* refactor tests
* add return field for tests
* add flag for UI display
* update comment
* move logic
* fix config
* pass config through props
* update docs
* pr feedback and add docs coverage
* shorten settings filename
* fix imports
* revert docs changes
* remove log line
* wrap up next as round tripper
* only propagate required config
* remove unused import
* remove ARN option and replace with default chain
* make ARN role assume as supplemental
* update docs
* refactor flow
* sign body when necessary
* remove unnecessary wrapper
* remove newline
* Apply suggestions from code review
* PR fixes
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-08 10:03:20 +02:00
747513d444
Plugins: Fix loading of backend plugins ( #27951 )
...
Ref #27921
2020-10-01 10:39:42 +02:00
7b891d10ee
Instrumentation: Removes invalid chars from label names ( #27921 )
2020-09-30 20:12:57 +02:00
f529223455
Fix instrumentation panic if there is no response ( #27567 )
2020-09-14 14:05:47 +03:00
f9752f0e7a
Instrumentation: Adds instrumentation for outgoing datasource requests ( #27427 )
2020-09-09 07:47:05 +02:00
c63bbbaec3
InfluxDB: Close Flux query results ( #26917 )
...
* InfluxDB: Drop ctxhttp usage
* InfluxDB: Clean up code
* InfluxDB: Close query results
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-13 17:50:53 +02:00
460b01f1fe
Datasource: Make sure data proxy timeout applies to HTTP client ( #25865 )
...
For backend data sources executing in the backend (not through data proxy) make
sure that the timeout applies to cached HTTP client.
Fixes #25863
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-06-29 11:22:49 +02:00
3fc5f4552a
CloudWatch: Fix high CPU load ( #20579 )
...
* Cache decrypted securejsondata
* Models: Add datasource cache tests
2019-11-22 14:21:23 +01:00
8cd93f0b88
Datasource: Add custom headers on alerting queries ( #19508 )
...
* Add custom headers on alerting queries
Reference issue #15381
Signed-off-by: Martin Schneppenheim <martin.schneppenheim@rewe-digital.com>
* Fix datasource transport tests
* Migrate decrypting header test to models pkg
* Check correct header
* Add HTTP transport test
Fixes #15381
2019-10-11 14:28:52 +02:00
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
a1cd550df4
revert ds_proxy timeout and implement dataproxy timeout correctly
2019-02-11 13:42:05 +01:00
f157c19e16
extract parsing of datasource tls config to method
2019-01-28 19:38:56 +01:00
ce941a004d
fix unconvert issues
2018-04-16 20:04:58 +02:00
4f3856adfb
Retain old name for TLS client auth
...
I renamed `tlsAuth` to `tlsClientAuth` to better describe the fact that
this variable is used to enable TLS client authentication (as opposed to
server authentication) in c04d95f35.
However, changing the name breaks backwards compatibility for existing
installations using this feature and Grafana does not have a
standardised way of migrating changes in the schema:
https://github.com/grafana/grafana/pull/9377#issuecomment-333063543
For reasons of expediency given the severity of the bug (not verifying
TLS), keep the old name.
2017-10-11 08:18:04 +01:00
f6aa0e41e5
Return error if datasource TLS CA not parsed
2017-10-11 08:18:03 +01:00
5d312be419
Datasource HTTP settings: Add TLS skip verify
...
In c04d95f35 I changed the default for datasource HTTP requests so that
TLS is always verified.
This commit adds a checkbox to allow an admin to explicitly skip TLS
verification, for testing purposes.
2017-10-11 08:18:03 +01:00
43169e4302
Verify datasource TLS and split client auth and CA
2017-10-11 08:18:03 +01:00
e9e8ffc769
Merge pull request #9367 from bobrik/dualstack
...
Enable dualstack in every net.Dialer, fixes #9364
2017-09-28 11:15:49 +02:00
9a4ae30227
Enable dualstack in every net.Dialer, fixes #9364
...
Default transport enables it:
* https://github.com/golang/go/blob/d2826d3e06/src/net/http/transport.go#L42-L46
```
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
```
See also: https://github.com/golang/go/issues/15324
2017-09-27 22:29:48 -07:00
8175783f93
go fmt
2017-09-24 18:59:21 +02:00
cffbcb504d
allow ssl renegotiation for datasources
2017-09-13 16:20:24 -07:00
2c7adccf12
Use cache for http.client in tsdb package. ( #6833 )
...
* datasource: move caching closer to datasource struct
* tsdb: use cached version of datasource http transport
closes #6825
2016-12-07 11:10:42 +01:00