I configured elasticsearch to require ssl-communication, but not https via REST, see:
I can access elastic from curl using the pattern
curl -u kibana_system http://localhost:9200
I configured Kibana as following:
xpack.security.enabled: true
elasticsearch.username: "kibana_system"
elasticsearch.password: "123456"
xpack.security.encryptionKey: "ThequickbrownfoxjumpsoverthelazydogThequickbrownfoxjumpsoverthelazydog"
xpack.security.authc:
providers:
basic.basic1:
order: 0
however the log reads:
{"type":"log","@timestamp":"2020-10-27T14:57:00Z","tags":["error","elasticsearch","monitoring"],"pid":7,"message":"Request error, retrying\nGET http://localhost:9200/_xpack => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2020-10-27T14:57:00Z","tags":["error","elasticsearch","data"],"pid":7,"message":"Request error, retrying\nGET http://localhost:9200/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip => connect ECONNREFUSED 127.0.0.1:9200"}
It seems as if the basic authentication request to elasticsearch is ignored. I already read
So with my Basic plan this should be supported:
If Kibana has
elasticsearch.username
andelasticsearch.password
configured, it will attempt to use these to authenticate to Elasticsearch via the native realm
I understand that the native realm is available with elasticsearch without configuration.
Please note that when I had no security configured within elastic, I could easily connect with Kibana.
Please help!