Open LHozzan opened 1 year ago
I have the same problem. Providing a custom keystore did not solve the situation.
@LHozzan
can you try import the cert into java default cacerts file which under $JAVA_HOME/lib/security
folder
/usr/share/opensearch/jdk/bin/keytool \
-importcert -trustcacerts -noprompt -file /tmp/devel-ca.pem \
-alias company-ca -keystore $JAVA_HOME/lib/security/cacerts \
-storepass changeit
Hi @Hailong-am .
Thank you for your effort and interest. Meantime we tested another opportunity to get notifications from OS Dash (via M$ Teams) and this solution looks usable for us.
I will let the feature request opened for anybody else, who required this feature due to some limitations on his side.
BR, Lu
Is your feature request related to a problem? My current goal is provide our developers ability to watch over time some conditions and when reached matching criteria, they will be noticed via Prometheus AlertManager. Unfortunately, we would like to have more secure infrastructure, so internal AlertManager endpoint is secured via SSL certificate, which is signed by our internal CA. And here is a problem with supporting that scenario.
What solution would you like? Have some settings (in the OS Dashboard GUI preferable, but settings in config files are fine too) to specify custom CA, which is used to signed different endpoints for webhook targets.
What alternatives have you considered? A some way, how to set or specify custom CA certificate for webhook endpoint.
Do you have any additional context? If the endpoint isnt secured, everything working fine, but we need rise security. I asked on the forum and I was pointed to the old closed issue with workaround. Unfortunately, with OpenSearch version 2.7.0 the workaround not working. If I made trustore with
keytool
utility from the Docker image, JKS trustore looks good for the utility, but OpenSearch refuse start properly with bunch of warnings and errors. Looks like:For generating truststore I used the command:
Java settings for OpenSearch Client node looks like:
If I check truststore with
keytool
, everything looks good:If you need some additional information, please, let me know.