When I try to call GET _plugins/_security/api/nodesdn
, I get an error:
{ "status" : "FORBIDDEN", "message" : "API allowed only for admin." }
My opensearch.yml:
plugins.security.ssl.transport.pemcert_filepath: /usr/share/opensearch/config/node.pem
plugins.security.ssl.transport.pemkey_filepath: /usr/share/opensearch/config/node-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: /usr/share/opensearch/config/root-ca-new.pem
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: /usr/share/opensearch/config/node.pem
plugins.security.ssl.http.pemkey_filepath: /usr/share/opensearch/config/node-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: /usr/share/opensearch/config/root-ca-new.pem
#plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn:
- 'CN=admin,OU=UNIT,O=ORG,L=TORONTO,ST=ONTARIO,C=CA'
plugins.security.nodes_dn:
- 'CN=node*,OU=UNIT,O=ORG,L=TORONTO,ST=ONTARIO,C=CA'
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"]
cluster.routing.allocation.disk.threshold_enabled: false
opendistro_security.audit.config.disabled_rest_categories: NONE
plugins.security.nodes_dn_dynamic_config_enabled: true
opendistro_security.audit.config.disabled_transport_categories: NONE