Skip to content

Reconsider default behavior for DNFOF in 3.0.0 #5195

@cwperks

Description

@cwperks

Coming from conversation on opensearch-project/OpenSearch#17650

When a user is mapped to a role that has full access to a subset of indices in a cluster then by default _cat/indices will fail with a Forbidden error instead of returning the indices that are visible to the user. As a workaround, we instruct cluster administrators to consider toggling do_not_fail_on_forbidden to true.

With this issue, I propose changing the default behavior (at least for _cat/indices) to always return the indices visible to the user regardless if a cluster has DNFOF set to true.

I believe this is possible by updating this line to return true if the action is indices:monitor/settings/get

What do the maintainers think of this change in default behavior for 3.0.0 release?

Metadata

Metadata

Assignees

Labels

triagedIssues 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