Skip to content

[BUG] _list/indices API not working in 3.2 #20291

@GGJune413

Description

@GGJune413

Describe the bug

In opensearch version 3.2, the GET _list/indices API fails due to lacking permissions for operations on system indices and the security index. This occurs even for users that have the all_access superuser role. The same operation does not fail using the GET _cat/indices API. This has the downstream effect of making ml-commons' ListIndexTool unusable, and since there is no CatIndexTool in version 3.2, prevents agents from viewing a cluster's indices.

Related component

Search:Query Capabilities

To Reproduce

  1. Create a 3.2 cluster
  2. Create a user with the all_access backend role
  3. Attempt to run GET _list/indices

Expected behavior

GET _list/indices should return indices similar to _cat/indices

Additional Details

Plugins
Please list all plugins currently enabled.

analysis-icu
analysis-kuromoji
analysis-phonetic
analysis-smartcn
analysis-stempel
analysis-ukrainian
analysis-nori
ingest-attachment
mapper-size
mapper-murmur3
transport-reactor-netty4
opensearch-analysis-vietnamese-oracle
pluginsopensearch-job-scheduler
opensearch-index-management
opensearch-knn
opensearch-ml
opensearch-neural-search
opensearch-notifications-core
opensearch-notifications
opensearch-alerting
opensearch-sql
opensearch-reports-scheduler
opensearch-anomaly-detection
opensearch-observability
opensearch-security-analytics
opensearch-skills
opensearch-flow-framework
opensearch-ltr
prometheus-exporter
opensearch-asynchronous-search
opensearch-custom-codecs

Host/Environment (please complete the following information):

  • Oracle Linux 9
  • Version 1.42

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIIssues with external APIsbugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions