# Secure settings kibana

**URL:** <https://discuss.elastic.co/t/secure-settings-kibana/274684>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [June 1, 2021, 8:51pm UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684 "2021-06-01T20:51:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed\_el\_mannouti](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mohamed\_el\_mannouti](https://discuss.elastic.co/u/mohamed_el_mannouti)\
**Post date:** [June 1, 2021, 8:51pm UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/1 "2021-06-01T20:51:27Z")

</div>

_ **How can I hide the password in kibana.yml** _

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [June 1, 2021, 9:29pm UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/2 "2021-06-01T21:29:21Z")

</div>

Hey there,

You might take a look through the step by step guide in securing kibana: [Configure security in Kibana | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/using-kibana-with-security.html)

If you're meaning the elasticsearch.password that's in kibana.yml that Kibana uses to talk to Elasticsearch, I believe you should be able to add that field in your kibana keystore and not have to put it in the yml. Here's some info: [Secure settings | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/secure-settings.html)

---

<div class="post-metadata">

**Author:** ![mohamed\_el\_mannouti](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mohamed\_el\_mannouti](https://discuss.elastic.co/u/mohamed_el_mannouti)\
**Post date:** [June 1, 2021, 9:33pm UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/3 "2021-06-01T21:33:37Z")

</div>

thankyou @poff  
yes i do

 ![key](https://us1.discourse-cdn.com/elastic/original/3X/a/e/aec6bddb65722f49b5a2ce011426074c8c4653cf.png)  
but how i can add this in kibana.yml

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 2, 2021, 12:15am UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/4 "2021-06-02T00:15:38Z")

</div>

From the documents that he referenced

**Once added to the keystore, these setting will be automatically applied to this instance of Kibana when started.** For example if you do

`bin/kibana-keystore add elasticsearch.username`

...

So you don't need to add them to the `kibana.yml`

---

<div class="post-metadata">

**Author:** ![mohamed\_el\_mannouti](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mohamed\_el\_mannouti](https://discuss.elastic.co/u/mohamed_el_mannouti)\
**Post date:** [June 2, 2021, 12:31am UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/5 "2021-06-02T00:31:15Z")

</div>

not like logstash and filebeat?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 2, 2021, 12:34am UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/6 "2021-06-02T00:34:57Z")

</div>

Yes we should be more consistent.....

---

<div class="post-metadata">

**Author:** ![mohamed\_el\_mannouti](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mohamed\_el\_mannouti](https://discuss.elastic.co/u/mohamed_el_mannouti)\
**Post date:** [June 2, 2021, 2:44am UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/7 "2021-06-02T02:44:31Z")

</div>

Thank you vvery mutch @stephenb

---

<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 30, 2021, 2:44am UTC](https://discuss.elastic.co/t/secure-settings-kibana/274684/8 "2021-06-30T02:44:46Z")

</div>

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