Config.yml is not getting updated in opensearch pod

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.11.1
Server: Oracle Linux 7 OKE machine

Describe the issue:
i have config in opensearch values.yaml but it is not getting updated at /usr/share/opensearch/config/opensearch-security/config.yml using helm charts. but the config is getting updated when using with docker-compose
opensearch values.yaml

securityConfig:
  enabled: true
  path: "/usr/share/opensearch/config/opensearch-security"
  config:
    config.yml: |
      _meta:
        type: "config"
        config_version: 2
      config:
        dynamic:
           http:
             anonymous_auth_enabled: false
           authc:
             basic_internal_auth_domain:
                description: "Authenticate via HTTP Basic against internal users database"
                http_enabled: true
                transport_enabled: true
                order: 0
                http_authenticator:
                   type: "basic"
                   challenge: false
                authentication_backend:
                  type: "internal"
             oidc_auth_domain:
               description: "Authenticate via OIDC (OpenID Connect)"
               http_enabled: true
               transport_enabled: true
               order: 1
               http_authenticator:
                 type: "openid"
                 challenge: true
                 config:
                   subject_key: "preferred_username"
                   roles_key: "roles"
                   openid_connect_url: "http://100.76.143.74:8080/realms/new/.well-known/openid-configuration"
                   client_id: "opensearch"
                   client_secret: "12345678901234567890123456789012"
               authentication_backend:
                   type: "noop"

please suggest how to resolve this

Configuration:

Relevant Logs or Screenshots:

Hi @priya444,

According to the issue discussed on GitHub here, the first time you install the chart, it will automatically bootstrap the security configuration using the settings from values.yaml. If you want to update the config.yml file, you have to use the securityadmin.sh tool as described in the documentation:

Was your config.yml file not updated during the bootstrap process?