From 50ac22df784a3f45279fb0bb82bc7eaa4491fcf3 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 17 Apr 2024 23:38:16 +0200 Subject: [PATCH] lib/httpserver: add support for automatic issuing of TLS certificates via Lets Encrypt service Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5949 --- README.md | 35 +++++++++++++++++++--- docs/CHANGELOG.md | 1 + docs/Cluster-VictoriaMetrics.md | 42 ++++++++++++++++++++++----- docs/README.md | 35 +++++++++++++++++++--- docs/Single-server-VictoriaMetrics.md | 35 +++++++++++++++++++--- docs/enterprise.md | 1 + docs/vmagent.md | 18 +++++++++--- docs/vmalert.md | 12 ++++++-- docs/vmauth.md | 38 ++++++++++++++++++++++-- docs/vmbackup.md | 12 ++++++-- docs/vmbackupmanager.md | 14 +++++++-- docs/vmgateway.md | 14 +++++++-- docs/vmrestore.md | 12 ++++++-- lib/httpserver/httpserver.go | 5 ++-- 14 files changed, 233 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 90d17bfb1..2b84b891a 100644 --- a/README.md +++ b/README.md @@ -2074,6 +2074,8 @@ requests at this port, by specifying `-tls` and `-mtls` command-line flags. For By default system-wide [TLS Root CA](https://en.wikipedia.org/wiki/Root_certificate) is used for verifying client certificates if `-mtls` command-line flag is specified. It is possible to specify custom TLS Root CA via `-mtlsCAFile` command-line flag. +See also [security docs](#security). + ## Security General security recommendations: @@ -2091,7 +2093,9 @@ General security recommendations: VictoriaMetrics provides the following security-related command-line flags: -* `-tls`, `-tlsCertFile` and `-tlsKeyFile` for switching from HTTP to HTTPS at `-httpListenAddr` (8428 by default). +* `-tls`, `-tlsCertFile` and `-tlsKeyFile` for switching from HTTP to HTTPS at `-httpListenAddr` (TCP port 8428 is listened by default). + [Enterprise version of VictoriaMetrics](https://docs.victoriametrics.com/enterprise/) supports automatic issuing of TLS certificates. + See [these docs](#automatic-issuing-of-tls-certificates). * `-mtls` and `-mtlsCAFile` for enabling [mTLS](https://en.wikipedia.org/wiki/Mutual_authentication) for requests to `-httpListenAddr`. See [these docs](#mtls-protection). * `-httpAuth.username` and `-httpAuth.password` for protecting all the HTTP endpoints with [HTTP Basic Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication). @@ -2114,6 +2118,19 @@ For example, substitute `-graphiteListenAddr=:2003` with `-graphiteListenAddr=