VictoriaMetrics/lib/netutil
jackyin f0a87abedd
lib/netutil: validate TLS cert and key files immediately (#6621)
Validate files specified via `-tlsKeyFile` and `-tlsCertFile` cmd-line flags on the process start-up. Previously, validation happened on the first connection accepted by HTTP server.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6608

---------

Co-authored-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit e5d279bb71)
2024-07-29 14:30:20 +02:00
..
conn_pool_test.go Add vmstorageUserTimeout flags to configure TCP user timeout (Linux) (#4423) 2023-08-29 11:46:39 +02:00
conn_pool.go app/{vminsert,vmselect}: follow-up after 2b7b3293c1 2023-08-29 12:17:39 +02:00
conn.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:05:46 +02:00
dns_test.go app/{vminsert,vmselect}: support for srv+addr scheme for specifying DNS SRV addresses at -storageNode flag 2024-04-17 23:15:05 +02:00
dns.go app/vmselect: add support for vmstorage groups with independent -replicationFactor per group 2023-12-13 00:14:34 +02:00
netutil.go app/vmauth: fix discovering backend IPs when url_prefix contains hostname with srv+ prefix (#6401) 2024-06-12 11:47:44 +02:00
proxyprotocol_test.go app,lib: fix typos in comments (#3804) 2023-02-13 09:32:35 -08:00
proxyprotocol.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-26 09:44:40 +02:00
statdial_test.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:05:46 +02:00
statdial.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:05:46 +02:00
tcpdialer_default.go all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:15:42 +01:00
tcpdialer_linux.go app/{vminsert,vmselect}: follow-up after 2b7b3293c1 2023-08-29 12:17:39 +02:00
tcpdialer.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-03 03:00:45 +03:00
tcplistener.go docs: follow-up after aec4b5db81 (#4638) 2023-07-19 14:48:17 -07:00
tls_test.go lib/netutil: validate TLS cert and key files immediately (#6621) 2024-07-29 14:30:20 +02:00
tls.go lib/netutil: validate TLS cert and key files immediately (#6621) 2024-07-29 14:30:20 +02:00