# Help with Securing Kibana

**URL:** <https://discuss.elastic.co/t/help-with-securing-kibana/143216>\
**Category:** Kibana\
**Created:** [August 6, 2018, 8:14pm UTC](https://discuss.elastic.co/t/help-with-securing-kibana/143216 "2018-08-06T20:14:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [August 6, 2018, 8:14pm UTC](https://discuss.elastic.co/t/help-with-securing-kibana/143216/1 "2018-08-06T20:14:52Z")

</div>

They say the only "stupid" questions are the ones un asked. I feel like I should be able to figure this out but maybe I have some fundamental misunderstanding about how this is "supposed" to work.

I have a Test machine set up and it works with the  
elasticsearch.username: kibana  
elasticsearch.password: 'kibana password'

I thought I could set a system variable in the elasticsearch keystore, something like 'kibana.password' This threw an error in the Java log. Is there something else I need to do to be able to call the username and password in the .yml file. something like  
elasticsearch.password: ${kibana.password}

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [August 6, 2018, 8:31pm UTC](https://discuss.elastic.co/t/help-with-securing-kibana/143216/2 "2018-08-06T20:31:20Z")

</div>

You might find this reply helpful re: env variables and kibana.yml:

> [@How to set custom env variable in kibana.yml](https://discuss.elastic.co/t/how-to-set-custom-env-variable-in-kibana-yml/79855):
>
> I need to assign server.host and elasticsearch.url our custom env varible this is my env variable MY\_IP. I need to assign this variable has a serverhost and elasticsearch.url , so i tried below way kibana.yml user\_dir: &docker\_ip ${MY\_IP} server.host: "%{\*docker\_ip}" elasticsearch.url: "http://%{\*docker\_ip}:9200" its not working for me, Suggest me how to set our custom env varible to kibana configuration.

---

<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:** [September 3, 2018, 8:31pm UTC](https://discuss.elastic.co/t/help-with-securing-kibana/143216/3 "2018-09-03T20:31:21Z")

</div>

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