Kibana doesn't show the user, and doesn't allow to manage users / roles

Viewed 1780

Scenario:

  • Elasticsearch 7.2 (basic license) and Kibana 7.2
  • xpack.security.enabled: true
  • I used elasticsearch-setup-passwords interactive to assign passwords to built-in users

I try to access Kibana, and it challenges me for user credentials, as expected. I log in with the user "elastic" (which should be the super-user, right?), and enter. But: I cannot see any user icon on top-right I cannot see the user / role management features

Can you help to understand where I'm wrong, please?

1 Answers

I encountered the same issue a little while ago. If you get prompted by your browser for basic authorization instead of the kibana login form, it means that you have secured the elasticsearch cluster but you have not enabled security in kibana itself.

This basic auth login prompt you see is actually from Elasticsearch not Kibana (while Kibana makes requests on your behalf to Elasticsearch). Kibana is setup for anonymous access (security implicitly is disabled) and this is why you don't see an icon with your user on the far right as you would expect.

You need to set

xpack.security.enabled: true

in your Kibana environment as well.

Furthermore you have to provide the password for the built-in kibana user in the configuration via the settings:

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

See this guide (https://www.elastic.co/guide/en/kibana/7.2/using-kibana-with-security.html) on how to configure security in kibana.

Related