# How set "xpack.encryptedSavedObjects.encryptionKey" in kibana.yml

**URL:** https://discuss.elastic.co/t/how-set-xpack-encryptedsavedobjects-encryptionkey-in-kibana-yml/232927
**Category:** Kibana
**Tags:** elastic-stack-alerting
**Created:** [May 16, 2020, 1:15pm UTC](https://discuss.elastic.co/t/how-set-xpack-encryptedsavedobjects-encryptionkey-in-kibana-yml/232927 "2020-05-16T13:15:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_Sabolowitsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefan_sabolowitsch/32/48680_2.png) [@Stefan\_Sabolowitsch](https://discuss.elastic.co/u/Stefan_Sabolowitsch)
#### Post date: [May 16, 2020, 1:15pm UTC](https://discuss.elastic.co/t/how-set-xpack-encryptedsavedobjects-encryptionkey-in-kibana-yml/232927/1 "2020-05-16T13:15:29Z")

</div>

Hi there,  
we would like to use the new alarming framework, but this variable must be set in kibana.yml. Whats the best way to do this ?

thx for any help.  
StefanS

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 16, 2020, 2:31pm UTC](https://discuss.elastic.co/t/how-set-xpack-encryptedsavedobjects-encryptionkey-in-kibana-yml/232927/2 "2020-05-16T14:31:36Z")

</div>

It's described here: [https://www.elastic.co/guide/en/kibana/current/using-kibana-with-security.html](https://www.elastic.co/guide/en/kibana/current/using-kibana-with-security.html)

---

<div class="post-metadata">

### Author: ![Stefan\_Sabolowitsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefan_sabolowitsch/32/48680_2.png) [@Stefan\_Sabolowitsch](https://discuss.elastic.co/u/Stefan_Sabolowitsch)
#### Post date: [May 16, 2020, 2:55pm UTC](https://discuss.elastic.co/t/how-set-xpack-encryptedsavedobjects-encryptionkey-in-kibana-yml/232927/3 "2020-05-16T14:55:43Z")

</div>

@dadoonet Hi David  
I understood the principle, but how do i do it with ECK / Kube?  
Please an example, thank you.

---

<div class="post-metadata">

### Author: ![Thibault\_Richard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibault_richard/32/50513_2.png) [@Thibault\_Richard](https://discuss.elastic.co/u/Thibault_Richard)
#### Post date: [May 18, 2020, 9:05am UTC](https://discuss.elastic.co/t/how-set-xpack-encryptedsavedobjects-encryptionkey-in-kibana-yml/232927/4 "2020-05-18T09:05:18Z")

</div>

Hi Stefan,

You can add your own Kibana settings to the `spec.config` section of your Kibana resource definition:  
[https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-kibana-advanced-configuration.html#k8s-kibana-configuration](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-kibana-advanced-configuration.html#k8s-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: [June 15, 2020, 9:05am UTC](https://discuss.elastic.co/t/how-set-xpack-encryptedsavedobjects-encryptionkey-in-kibana-yml/232927/5 "2020-06-15T09:05:20Z")

</div>

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