Unable to connect to influxdb (https)
Chronograf unable to connect to influxdb through https using self signed ssl cert. I get TLS handshake error from 127.0.0.1:49383: EOF error, while telegraf still able stream metrics to DB, and grafana is able to get them (both over https).
https://i.imgur.com/GniZua6.png https://i.imgur.com/GJQbVkp.png https://i.imgur.com/S6PAhKI.png
Looks like we can fix this with:
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{Transport: tr}
However we may want to set an env variable to override the default of ensuring the signing is valid.
@nhaugo I'm thinking we should have allowing self-signed certs (InsecureSkipVerify) as an option in the UI. It feels more explicit rather than as a configuration option for all influx datasources.
• Update sources on boltdb side and api • Add checkbox to source creation and initial setup screen • Pass value when connecting
Ok, I've completed the server side portion of this in #728.
The UI needs to have an option to allow any certificate for influxdb. (Only valid when the URL scheme is https)
Hi @Hijis, @121watts PR to support self-signed support was just merged into master. We plan on releasing our next beta tomorrow. Thanks again for the request!