Open fludo opened 3 years ago
Pinging @elastic/es-data-management (Team:Data Management)
I successfully use a proxy without authentication to update geoip database with ES_JAVA_OPTS
with this 2 kinds of method :
"ES_JAVA_OPTS=-Djava.net.useSystemProxies=true"
(With the proxy system configured through https_proxy
environment configured)or
"ES_JAVA_OPTS=-Dhttps.proxyHost=10.x.x.x -Dhttps.proxyPort=3128 -Dhttps.nonProxyHosts=localhost|127.0.0.1|10.*.*.*"
So the ES_JAVA_OPTS
seems to work now.
But I would like too to use a proxy with authentication and the following ES_JAVA_OPTS
didn't work :
"ES_JAVA_OPTS=-Dhttps.proxyUser=xxxx -Dhttps.proxyPassword=yyyyy -Dhttps.proxyHost=10.x.x.x -Dhttps.proxyPort=3128 -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.https.auth.tunneling.disabledSchemes="
Did someone succeed or have any advise ?
It is splitting hair's but I have updated the issue to be a bug not an enhancement since the HTTP clients should be able to be configured via Elasticsearch settings. From which HTTP clients should have general support for HTTP proxy, custom trust stores, and a small handful of other common configurations.
I am dealing with this problem as well and was surprised that this feature is missing. One thing that puzzled me was there is already proxy support for watcher. The strange thing about these parameters is that they are not named after watcher. Thus, with a setting like xpack.http.proxy.host in elasticsearch.yml one could assume that it is generally applied to elasticsearch http clients like geoip database download etc. and not only watcher.
The documentation should say "reverse proxy" instead of Proxy for the endpoint.
We already have xpack.http.proxy.host
set and that should just work as-is.
I set a reverse proxy and it doesn't work either. The problem is that it fetches the metadata that contains endpoint to storage.googleapis.com. One would need to manipulate the metadata file to get this working.
When starting the elasticsearch, it attemps to update the geoip database (since 7.14).
An error occurs if it is behind a proxy. Apparently, we cannot configure any proxy to allow accessing a remote URL if behind a proxy.
The complete log is :
This request may be related to 75026 if ES_JAVA_OPTS could be used.