# Verify if elasticsearch-keystore value changed

**URL:** <https://discuss.elastic.co/t/verify-if-elasticsearch-keystore-value-changed/199041>\
**Category:** Elasticsearch\
**Created:** [September 11, 2019, 8:37am UTC](https://discuss.elastic.co/t/verify-if-elasticsearch-keystore-value-changed/199041 "2019-09-11T08:37:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stujb](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@stujb](https://discuss.elastic.co/u/stujb)\
**Post date:** [September 11, 2019, 8:37am UTC](https://discuss.elastic.co/t/verify-if-elasticsearch-keystore-value-changed/199041/1 "2019-09-11T08:37:20Z")

</div>

We are using ansible to deploy elasticsearch. This involves configuring some elasticsearch-keystore settings -

bootstrap.password  
keystore.seed  
s3.client.default.access\_key  
s3.client.default.secret\_key  
xpack.security.http.ssl.secure\_key\_passphrase  
xpack.security.transport.ssl.secure\_key\_passphrase

The values for these are defined in ansible-vault protected configuration files.

I would like to idempotently be able to apply these values but I cannot see any way of verifying from the elasticsearch-keystore command whether the value has changed or not. Is this possible ?

Currently we just force apply the configured values everytime and restart elasticsearch. This is not ideal as the restart time is increasing as more data is logged into elasticsearch

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [September 11, 2019, 5:39pm UTC](https://discuss.elastic.co/t/verify-if-elasticsearch-keystore-value-changed/199041/2 "2019-09-11T17:39:08Z")

</div>

Unfortunately there is not currently a way to verify a value existing within the keystore.

---

<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 9, 2019, 5:39pm UTC](https://discuss.elastic.co/t/verify-if-elasticsearch-keystore-value-changed/199041/3 "2019-10-09T17:39:11Z")

</div>

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