chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Unable to connect to influxdb (https)

Open vvrein opened this issue 9 years ago • 5 comments

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

vvrein avatar Dec 12 '16 15:12 vvrein

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 avatar Dec 12 '16 21:12 nhaugo

@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.

goller avatar Dec 21 '16 00:12 goller

• Update sources on boltdb side and api • Add checkbox to source creation and initial setup screen • Pass value when connecting

nhaugo avatar Jan 04 '17 21:01 nhaugo

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)

goller avatar Jan 05 '17 01:01 goller

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!

goller avatar Jan 12 '17 23:01 goller