# Kibana connection without enrollment token

**URL:** https://discuss.elastic.co/t/kibana-connection-without-enrollment-token/330728
**Category:** Kibana
**Created:** [April 25, 2023, 11:01am UTC](https://discuss.elastic.co/t/kibana-connection-without-enrollment-token/330728 "2023-04-25T11:01:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ANUBHAV\_GUPTA](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@ANUBHAV\_GUPTA](https://discuss.elastic.co/u/ANUBHAV_GUPTA)
#### Post date: [April 25, 2023, 11:01am UTC](https://discuss.elastic.co/t/kibana-connection-without-enrollment-token/330728/1 "2023-04-25T11:01:31Z")

</div>

Can we connect to elasticsearch using Kibana without the **enrollment token** and **username-password**?  
I tried sometime back, then it was not mandatory to provide enrollment token.  
Even tried setting **xpack.security.enrollment.enabled=false** but again it's asking for enrollment.

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [April 25, 2023, 12:32pm UTC](https://discuss.elastic.co/t/kibana-connection-without-enrollment-token/330728/2 "2023-04-25T12:32:22Z")

</div>

> [@ANUBHAV\_GUPTA](#):
>
> xpack.security.enrollment.enabled=false

Disabling the security settings is not something that we recommend. Are you following along with [the guide for setting up security on the Elastic Stack](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html)? You could try generating a new enrollment token using the create tool [as per the docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/create-enrollment-token.html) if that helps?

---

<div class="post-metadata">

### Author: ![ANUBHAV\_GUPTA](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@ANUBHAV\_GUPTA](https://discuss.elastic.co/u/ANUBHAV_GUPTA)
#### Post date: [April 25, 2023, 12:54pm UTC](https://discuss.elastic.co/t/kibana-connection-without-enrollment-token/330728/3 "2023-04-25T12:54:28Z")

</div>

I tried a month back, then It was not mandatory to use enrollment token.  
Am I correct?

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [April 25, 2023, 2:58pm UTC](https://discuss.elastic.co/t/kibana-connection-without-enrollment-token/330728/4 "2023-04-25T14:58:07Z")

</div>

Which version of Elastic are you using now and as of a month ago? I know security was enabled by default on self-managed clusters as of version 8. There's an overview [in this blog](https://www.elastic.co/blog/introducing-simplified-elastic-stack-security). But I'm not aware of the enrollment token being mandatory changing.

Someone else might know otherwise!

---

<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: [May 23, 2023, 2:58pm UTC](https://discuss.elastic.co/t/kibana-connection-without-enrollment-token/330728/5 "2023-05-23T14:58:29Z")

</div>

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