# Best practices to configure indexSet passwords for kibana and other users before elasticsearch starts (k8s)

**URL:** <https://discuss.elastic.co/t/best-practices-to-configure-indexset-passwords-for-kibana-and-other-users-before-elasticsearch-starts-k8s/198974>\
**Category:** Elasticsearch\
**Created:** [September 10, 2019, 8:50pm UTC](https://discuss.elastic.co/t/best-practices-to-configure-indexset-passwords-for-kibana-and-other-users-before-elasticsearch-starts-k8s/198974 "2019-09-10T20:50:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![O\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/o_k/32/52424_2.png) [@O\_K](https://discuss.elastic.co/u/O_K)\
**Post date:** [September 10, 2019, 8:50pm UTC](https://discuss.elastic.co/t/best-practices-to-configure-indexset-passwords-for-kibana-and-other-users-before-elasticsearch-starts-k8s/198974/1 "2019-09-10T20:50:24Z")

</div>

Hello,  
Please let me know the preferred options to set passwords for elastic users (kibana user, etc) before elasticsearch starts?

I noticed that we can use k8s secrets, what other options do we have? Do we have env vars like ELASTIC\_USERNAME/ELASTIC\_PASSWORD for other users listed below?

```auto
Enter password for [elastic]: 
Reenter password for [elastic]: 
Enter password for [apm_system]: 
Reenter password for [apm_system]: 
Enter password for [kibana]: 
Reenter password for [kibana]: 
Enter password for [logstash_system]: 
Reenter password for [logstash_system]: 
Enter password for [beats_system]: 
Reenter password for [beats_system]: 
Enter password for [remote_monitoring_user]: 
Reenter password for [remote_monitoring_user]: 

```

Thank you in advance!

---

<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:** [October 8, 2019, 8:50pm UTC](https://discuss.elastic.co/t/best-practices-to-configure-indexset-passwords-for-kibana-and-other-users-before-elasticsearch-starts-k8s/198974/2 "2019-10-08T20:50:27Z")

</div>

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