Security does not appear in "Opensearch Plugins"

Hello there!
I’d like to share here that I was having the same problem and moving list parameters from compose environment variables (like plugins.security.restapi.roles_enabled=[“all_access”, “security_rest_api_access”]) to opensearch.yml made It work properly.
I’m still using env variables, but just for things that could be customized, like certificate location, cluster name and so on. So, eveything that isn’t declared as environmental variables are set on opensearch.yml.
docker-compose.yml:

<...>
  opensearch-node1:
    image: docker.io/opensearchproject/opensearch:${OS_STACK_VERSION}
    container_name: ${ES_NODE}
    user: "1058"
    depends_on:
      - opensearch-setup-certs
    environment:
      - cluster.name=${CLUSTER_NAME}
      - node.name=${ES_NODE}
      - path.data=/usr/share/opensearch/
      - discovery.seed_hosts=${ES_NODE}
      - cluster.initial_cluster_manager_nodes=${ES_NODE}
      - plugins.security.ssl.transport.pemcert_filepath=certs/${ES_NODE}/${ES_NODE_CRT}
      - plugins.security.ssl.transport.pemkey_filepath=certs/${ES_NODE}/${ES_NODE_KEY}
      - plugins.security.ssl.transport.pemtrustedcas_filepath=certs/ca/${ES_CA_CRT}
      - plugins.security.ssl.transport.enforce_hostname_verification=false
      - plugins.security.ssl.http.enabled=true
      - plugins.security.ssl.http.pemcert_filepath=certs/${ES_NODE}/${ES_NODE_CRT}
      - plugins.security.ssl.http.pemkey_filepath=certs/${ES_NODE}/${ES_NODE_KEY}
      - plugins.security.ssl.http.pemtrustedcas_filepath=certs/ca/${ES_CA_CRT}
<...>

config/opensearch.yml:

---
http.host: 0.0.0.0
network.host: 0.0.0.0

plugins.security.allow_unsafe_democertificates: true
plugins.security.allow_default_init_securityindex: false
plugins.security.authcz.admin_dn:
  - CN=admin
plugins.security.audit.type: internal_opensearch
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".plugins-ml-model", ".plugins-ml-task", ".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opensearch-notifications-*", ".opensearch-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"]
node.max_local_storage_nodes: 3

@gunzl1ng3r please, tell us if you anchieved what you needed.