# Logstash Keystore password can be read from Linux command

**URL:** <https://discuss.elastic.co/t/logstash-keystore-password-can-be-read-from-linux-command/133119>\
**Category:** Logstash\
**Created:** [May 24, 2018, 10:27am UTC](https://discuss.elastic.co/t/logstash-keystore-password-can-be-read-from-linux-command/133119 "2018-05-24T10:27:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keysersozee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keysersozee/32/31563_2.png) [@keysersozee](https://discuss.elastic.co/u/keysersozee)\
**Post date:** [May 24, 2018, 10:27am UTC](https://discuss.elastic.co/t/logstash-keystore-password-can-be-read-from-linux-command/133119/1 "2018-05-24T10:27:05Z")

</div>

Hello,

the command cat /proc/$LOGSTASH\_PID/environ can tell about the logstash keystore password since it's a an environment variable (LOGSTASH\_KEYSTORE\_PASS)

Is there a way to secure this password ?  
Thank you

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 24, 2018, 11:01am UTC](https://discuss.elastic.co/t/logstash-keystore-password-can-be-read-from-linux-command/133119/2 "2018-05-24T11:01:37Z")

</div>

No. If you have access to the Logstash process there's currently no way to keep the keystore password secret.

---

<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:** [June 21, 2018, 11:01am UTC](https://discuss.elastic.co/t/logstash-keystore-password-can-be-read-from-linux-command/133119/3 "2018-06-21T11:01:38Z")

</div>

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