VictoriaMetrics/lib/netutil
Nikolay 08cbbf8134
lib/promscrape: fixes proxy autorization (#6783)
* Adds custom dial func for HTTP-Connect and socks5 proxy tunnels.
  Standard golang http.transport exposes GetProxyConnectHeader function,
  but it doesn't allow to use separate tls config for proxy.
  It also not possible to enforce HTTP-Connect with standard http lib.
* For http scrape targets, by default http.Transport.Proxy function must
  be used. Since it has special case with full uri forward.
* Adds proxy.URL json methods that allow to properly copy internal
fields, like User/Password.
It should fix bug with proxy_url. When credentials specified at URL was
ignored.
* Adds tests for scrape client proxy requests

related issue https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6771
2024-08-19 22:50:39 +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
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/promscrape: fixes proxy autorization (#6783) 2024-08-19 22:50:39 +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