grafana / grafana-infinity-datasource

CSV, JSON, GraphQL, XML and HTML datasource for grafana.
https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource
Apache License 2.0
765 stars 103 forks source link

[Feature Request] Missing Go TLS configuration function TLS renegotiate #957

Open nullspace-dev opened 3 months ago

nullspace-dev commented 3 months ago

Describe the bug

There is a missing function that could be useful for working around some legacy or lagging APIs.

Renegotiation: tls.RenegotiateOnceAsClient,

line 35 in client.go

func GetTLSConfigFromSettings(settings models.InfinitySettings) (*tls.Config, error) { tlsConfig := &tls.Config{ InsecureSkipVerify: settings.InsecureSkipVerify, ServerName: settings.ServerName, Renegotiation: tls.RenegotiateOnceAsClient, }

this is currently necessary for us to communicated with an on-prem security product API that's running on IIS.