From 1e9b580ac882b093981d661788bd6bbcf29b02dd Mon Sep 17 00:00:00 2001 From: Dan Moran Date: Fri, 22 Jan 2021 15:35:38 -0800 Subject: [PATCH 1/2] fix(cmd/influx): respect --skip-verify in `influx query` --- cmd/influx/query.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/influx/query.go b/cmd/influx/query.go index 2d59527a8ac..5a25e383041 100644 --- a/cmd/influx/query.go +++ b/cmd/influx/query.go @@ -115,7 +115,8 @@ func fluxQueryF(cmd *cobra.Command, args []string) error { req.Header.Set("Authorization", "Token "+flags.config().Token) req.Header.Set("Content-Type", "application/json") - resp, err := http.DefaultClient.Do(req) + client := ihttp.NewClient(u.Scheme, flags.skipVerify) + resp, err := client.Do(req) if err != nil { return err } From e404e1cf3bd2544106b1040d59cb7dca323ae682 Mon Sep 17 00:00:00 2001 From: Dan Moran Date: Fri, 22 Jan 2021 15:38:44 -0800 Subject: [PATCH 2/2] chore: update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bc91c1d37b..cd15f906a15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ Replacement `tsi1` indexes will be automatically generated on startup for shards 1. [20548](https://github.com/influxdata/influxdb/pull/20548): Prevent panic in `influxd upgrade` when V1 users exist and no V1 config is given. 1. [20565](https://github.com/influxdata/influxdb/pull/20565): Set correct Content-Type on v1 query responses. 1. [20565](https://github.com/influxdata/influxdb/pull/20565): Update V1 API spec to document all valid Accept headers and matching Content-Types. +1. [20578](https://github.com/influxdata/influxdb/pull/20578): Respect the --skip-verify flag when running `influx query`. ## v2.0.3 [2020-12-14]