Implement client authentication to ElasticSearch