# Anonymous authentication - docker configuration

**URL:** <https://discuss.elastic.co/t/anonymous-authentication-docker-configuration/278489>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [July 13, 2021, 6:32am UTC](https://discuss.elastic.co/t/anonymous-authentication-docker-configuration/278489 "2021-07-13T06:32:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yannjor](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@yannjor](https://discuss.elastic.co/u/yannjor)\
**Post date:** [July 13, 2021, 6:32am UTC](https://discuss.elastic.co/t/anonymous-authentication-docker-configuration/278489/1 "2021-07-13T06:32:22Z")

</div>

Hello,

I am trying to enable anonymous authentication in Kibana to make my embedded dashboards viewable without login. I have enabled anonymous access to elastic with:

```auto
- xpack.security.authc.anonymous.roles=kibana_system
- xpack.security.authc.anonymous.authz_exception=true

```

I then tried to enable anonymous authentication to Kibana using the steps described [here](https://www.elastic.co/guide/en/kibana/7.13/kibana-authentication.html#anonymous-authentication) . I couldn't find any instructions specific for docker, so I tried this in the environment variables for Kibana:

```auto
 XPACK_SECURITY_AUTHC_PROVIDERS_ANONYMOUS_ANONYMOUS1_ORDER: 0
 XPACK_SECURITY_AUTHC_PROVIDERS_ANONYMOUS_ANONYMOUS1_CREDENTIALS: "elasticsearch_anonymous_user"

```

I would really appreciate any help if someone knows how to do this. Thanks!

---

<div class="post-metadata">

**Author:** ![yannjor](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@yannjor](https://discuss.elastic.co/u/yannjor)\
**Post date:** [July 14, 2021, 6:07am UTC](https://discuss.elastic.co/t/anonymous-authentication-docker-configuration/278489/2 "2021-07-14T06:07:18Z")

</div>

I got it working now with the kibana.yml. Still wondering if this is possible using the environment variables method in docker-compose.

---

<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 11, 2021, 6:07am UTC](https://discuss.elastic.co/t/anonymous-authentication-docker-configuration/278489/3 "2021-08-11T06:07:26Z")

</div>

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