This is a simple question, but I could not find answers from the internet. Also, I'm a beginner in using elk.
I know, the security (x-pack) is free from 6.8 version onwards. Even I'm trying to use that feature. But I'm a bit confused that, why we need to give username and password in kibana.yml (or as env variables), as we anyway need to give credentials when kibana ui prompts for it.
Can't kibana use only the cred we give (in UI) to access elastic search? Why we give credentials twice (one in kibana.yml and another one in kibana UI)? How does kibana make use of this credentials?
I know I'm missing something, but it would be nice if you guys can explain it.