[Fleet] Remote Elasticsearch output do not support custom ssl certificate #3490
Labels
bug
Something isn't working
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Team:Fleet
Label for the Fleet team
Description
It seems we do not support remote Elasticsearch output with custom certificate in Fleet server. When creating a remote output with an ES using self signed certificate and providing the ssl configuration in the advanced settings, the output is mark as unhealthy and agent using that policy are not sending data to the new remote ES.
It seems we do not use the whole output configuration when creating the Elasticsearch client to connect to the remote Elastic Search in Fleet Server. This cause Fleet server being unable to verify the output health or to create API keys for other Elastic agent.
Relevant code path, looks like we create the remote output client only with the host and service token, this is probably what need to be fixed. https://github.com/elastic/fleet-server/blob/main/internal/pkg/bulk/engine.go#L200
Workaround
I do not see any workaround, and this probably should be fixed with a new version.
The text was updated successfully, but these errors were encountered: