-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libbeat] Add output.elasticsearch.proxy_disable flag #12243
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// I'm not entirely satisfied with this approach, but it seems by nature of | ||
// golang's proxy handling that we can't do better without a multi-machine | ||
// integration test. | ||
func TestProxyDisableOverridesProxySettings(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am okay with this strategy.
@faec Can you add a changelog entry? |
Add a `proxy_disable` output flag that can disable output proxy settings even if they are set in environment variables (HTTP_PROXY, etc., as specified in [the Golang http package](https://golang.org/pkg/net/http/#ProxyFromEnvironment)). This was requested because specifying a blank Proxy field will still fall back to the environment variables, which may not be easily modified by the caller, especially on windows. Setting proxy_disable can bypass all proxies with only a configuration change. Resolves elastic#11713.
starting with version 7.3.0 we are getting connection problem behind proxy no matter what the value is for proxy_disable. Same config works with 7.2.1 |
This change was already in 7.2 (and typically has no effect), so if you're having proxy trouble upgrading from 7.2.1 to 7.3.0 it's probably caused by something else. You can try asking about your configuration in our discussion forums, or if you already have enough context to provide a bug report you can submit an issue. Thanks! |
Add a flag that can disable output proxy settings even if they are set in environment variables (HTTP_PROXY, etc., as specified in the Golang http package). This was requested because specifying a blank Proxy field will still fall back to the environment variables, which may not be easily modified by the caller, especially on windows. Setting proxy_disable can bypass all proxies with only a configuration change.
Resolves #11713.