# Enable login page for basic user authetication in Kibana

**URL:** <https://discuss.elastic.co/t/enable-login-page-for-basic-user-authetication-in-kibana/306208>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [June 2, 2022, 9:07am UTC](https://discuss.elastic.co/t/enable-login-page-for-basic-user-authetication-in-kibana/306208 "2022-06-02T09:07:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduhernandezm](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@eduhernandezm](https://discuss.elastic.co/u/eduhernandezm)\
**Post date:** [June 2, 2022, 9:07am UTC](https://discuss.elastic.co/t/enable-login-page-for-basic-user-authetication-in-kibana/306208/1 "2022-06-02T09:07:54Z")

</div>

Good morning,

I have the following problem. I have installed ELK version 8 on three different servers, one for each service. Now what I am trying to enable basic user authentication so that the login page is enabled in the kibana.

I have made the configuration both in the elasticsearch.yml enabling security:

# Enable security features

xpack.security.enabled: true

And in the Kibana part, add the username and password of the "kibana\_system" user.

The two services are restarted, and on the Kibana side, the following appears in the log:

{"ecs":{"version":"8.0.0"},"@timestamp":"2022-06-02T09:45:15.248+01:00","message":"Unable to retrieve version information from Elasticsearch nodes.socket hang up - Local: 10.140.220.163:35512, Remote: 10.140.220.150:9200","log":{"level":"ERROR","logger":"elasticsearch-service"},"process" :{"pid":428651},"trace":{"id":"d15c5991ae4849dfc126eb718cae1867"},"transaction":{"id":"375c4b8e2c0d9e0f"}}

And it doesn't finish booting, having to revert the changes, and logically not having access security enabled.

What is missing for a correct configuration?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [June 27, 2022, 3:20pm UTC](https://discuss.elastic.co/t/enable-login-page-for-basic-user-authetication-in-kibana/306208/2 "2022-06-27T15:20:37Z")

</div>

Elasticsearch 8 with security enabled needs to configure TLS correctly to interact with Kibana as mentioned in the [release notes](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/release-highlights.html#_security_features_are_enabled_and_configured_by_default).

Take a look at this blog post on how to connect Kibana with Elasticsearch using an enrollment token:

> **[Securing your Elastic Stack is now simpler than ever](https://www.elastic.co/blog/introducing-simplified-elastic-stack-security)**
>
> In Elastic 8.0, Elastic Stack security is on by default for self-managed clusters. To get started, simply spin up Elasticsearch and Kibana, connect them using the new web UI, and they work together securely, out of the box.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 25, 2022, 3:20pm UTC](https://discuss.elastic.co/t/enable-login-page-for-basic-user-authetication-in-kibana/306208/3 "2022-07-25T15:20:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
