# Config Changes not applying

**URL:** <https://forum.opensearch.org/t/config-changes-not-applying/14547>\
**Category:** Security\
**Tags:** troubleshoot, security-issue\
**Created:** [June 5, 2023, 5:52am UTC](https://forum.opensearch.org/t/config-changes-not-applying/14547 "2023-06-05T05:52:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mouryasatyam](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mouryasatyam](https://forum.opensearch.org/u/mouryasatyam)\
**Post date:** [June 5, 2023, 5:52am UTC](https://forum.opensearch.org/t/config-changes-not-applying/14547/1 "2023-06-05T05:52:35Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):

opensearch - 2.7.x

**Describe the issue** :  
I already have opensearch up and running but I wan’t to change the password of existing user I know how we can change using securityadmin script.  
But what I want is when I spin up a pod it would take new config with existing pvc but its not taking it while redeployment with same pvc i.e. need to preserve the existing data as well.  
Can someone help me with this!!  
**Configuration** :

**Relevant Logs or Screenshots** :

```auto
[2023-06-05T05:47:53,518][INFO][o.o.s.s.ConfigHelper] [opensearch-cluster-master-0] Will update 'internalusers' with /usr/share/opensearch/config/opensearch-security/internal_users.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
[2023-06-05T05:47:53,523][INFO][o.o.s.s.ConfigHelper] [opensearch-cluster-master-0] Index .opendistro_security already contains doc with id internalusers, skipping update.

```

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [June 20, 2023, 10:45am UTC](https://forum.opensearch.org/t/config-changes-not-applying/14547/2 "2023-06-20T10:45:11Z")

</div>

@mouryasatyam The OpenSearch pods are created as statefulsets. The nature of the statefulset is to keep the order of the pods and preserve storage. That’s why even redeployment (helm uninstall/install) won’t reset the security index as the index already exists. During the deployment, the attached security config files are applied only when .opendistro\_security doesn’t exist.

If you’d like to create the cluster from scratch then you must delete corresponding OpenSearch PVCs before deployment. Please be aware that deleting PVCs will delete PVs (if your policy is Delete/Recycle) that hold data with all indices attached to that OS node.

This is not recommended in the production environment. In prod, you should always use securityadmin.sh or OpenSearch Dashboards GUI.

This is not an issue but the nature of statefulsets.

---

<div class="post-metadata">

**Author:** ![mouryasatyam](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mouryasatyam](https://forum.opensearch.org/u/mouryasatyam)\
**Post date:** [June 21, 2023, 5:48am UTC](https://forum.opensearch.org/t/config-changes-not-applying/14547/3 "2023-06-21T05:48:36Z")

</div>

@pablo Yeah understood thats as per security concern
