Skip to content

[BUG] How to create a role in OpenSearch that excludes specific indices from read permissions #5708

@lgb861213

Description

@lgb861213

Describe the bug

I need to create a role in OpenSearch that can read all indices EXCEPT those containing a specific string (like "test") in their names. However, OpenSearch's permission system seems to be primarily based on "allow" mechanisms without a direct "deny" capability.

Related component

Indexing

To Reproduce

opensearch version that is 2.19

Expected behavior

opensearch version that is 2.19

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions