# Xpack.security.enabled: true Enable Kibana Security Features (Elasticsearch 7.10)

**URL:** <https://discuss.elastic.co/t/xpack-security-enabled-true-enable-kibana-security-features-elasticsearch-7-10/258202>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [December 10, 2020, 12:11am UTC](https://discuss.elastic.co/t/xpack-security-enabled-true-enable-kibana-security-features-elasticsearch-7-10/258202 "2020-12-10T00:11:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danker00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danker00/32/78221_2.png) [@danker00](https://discuss.elastic.co/u/danker00)\
**Post date:** [December 10, 2020, 12:11am UTC](https://discuss.elastic.co/t/xpack-security-enabled-true-enable-kibana-security-features-elasticsearch-7-10/258202/1 "2020-12-10T00:11:20Z")

</div>

Hi Everyone!  
I am making my way through the install of Elasticsearch/Kibana/Auditbeat and I am running into an issue. When I open up the Security/Detections I have an error "Detection Engine permissions required" I also have an error that states "Failed to retrieve list privileges'"

I was curious how I should go about adding the xpack.security.enabled: true statement to the elasticsearch.yml file - Should I be adding the statement to the end of the file under the "various" section?

I ask because the documentation is not explicit with how I am supposed to add these new statements to these files. I have tried and when I restart the services the webpage states "Kibana server not ready"

I am following these instructions:

> **[Detections prerequisites and requirements | Elastic Security Solution \[7.10\]...](https://www.elastic.co/guide/en/security/current/detections-permissions-section.html)**

  

> **[Enable Elasticsearch security features | Elasticsearch Reference \[7.1\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.1/get-started-enable-security.html)**

  
Also. I am installing on latest version of Ubuntu.

any assistance is appreciated - Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 10, 2020, 12:13am UTC](https://discuss.elastic.co/t/xpack-security-enabled-true-enable-kibana-security-features-elasticsearch-7-10/258202/2 "2020-12-10T00:13:55Z")

</div>

You can add it anywhere in the file.

If you are seeing errors, it'd be helpful if you posted them 🙂 Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them.

---

<div class="post-metadata">

**Author:** ![danker00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danker00/32/78221_2.png) [@danker00](https://discuss.elastic.co/u/danker00)\
**Post date:** [December 10, 2020, 2:34am UTC](https://discuss.elastic.co/t/xpack-security-enabled-true-enable-kibana-security-features-elasticsearch-7-10/258202/3 "2020-12-10T02:34:04Z")

</div>

Alright, so I added the configurations to the Kibana and Elastricsearch.yml files. Now when I access elastic share I am getting an authentication error.

`{"statusCode":401,"error":"Unauthorized","message":"missing authentication credentials for REST request [/.kibana/_search?size=1000&from=0&rest_total_hits_as_int=true]: security_exception"}`

I followed the steps for self-managed Elastic Stack deployments, which states, In the `kibana.yml` [configuration file](https://www.elastic.co/guide/en/kibana/7.10/settings.html), add the `xpack.encryptedSavedObjects.encryptionKey` setting with any alphanumeric value of at least 32 characters. For example:

`xpack.encryptedSavedObjects.encryptionKey: 'fhjskloppd678ehkdfdlliverpoolfcr'`

Below are my .yml configurations  
Kibana.yml file: [https://pastebin.com/7sMm0Y2y](https://pastebin.com/7sMm0Y2y)  
Elasticsearch.yml: [https://pastebin.com/R7CvsKGK](https://pastebin.com/R7CvsKGK)

---

<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:** [January 7, 2021, 2:34am UTC](https://discuss.elastic.co/t/xpack-security-enabled-true-enable-kibana-security-features-elasticsearch-7-10/258202/4 "2021-01-07T02:34:05Z")

</div>

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