Currently, ElasticSearch configuration does not allow to pass user credentials and setup authentication.
Authentication is much wanted for operational reasons.
In order to do so:
- Add a Credential object (username and password) + pass it as an optional field of ElasticSearchConfiguration
- ClientProvider needs to set up authentication if configured so. Check https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.3/_basic_authentication.html
An integration test on this could be welcomed as well.