# Specify known password for the elasticsearch user

**URL:** <https://discuss.elastic.co/t/specify-known-password-for-the-elasticsearch-user/210239>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [December 2, 2019, 8:22pm UTC](https://discuss.elastic.co/t/specify-known-password-for-the-elasticsearch-user/210239 "2019-12-02T20:22:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trondhindenes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trondhindenes/32/10534_2.png) [@trondhindenes](https://discuss.elastic.co/u/trondhindenes)\
**Post date:** [December 2, 2019, 8:22pm UTC](https://discuss.elastic.co/t/specify-known-password-for-the-elasticsearch-user/210239/1 "2019-12-02T20:22:12Z")

</div>

As far as I understand, ECK will generate a password and place it in a secrets file. This doesn't suit our workflow, we want to provide known values for all things upfront, including the elastic user password. Is there a way to provide it instead of having it auto-generated? As far as I can see, the documentation at least doesn't mention it.

---

<div class="post-metadata">

**Author:** ![jsymm](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@jsymm](https://discuss.elastic.co/u/jsymm)\
**Post date:** [December 2, 2019, 11:55pm UTC](https://discuss.elastic.co/t/specify-known-password-for-the-elasticsearch-user/210239/2 "2019-12-02T23:55:54Z")

</div>

For what its worth, I used this approach and it works fine. It does require creating the secret in advance... [How to give built password in ECK CR](https://discuss.elastic.co/t/how-to-give-built-password-in-eck-cr/190742)

---

<div class="post-metadata">

**Author:** ![trondhindenes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trondhindenes/32/10534_2.png) [@trondhindenes](https://discuss.elastic.co/u/trondhindenes)\
**Post date:** [December 4, 2019, 7:21am UTC](https://discuss.elastic.co/t/specify-known-password-for-the-elasticsearch-user/210239/3 "2019-12-04T07:21:33Z")

</div>

Thanks! I noticed that workaround after I posted. We'll do the same.

---

<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:** [November 4, 2022, 7:35am UTC](https://discuss.elastic.co/t/specify-known-password-for-the-elasticsearch-user/210239/4 "2022-11-04T07:35:46Z")

</div>


