FATAL ValidationError: child "xpack" fails because [child "security" fails because ["anonymous" is not allowed]]

Hello, When I set xpack.security.anonymous.enabled: true in my kibana.yml, Kibana does not start.

Show the error "FATAL ValidationError: child "xpack" fails because [child "security" fails because ["anonymous" is not allowed]]"

Thanks!

Hi @KIKON

Looks like you are trying log with a anonymos user.
Have you added the next lines in kibana.yml file?

elasticsearch.username: "kibana"
elasticsearch.password: "kibana"

OK, I disabled xpack in kibana and logging with the anonymous user, the anonymous user only can see dashboard in one space, kibana didn't start.

I added at the user the role kibana_system, Kibana starts without login, bat the user see all spaces, and can create dashboards.

I am workin in a new role that keep starts kibana but not access many options.

Well, if you disabled xpack, the roles limit the UI are disabled. The user view all options and can use it, but when the user try save anything if you give only read roles, fail the operation. I dont like the solution. The only option for use the roles limit the UI of kibana is make a proxyrevers that authenticate in kibana. mmm Bad.