opensearch-docs-cn/_security-plugin/configuration/system-indices.md

1.5 KiB

layout title parent nav_order redirect_from
default System Indices Configuration 15 /docs/security/configuration/system-indices/

System indices

By default, OpenSearch has a protected system index, .opensearch_security, which you create using securityadmin.sh. Even if your user account has read permissions for all indices, you can't directly access the data in this system index.

You can add additional system indices in in opensearch.yml. In addition to automatically creating .opensearch_security, the demo configuration adds several indices for the various OpenSearch plugins that integrate with the security plugin:

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", ".opendistro-asynchronous-search-response*"]

To access these indices, you must authenticate with an admin certificate:

curl -k --cert ./kirk.pem --key ./kirk-key.pem -XGET 'https://localhost:9200/.opensearch_security/_search'

The alternative is to remove indices from the plugins.security.system_indices.indices list on each node and restart OpenSearch.