I am using 7.9.1. Kibana is running in a docker container. Trying to setup a Webhook action in Watcher with the following code:
"webhook_2" : {
"webhook" : {
"scheme" : "https",
"host" : "elastic.systems",
"port" : 9200,
"method" : "post",
"path" : "_aliases",
"params" : { },
"headers" : { },
"auth" : {
"basic" : {
"username" : "<username>",
"password" : "<password>"
}
},
"body" : """{"actions":[
{"add":{"index": "linux-syslog-*", "alias": "my-syslogs"}}]}"""
}
}
When execute the above Watcher, I got error like this:
{
"id" : "webhook_2",
"type" : "webhook",
"status" : "failure",
"error" : {
"root_cause" : [
{
"type" : "s_s_l_handshake_exception",
"reason" : "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
}
],
"type" : "s_s_l_handshake_exception",
"reason" : "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
"caused_by" : {
"type" : "validator_exception",
"reason" : "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
"caused_by" : {
"type" : "sun_cert_path_builder_exception",
"reason" : "unable to find valid certification path to requested target"
}
}
}
}
I look thru Watcher settings in Elasticsearch | Elasticsearch Guide [7.x] | Elastic and decide to add the following environments to the yml file:
XPACK_HTTP_SSL_VERIFICATIONMODE: none
XPACK_HTTP_SSL_CERTIFICATEAUTHORITIES: /etc/pki/tls/certs/trust-chain.pem
Then I rebuild the Kibana container with the new enviornment variables. Still got the same error.
Any suggestion on how to troubleshot? Any other settings I should change within the container?