# Can't change xpack security realms in ECK 1.0

**URL:** <https://discuss.elastic.co/t/cant-change-xpack-security-realms-in-eck-1-0/209118>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Tags:** elastic-stack-security\
**Created:** [November 22, 2019, 7:45pm UTC](https://discuss.elastic.co/t/cant-change-xpack-security-realms-in-eck-1-0/209118 "2019-11-22T19:45:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaepyoung\_Kim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaepyoung_kim/32/44175_2.png) [@Jaepyoung\_Kim](https://discuss.elastic.co/u/Jaepyoung_Kim)\
**Post date:** [November 22, 2019, 7:45pm UTC](https://discuss.elastic.co/t/cant-change-xpack-security-realms-in-eck-1-0/209118/1 "2019-11-22T19:45:58Z")

</div>

Have an issue of updating security.authc.reamls in elasticsearcy.yml file in ECK.

Installed ECK open source 1.0 in EKS.  
I can get password for "elastic" user using following command.

kubectl get secret canoo-elasticserach-es-elastic-user -o=jsonpath='{.data.elastic}' -n elasticsearch| base64 --decode; echo

Since I wanted to create a user and share with other team, I created one user under the menu of "Security/Users" in Kibana.

However I can't login with a new created account.  
I figure out that security realms setting is file. In order to use users created in Kibana, I need to use native type.

Original:

security:  
authc:  
realms:  
file:  
file1:  
order: -100  
reserved\_realm:  
enabled: "false"  
enabled: "true"

Want to change to

xpack:  
security:  
authc:  
realms:  
file:  
file1:  
order: 0  
native:  
native1:  
order: 1  
reserved\_realm:  
enabled: "false"  
enabled: "true"

But some reason it is not changed.  
What I tried to was delete secret and create a new one with data, or kubectl edit secrets... but the setting of elasticsearcy.yml is not updated. Can you help me to change the setting?

Here is my secret of elasticsearch.

apiVersion: v1  
data:  
elasticsearch.yml: Y2x1c3RlcjoKICBuYW1lOiBjYW5vby1lbGFzdGljc2VyYWNoCiAgcmVtb3RlOgogICAgY29ubmVjdDogZmFsc2UKZGlzY292ZXJ5OgogIHplbjoKICAgIGhvc3RzX3Byb3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fYXV0aG9yaXRpZXM6CiAgICAgICAgLSAvdXNyL3NoYXJlL2VsYXN0aWNzZWFyY2gvY29uZmlnL3RyYW5zcG9ydC1jZXJ0cy9jYS5jcnQKICAgICAgICBlbmFibGVkOiAidHJ1ZSIKICAgICAgICBrZXk6IC91c3Ivc2hhcmUvZWxhc3RpY3NlYXJjaC9jb25maWcvbm9kZS10cmFuc3BvcnQtY2VydC90cmFuc3BvcnQudGxzLmtleQogICAgICAgIHZlcmlmaWNhdGlvbl9tb2RlOiBjZXJ0aWZpY2F0ZQo=  
kind: Secret  
metadata:  
creationTimestamp: "2019-11-22T19:35:10Z"  
labels:  
[common.k8s.elastic.co/type:](http://common.k8s.elastic.co/type:) elasticsearch  
[elasticsearch.k8s.elastic.co/cluster-name:](http://elasticsearch.k8s.elastic.co/cluster-name:) elasticserach  
[elasticsearch.k8s.elastic.co/statefulset-name:](http://elasticsearch.k8s.elastic.co/statefulset-name:) elasticserach-es-data  
name: elasticserach-es-data-es-config  
namespace: elasticsearch  
ownerReferences:

- apiVersion: [elasticsearch.k8s.elastic.co/v1beta1](http://elasticsearch.k8s.elastic.co/v1beta1)  
blockOwnerDeletion: true  
controller: true  
kind: Elasticsearch  
name: elasticserach  
uid: ca8492e5-ff76-11e9-a259-02a9107eed52  
resourceVersion: "5620293"  
selfLink: /api/v1/namespaces/elasticsearch/secrets/elasticserach-es-data-es-config  
uid: 324aefdc-0d5f-11ea-a259-02a9107eed52  
type: Opaque

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [November 25, 2019, 8:21am UTC](https://discuss.elastic.co/t/cant-change-xpack-security-realms-in-eck-1-0/209118/2 "2019-11-25T08:21:53Z")

</div>

Hey @Jaepyoung_Kim,

there is a bug in release 1.0.0-beta 1 with users created in Kibana and the native realm.  
See this workaround: [https://github.com/elastic/cloud-on-k8s/issues/2036#issuecomment-544838578](https://github.com/elastic/cloud-on-k8s/issues/2036#issuecomment-544838578).

This will be fixed in next release.

---

<div class="post-metadata">

**Author:** ![Jaepyoung\_Kim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaepyoung_kim/32/44175_2.png) [@Jaepyoung\_Kim](https://discuss.elastic.co/u/Jaepyoung_Kim)\
**Post date:** [November 25, 2019, 9:44pm UTC](https://discuss.elastic.co/t/cant-change-xpack-security-realms-in-eck-1-0/209118/3 "2019-11-25T21:44:54Z")

</div>

Thanks a lot for your information. After applying the change, I am able login with user created.

---

<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:** [November 4, 2022, 7:34am UTC](https://discuss.elastic.co/t/cant-change-xpack-security-realms-in-eck-1-0/209118/4 "2022-11-04T07:34:33Z")

</div>


