# How to configure the anonymous login to kibana

**URL:** <https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [November 15, 2023, 9:38am UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208 "2023-11-15T09:38:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MahithaSarala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahithasarala/32/101721_2.png) [@MahithaSarala](https://discuss.elastic.co/u/MahithaSarala)\
**Post date:** [November 15, 2023, 9:38am UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/1 "2023-11-15T09:38:46Z")

</div>

Hi Team,

After deploying elasticsearch and kibana throgh eck, how to configure anonymous login to kibana 8.5.3

Thanks,  
SM

---

<div class="post-metadata">

**Author:** ![MahithaSarala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahithasarala/32/101721_2.png) [@MahithaSarala](https://discuss.elastic.co/u/MahithaSarala)\
**Post date:** [November 16, 2023, 12:36pm UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/2 "2023-11-16T12:36:10Z")

</div>

Can anyone respond for this.

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [November 16, 2023, 1:01pm UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/3 "2023-11-16T13:01:07Z")

</div>

Hello,

Try below settings, here basic and anonymous both are used(order is the priority- read documentation for more)

xpack.security.authc.providers.basic.basic1.order: 0  
xpack.security.authc.providers.anonymous.kibana\_default\_user.order: 1  
xpack.security.authc.selector.enabled: false  
xpack.security.authc.providers.anonymous.kibana\_default\_user.credentials.username: ELASTICSEARCH\_USERNAME  
xpack.security.authc.providers.anonymous.kibana\_default\_user.credentials.password: ${xpack.security.authc.providers.anonymous.kibana\_default\_user.credentials.password}

---

<div class="post-metadata">

**Author:** ![MahithaSarala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahithasarala/32/101721_2.png) [@MahithaSarala](https://discuss.elastic.co/u/MahithaSarala)\
**Post date:** [November 17, 2023, 9:02am UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/4 "2023-11-17T09:02:17Z")

</div>

Hi @PRASHANT_MEHTA ,

Do we need to add this settings to kibana.yaml ?  
user name and password is it require to add manually  
xpack.security.authc.providers.anonymous.kibana\_default\_user.credentials.username: ELASTICSEARCH\_USERNAME  
xpack.security.authc.providers.anonymous.kibana\_default\_user.credentials.password: ${xpack.security.authc.providers.anonymous.kibana\_default\_user.credentials.password}  
Thanks  
SM

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [November 17, 2023, 9:32am UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/5 "2023-11-17T09:32:56Z")

</div>

Hello @MahithaSarala ,

Yes , need to add this setting as this defines anonymous username and authentication pass.(I'm hidding the details of username and password using keystore)  
Try adding these and then check login to kibana with your Anonymous-USER/PASS.

---

<div class="post-metadata">

**Author:** ![MahithaSarala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahithasarala/32/101721_2.png) [@MahithaSarala](https://discuss.elastic.co/u/MahithaSarala)\
**Post date:** [November 17, 2023, 9:58am UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/6 "2023-11-17T09:58:38Z")

</div>

Hi @PRASHANT_MEHTA ,

Password not required for anonymous user right , these configurations is it require to mention on Elasticsearch configuration file as well .

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [November 17, 2023, 10:15am UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/7 "2023-11-17T10:15:52Z")

</div>

Hello ,  
I hope you understand the need of anonymous user access need i.e no creds should be required and direct login to kibana.Yes you're correct you can avoid the password and test once.Once you get some error in logs you can proceed further.

---

<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:** [December 15, 2023, 10:16am UTC](https://discuss.elastic.co/t/how-to-configure-the-anonymous-login-to-kibana/347208/8 "2023-12-15T10:16:28Z")

</div>

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