# Enable Anonymous access in kibana

**URL:** <https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [June 26, 2019, 11:49am UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558 "2019-06-26T11:49:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [June 26, 2019, 11:49am UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558/1 "2019-06-26T11:49:16Z")

</div>

Hi,  
I have recently implemented security feature following this blog:

> **[Secure Elasticsearch with TLS encryption and role-based access control](https://www.elastic.co/blog/getting-started-with-elasticsearch-security?ultron=eck-alpha&blade=announcement&hulk=email&mkt_tok=eyJpIjoiTmpNd05ERXhNakk1TjJFMyIsInQiOiI1M2FpVHB3UjBLQXhnakhHdEJYcHg0OHhwUzZJOUpqMGN5SUtpVTJQcWk3MytUUTREcHBpWmRCbFhGZE1HYkdQWFFYaEg1SHVuNVNFZVFkenlEdkhwMmFwVDl3NTIzR1NMSWg1K010citEZkFIMzdPTVJzOVpzRm9NdXZraUhacSJ9)**
>
> Secure your Elasticsearch clusters -- and the other components of the Elastic Stack -- with node-to-node TLS and role-based access control (RBAC). These features and more are now available free with the default distribution of Elasticsearch and...

I successfully implemented it and it is working fine. Now I would like to add anonymous access also to specific index.

I found this article on anonymous access:

[https://www.elastic.co/guide/en/elastic-stack-overview/7.1/anonymous-access.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.1/anonymous-access.html)

I followed it but still I am getting sign in page when I open kibana. I am new to elastic search and may be this is trivial but I am not getting this.

any tutorial or help in this regard will be very helpful.  
What I wanted to finally implement is : security feature in elastic stack and allow anonymous access to kibana dashboard with view only role and login for other user.

Thanks

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [June 26, 2019, 8:32pm UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558/2 "2019-06-26T20:32:55Z")

</div>

This issue discusses anonymous access to kibana and links to a potential work around - [https://github.com/elastic/kibana/issues/18331](https://github.com/elastic/kibana/issues/18331)

---

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [June 27, 2019, 10:46am UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558/3 "2019-06-27T10:46:22Z")

</div>

Hi Matthew, thank you for your response. I went through the link you shared but couldn't find the way to solve my issue.

When I add these to elasticsearch.yml file in my master node and other node as per the two nodes in the security blog tutorial.

```
xpack.security.authc:
  anonymous:
    username: anonymous_user 
    roles: role1
    authz_exception: true
```

I get this when I try to access localhost:9200 where elastic node should be.

```
{"error":{"root_cause":[{"type":"security_exception","reason":"action [cluster:monitor/main] is unauthorized for user [anonymous_user]"}],"type":"security_exception","reason":"action [cluster:monitor/main] is unauthorized for user [anonymous_user]"},"status":403}
```

I also try adding this as per the discussion on the link you shared to kibana.yml file, but still this is not working as desired.

```
xpack.security.anonymous.enable: true
```

It will be helpful if someone can help me with steps or tutorial I should follow to add anonymous access to specific kibana dashboard. At present I am able to add security features for users, I want to have one anonymous access also in addition with users.

Thank you  
Saurabh

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [June 27, 2019, 8:13pm UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558/4 "2019-06-27T20:13:23Z")

</div>

Hello @Saurabh_Sharma_IIT

I'm not sure if it will work for your situation but I was referencing this particular comment - [https://github.com/elastic/kibana/issues/18331#issuecomment-386727100](https://github.com/elastic/kibana/issues/18331#issuecomment-386727100)

---

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [June 28, 2019, 6:30am UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558/5 "2019-06-28T06:30:36Z")

</div>

Hi, thank you for your quick response. I went through that comment, yes that can be used as a workaround. Reverse proxy can be used for anonymous access for now.

Thanks Matthew

---

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [July 4, 2019, 10:41am UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558/6 "2019-07-04T10:41:52Z")

</div>

Hi,  
I have drafted a tutorial for anonymous access, basically drafted what was mentioned in that comment. Might be useful for someone who want to do the same.

> **[Anonymous access to Kibana dashboard using nginx: a workaround](https://medium.com/@saurabhiiti123/anonymous-access-to-kibana-dashboard-using-nginx-a-workaround-a1896b44c4c8)**
>
> Hi, I am Saurabh, undergraduate student at IIT Indore, India. In this tutorial I will share how to enable anonymous access to kibana…

Thanks

---

<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:** [August 1, 2019, 10:41am UTC](https://discuss.elastic.co/t/enable-anonymous-access-in-kibana/187558/7 "2019-08-01T10:41:52Z")

</div>

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