# Elasticstack security

**URL:** <https://discuss.elastic.co/t/elasticstack-security/263747>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [February 9, 2021, 2:23pm UTC](https://discuss.elastic.co/t/elasticstack-security/263747 "2021-02-09T14:23:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRODIPTO](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@PRODIPTO](https://discuss.elastic.co/u/PRODIPTO)\
**Post date:** [February 9, 2021, 2:23pm UTC](https://discuss.elastic.co/t/elasticstack-security/263747/1 "2021-02-09T14:23:59Z")

</div>

Hi  
I am using a basic license and trying to enable security on a single node ELK cluster . to enable security i have added the below lines in elasticsearch.yml

```auto
xpack.security.enabled: true
discovery.type: single-node

```

In kibana.yml i have enabled the following lines

```auto
elasticsearch.username: "kibana_system"
elasticsearch.password: "pass"

```

but i am getting the below error in kibana log and the UI is not accessible

```auto
[security_exception]: missing authentication credentials for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]"}

```

I have tried using the below credentials in kibana.yml but then also i am getting the same error:

```auto
xpack.monitoring.elasticsearch.username: "kibana_system"
xpack.monitoring.elasticsearch.password: "kibanapassword"

```

Any help on the above will be really great ..

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 9, 2021, 2:47pm UTC](https://discuss.elastic.co/t/elasticstack-security/263747/2 "2021-02-09T14:47:01Z")

</div>

You need to first set the password for the builtin users ( see [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-security.html) ), as `kibana_system` is a builtin user. Then you'd need to add that password as `elasticsearch.password` in your kibana.yml.

---

<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:** [March 9, 2021, 2:47pm UTC](https://discuss.elastic.co/t/elasticstack-security/263747/3 "2021-03-09T14:47:18Z")

</div>

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