Dan Cech
124b21a6aa
use pluginName consistently when upgrading plugins
2018-09-13 17:19:51 -04:00
bergquist
12c9860882
string formating fixes
2018-08-28 22:33:38 +02:00
bergquist
03a9650c57
cli: adds os and arch headers
...
this makes it possible for the plugin repo
to provide the correct package if arch and os matters
2018-04-20 09:52:25 +02:00
Mario Trangoni
ce941a004d
fix unconvert issues
2018-04-16 20:04:58 +02:00
Matt Bostock
16c5d0e4b7
Always verify TLS unless explicitly told otherwise
...
TLS was not being verified in a number of places:
- connections to grafana.com
- connections to OAuth providers when TLS client authentication was
enabled
- connections to self-hosted Grafana installations when using the CLI
tool
TLS should always be verified unless the user explicitly enables an
option to skip verification.
Removes some instances where `InsecureSkipVerify` is explicitly set to
`false`, the default, to help avoid confusion and make it more difficult
to regress on this fix by accident.
Adds a `--insecure` flag to `grafana-cli` to skip TLS verification.
Adds a `tls_skip_verify_insecure` setting for OAuth.
Adds a `app_tls_skip_verify_insecure` setting under a new `[plugins]`
section.
I'm not super happy with the way the global setting is used by
`pkg/api/app_routes.go` but that seems to be the existing pattern used.
2017-10-06 17:09:27 +01:00
Ivan Babrou
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
bergquist
578507ae77
tech(cli): add default settings for transport
2016-11-01 08:58:44 +01:00
David Moravek
c6257b30c1
Take grafana-cli proxy settings from env
2016-10-31 23:14:48 +01:00
bergquist
6e65c93203
fix(cli): improve error handling
2016-10-21 16:03:02 +02:00
bergquist
2e4ca64783
fix(cli): improve error handling
...
closes #6256
2016-10-12 22:31:28 +02:00
bergquist
d2fb660557
fix(cli): remove unused logging
2016-09-20 10:10:27 +02:00
bergquist
3c92f78ee7
feat(cli): add grafana version header to all request against grafana.net
2016-09-15 16:01:06 +02:00
bergquist
af216ecf83
tech(cli): remove loop and head straight for plugindir
2016-06-26 03:47:15 +02:00
bergquist
af1c8dc5d9
feat(cli): adds support for dist/plugin.json location for plugins
...
ref #5410
2016-06-23 08:35:40 +02:00
bergquist
15aeb4aec2
tech(cli): rename log to logger to separate from server logger
2016-06-03 12:22:30 +02:00
Dan Cech
9f9f4e7fef
use new plugin-specific repo route when installing or updating a single plugin ( #4992 )
2016-05-12 10:43:31 +02:00
Anthony Woods
036f407d6a
gofmt
2016-03-29 16:04:24 +08:00
Anthony Woods
2c60dbd4fb
handle errors when requesting plugin list. fixes #4494
2016-03-29 15:35:08 +08:00
Torkel Ödegaard
1e44ee9e9b
feat(grafana-cli): minor changes
2016-03-28 21:42:26 +02:00
bergquist
5094c1db2a
feat(cli): improves error message for 401 requests
2016-03-11 14:34:48 +01:00
bergquist
fee0745e98
feat(cli): support for asking grafana net about plugins
2016-03-10 16:25:34 +01:00
bergquist
6670e6cd29
feat(cli): allow redirect for plugin-repo.json
2016-03-09 16:10:46 +01:00
bergquist
f6c5242a93
feat(cli): make repo url a parameter
...
this is a quick hack to support repo url as parameter. Will refactor
later
2016-03-07 13:29:45 +01:00
bergquist
4131d8b57a
feat(cli): add command for upgrading one plugin
2016-02-16 08:49:27 +01:00
bergquist
ea9ac0d2d2
chore(cli): improve unittests
2016-02-15 18:32:36 +01:00
bergquist
d59beec354
feat(cli): move cli into main repo
2016-02-15 14:09:34 +01:00