prometheus-adapter/cmd
Olivier Lemasle dc0c0058d0 Set MinVersion: tls.VersionTLS12 in prometheus client's TLSClientConfig
Having no explicit MinVersion is reported by [gosec] as G402 (CWE-295):
`TLS MinVersion too low`

Using MinVersion: tls.VersionTLS12 because it's what client-go uses:
cf 1ac8d45935/transport/transport.go (L92)

That way, the Kubernetes API client and the Prometheus client in
prometheus-adapter use the same TLS config MinVersion.

[gosec]: https://github.com/securego/gosec
2022-11-29 17:24:50 +01:00
..
adapter Set MinVersion: tls.VersionTLS12 in prometheus client's TLSClientConfig 2022-11-29 17:24:50 +01:00
config-gen Use Golangci-lint 2022-11-28 23:17:16 +01:00