common icon indicating copy to clipboard operation
common copied to clipboard

Add ability to pass TLS certs and keys inline

Open fayzal-g opened this issue 2 years ago • 0 comments

With https://github.com/prometheus/exporter-toolkit/pull/158, it is now possible pass forward TLS certificates and keys inline as part of the TLSConfig for the Server.

This PR also extends the TLSConfig within Server.go to allow the TLS certificate, private key and client CAs to be passed inline as a string. The content of this string is expected to be exactly the as a file, a PEM-encoded sequence of bytes. All parameters are then passed forward to web.TLSConfig within prometheus/exporter-toolkit as before.

fayzal-g avatar Jul 17 '23 12:07 fayzal-g