# Secure the ELK password in config files

**URL:** <https://discuss.elastic.co/t/secure-the-elk-password-in-config-files/125931>\
**Category:** Elasticsearch\
**Created:** [March 28, 2018, 12:16pm UTC](https://discuss.elastic.co/t/secure-the-elk-password-in-config-files/125931 "2018-03-28T12:16:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laxman](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@Laxman](https://discuss.elastic.co/u/Laxman)\
**Post date:** [March 28, 2018, 12:16pm UTC](https://discuss.elastic.co/t/secure-the-elk-password-in-config-files/125931/1 "2018-03-28T12:16:29Z")

</div>

I'm using x-pack to secure ELK stack , I don't want to specify plain text "password" in ELK Config files. Is any way to encrypt & decrypt

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [March 28, 2018, 12:27pm UTC](https://discuss.elastic.co/t/secure-the-elk-password-in-config-files/125931/2 "2018-03-28T12:27:30Z")

</div>

You should go through this:  
[https://www.elastic.co/guide/en/x-pack/current/setting-up-authentication.html#set-built-in-user-passwords](https://www.elastic.co/guide/en/x-pack/current/setting-up-authentication.html#set-built-in-user-passwords)  
and this:  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.2/secure-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/secure-settings.html)

---

<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:** [April 25, 2018, 12:27pm UTC](https://discuss.elastic.co/t/secure-the-elk-password-in-config-files/125931/3 "2018-04-25T12:27:45Z")

</div>

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