VictoriaMetrics/lib/netutil
Nikolay 9feee15493
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:31:18 +02:00
..
conn.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:02:34 +02:00
netutil.go app/vmauth: fix discovering backend IPs when url_prefix contains hostname with srv+ prefix (#6401) 2024-06-12 12:30:44 +02:00
proxyprotocol.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
proxyprotocol_test.go app,lib: fix typos in comments (#3804) 2023-02-13 13:27:13 +01:00
statdial.go lib/promscrape: fixes proxy autorization (#6783) 2024-08-19 22:31:18 +02:00
statdial_test.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:02:34 +02:00
tcplistener.go docs: follow-up after aec4b5db81 (#4638) 2023-07-19 10:10:51 +02:00
tls.go lib/netutil: validate TLS cert and key files immediately (#6621) 2024-07-29 13:58:53 +02:00
tls_test.go lib/netutil: validate TLS cert and key files immediately (#6621) 2024-07-29 13:58:53 +02:00