Improve the ElasticSearch cluster configuration to allow basic_auth ES access

why do you store it as attribute ?