-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
type: bugA code related bug.A code related bug.
Description
A note for the community
Expected behaviour: setting proxy.no_proxy to an empty list overrides no_proxy env var to disable no_proxy lookup.
I use a toml config file
Problem
Vector is deployed in an environment with the no_proxy env var. I have a loki deployed behind a proxy, but the url of the loki matches a rule in my no_proxy env var.
I first set the proxy.http option alone but it did not work. so i set the no_proxy option to an empty list to override my no_proxy env var.
This did not work either, I had to put dummy elements to my no_proxy option to make the connection work.
I used the proxy setting in the loki sink, but I had the same issue before with the global proxy settings.
Configuration
[sinks.output_loki_test_output]
proxy.enabled = true
proxy.http = "http://proxy_url:8080"
proxy.https = "http://proxy_url:8080"
proxy.no_proxy = []
type = "loki"
inputs = ["output_loki_customer_test_output_loki_tenant"]
endpoint = "http://loki_url:3100/"
==> this doesn't work, but should work
[sinks.output_loki_test_output]
proxy.enabled = true
proxy.http = "http://proxy_url:8080"
proxy.https = "http://proxy_url:8080"
proxy.no_proxy = ["localhost",".dummy.domain"]
type = "loki"
inputs = ["output_loki_customer_test_output_loki_tenant"]
endpoint = "http://loki_url:3100/"
==> this works
Version
vector 0.37.1 (x86_64-unknown-linux-gnu)
Debug Output
Example Data
No response
Additional Context
No response
References
No response
Metadata
Metadata
Assignees
Labels
type: bugA code related bug.A code related bug.