v0.34.0
TLS config: Enable selection of min TLS version (#375)

* TLS config: Enable selection of min TLS version

go1.18 changes the default minimum TLS version to 1.2.

Let's make the default minimum version configurable, while following go
default.

The allowed values (TLS10, ..) come from the exporter-toolkit:
https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md

TLSVersion is exported so the exporter toolkit can reuse them later.

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
7 files changed
tree: af7db138461194e8b31486d2001bae02d3263af4
  1. .circleci/
  2. .github/
  3. assets/
  4. config/
  5. expfmt/
  6. internal/
  7. model/
  8. promlog/
  9. route/
  10. server/
  11. sigv4/
  12. version/
  13. .gitignore
  14. .yamllint
  15. CODE_OF_CONDUCT.md
  16. CONTRIBUTING.md
  17. go.mod
  18. go.sum
  19. LICENSE
  20. MAINTAINERS.md
  21. Makefile
  22. Makefile.common
  23. NOTICE
  24. README.md
  25. SECURITY.md
README.md

Common

circleci

This repository contains Go libraries that are shared across Prometheus components and libraries. They are considered internal to Prometheus, without any stability guarantees for external usage.

  • assets: Embedding of static assets with gzip support
  • config: Common configuration structures
  • expfmt: Decoding and encoding for the exposition format
  • model: Shared data structures
  • promlog: A logging wrapper around go-kit/log
  • route: A routing wrapper around httprouter using context.Context
  • server: Common servers
  • version: Version information and metrics