Open sergeiwaigant opened 1 year ago
Hi @sergeiwaigant
Just to check that the problem is not in credentials itself, can you confirm that you can download the same .zip file from artifactory using curl
or wget
and the same form of basic auth?
Hi @sergeiwaigant
Just to check that the problem is not in credentials itself, can you confirm that you can download the same .zip file from artifactory using
curl
orwget
and the same form of basic auth?
Yeah sure. I verified that the auth credentials are valid and they were working with curl perfectly.
Hi @sergeiwaigant. The operator delegates actual installation of plugins to opensearch. And AFAIK that does not allow to provide credentials for a plugin URL. Not really sure what the best course of action is as I don't believe there is anything simple the operator can do.
Would you be able create a custom/extended opensearch docker image with the monitoring plugin already included? Or could you predownload the plugin to a location and mount that into the pods?
Hi there.
We are running OpenSearch in an on-prem environment and have to fetch the monitoring plugin through an Artifactory which has authentication enabled. First of all I have to add
OPENSEARCH_JAVA_OPTS
tospec.nodePools[].env
with-Djavax.net.ssl.trustStore=/usr/share/opensearch/config/company-ca/company.truststore.jks
, otherwise I am getting the following error:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
The main issue that I see is, that the authentication is not working when I am giving
spec.general.monitoring.pluginUrl
ashttps://{{ artifactory_user }}:{{ artifactory_token }}@{{ artifactory_url }}/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.8.0.0/prometheus-exporter-2.8.0.0.zip
The error message is:
Can someone check and maybe confirm that this is not possible at the moment? Is it possible to configure an init container where we could download the plugin zip upfront?
Regards Sergei