# Clear text password exposed in environment

**URL:** <https://discuss.elastic.co/t/clear-text-password-exposed-in-environment/211284>\
**Category:** Elasticsearch\
**Created:** [December 10, 2019, 11:17am UTC](https://discuss.elastic.co/t/clear-text-password-exposed-in-environment/211284 "2019-12-10T11:17:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitrap](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@amitrap](https://discuss.elastic.co/u/amitrap)\
**Post date:** [December 10, 2019, 11:17am UTC](https://discuss.elastic.co/t/clear-text-password-exposed-in-environment/211284/1 "2019-12-10T11:17:52Z")

</div>

./elasticsearch/config/node1/elasticsearch.yml contains plain text for the following sensitive data:  
xpack.ssl.keystore.password:   
xpack.ssl.truststore.password:   
Can those parameter be encrypted?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 10, 2019, 12:33pm UTC](https://discuss.elastic.co/t/clear-text-password-exposed-in-environment/211284/2 "2019-12-10T12:33:51Z")

</div>

For now, you need to configure proper permissions on the YAML file, so that it is not readable by other users.

In the future you might be able to specify a password on node startup (this comes with a few caveats), feel free to take a look at the github issue at [https://github.com/elastic/elasticsearch/issues/32691](https://github.com/elastic/elasticsearch/issues/32691)

---

<div class="post-metadata">

**Author:** ![amitrap](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@amitrap](https://discuss.elastic.co/u/amitrap)\
**Post date:** [December 10, 2019, 1:04pm UTC](https://discuss.elastic.co/t/clear-text-password-exposed-in-environment/211284/3 "2019-12-10T13:04:12Z")

</div>

Thanks Alexander 🙂

---

<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, 2020, 1:04pm UTC](https://discuss.elastic.co/t/clear-text-password-exposed-in-environment/211284/4 "2020-01-07T13:04:20Z")

</div>

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