Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): OS, OSD v2.3
Describe the issue:
I am trying to configure the nodesdn via the REST API on the dashboards UI but its giving me an error:
{
"status" : "FORBIDDEN",
"message" : "API allowed only for super admin."
}
I have already added plugins.security.nodes_dn_dynamic_config_enabled: true
in the opensearch.yml as the docs suggest. And I am logged in as the admin user which has the all_access
role mapped to it. So what exactly is the issue here? Is the super admin different from the internal admin user? If so, how do I access the API as super admin or make admin have same permission as super admin?
Configuration:
plugins.security.audit.type: internal_opensearch
plugins.security.authcz.admin_dn: ["CN=admin,OU=vz-os-cluster"]
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn: ["CN=vz-os-cluster,OU=vz-os-cluster"]
plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
plugins.security.nodes_dn_dynamic_config_enabled: true
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: tls-http/tls.crt
plugins.security.ssl.http.pemkey_filepath: tls-http/tls.key
plugins.security.ssl.http.pemtrustedcas_filepath: tls-http/ca.crt
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.transport.pemcert_filepath: tls-transport/tls.crt
plugins.security.ssl.transport.pemkey_filepath: tls-transport/tls.key
plugins.security.ssl.transport.pemtrustedcas_filepath: tls-transport/ca.crt
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".opendistro-alerting-config",".opendistro-alerting-alert*",".opendistro-anomaly-results*",".opendistro-anomaly-detector*",".opendistro-anomaly-checkpoints",".opendistro-anomaly-detection-state",".opendistro-reports-*",".opendistro-notifications-*",".opendistro-notebooks",".opensearch-observability",".opendistro-asynchronous-search-response*",".replication-metadata-store"]