Unable to configure proxy with authentication for ML model download

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:

Hi,

I’m trying to register ML models in OpenSearch, but my environment requires going through an HTTP proxy with authentication (user/password).

I’ve added JVM options like:

-Dhttp.proxyHost=xxx
-Dhttp.proxyPort=xxx
-Dhttp.proxyUser=xxx
-Dhttp.proxyPassword=xxx

-Dhttps.proxyHost=xxx
-Dhttps.proxyPort=xxx
-Dhttps.proxyUser=xxx
-Dhttps.proxyPassword=xxx

-Dhttp.auth.preference=basic

With curl, the proxy works fine (HTTP/2 200), but from OpenSearch I always get:

Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407 authenticationrequired”

Has anyone successfully configured OpenSearch ML to work with a proxy requiring authentication?

Any guidance would be appreciated.

Thanks!

Configuration:

Relevant Logs or Screenshots:

Hi,

Anyone got this issue ?

Thanks!

Do you use https proxy? If you use https proxy, please change to http proxy. OpenSearch (Java) does not support https proxy.

@MHR Did you consider using additional proxy between your Internet gateway and OpenSearch cluster?

You will need Internet access even when deploying pertained models from a file.

1 Like

Yes, i am trying to configure the proxy, but didn’t find the documentation

tried but still same issue

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.