influxdata / influxdata/kapacitor

skipVerify is not passed to command vars

Open
#2,449 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

If kapacitor is https enabled and is using self-signed certificate, `vars` command will always fail. Because it seems `skipVerify` option is not passed to command `vars`

https://github.com/influxdata/kapacitor/blob/1574f6a72e5088cfb728d0e03cbcc5686f324707/cmd/kapacitor/main.go#L2265

Not a major issue though, as a workaround, just curl-ing to URL from error with `-k` option will work.

Contributor guide

Open the contributing guide

Research direction

Start at cmd/kapacitor/main.go around line 2265, where the vars command is defined, and trace how skipVerify is handled for Kapacitor's HTTPS connection. Ensure the vars command receives the option when using a self-signed certificate, then verify that the command works with certificate verification skipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.