# Elasticsearch-keystore reference in kibana.yml

**URL:** <https://discuss.elastic.co/t/elasticsearch-keystore-reference-in-kibana-yml/215572>\
**Category:** Elasticsearch\
**Created:** [January 18, 2020, 6:38pm UTC](https://discuss.elastic.co/t/elasticsearch-keystore-reference-in-kibana-yml/215572 "2020-01-18T18:38:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiyapedia](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kiyapedia](https://discuss.elastic.co/u/kiyapedia)\
**Post date:** [January 18, 2020, 6:38pm UTC](https://discuss.elastic.co/t/elasticsearch-keystore-reference-in-kibana-yml/215572/1 "2020-01-18T18:38:22Z")

</div>

Hello —

I've got Elasticsearch and Kibana running with docker-compose with no issues. In my kibana.yml file, my password is exposed as such:

```auto
server.name: kibana
server.host: "0"
elasticsearch.hosts: ["http://elasticsearch:9200"]
elasticsearch.username: kibana
elasticsearch.password: password

```

When trying to create a kibana-keystore to protect the password value, i get the following error:

`bash: bin/kibana-keystore: No such file or directory`

I am following this documentation to create the kibana-keystore:

`https://www.elastic.co/guide/en/kibana/6.8/secure-settings.html`

I've also tried storing the password in `elasticsearch-keystore` but could not reference it and it caused my elasticsearch cluster to fail. I assume this is the reason why:

`Only some settings are designed to be read from the keystore. However, there is no validation to block unsupported settings from the keystore and they can cause Elasticsearch to fail to start.`

Any insights on how i can protect the password in kibana.yml would be much appreciated. Thanks!

---

<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:** [February 15, 2020, 6:38pm UTC](https://discuss.elastic.co/t/elasticsearch-keystore-reference-in-kibana-yml/215572/2 "2020-02-15T18:38:24Z")

</div>

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