No permissions for [cluster:monitor/shards]

Versions: OpenSearch 2.19.0

Describe the issue:
I’m seeing an error a lot in my logs

No cluster-level perm match for User [name=curator, backend_roles=[], requestedTenant=null] Resolved [aliases=[*], allIndices=[*], types=[*], originalRequested=[*], remoteIndices=[]] [Action [cluster:monitor/shards]] [RolesChecked [curator_role, own_index]]. No permissions for [cluster:monitor/shards]

But when I try to add that permission to the role Dashboards says cluster:monitor/shards doesn't match any options

This permission doesn’t seem to be listed in the docs:

Any idea why am I getting this error and why I can’t add or find in the docs?

Hi @jong,

I have managed to add the cluster:monitor/shards to my role via config files (roles.yml):

test:
  reserved: false
  cluster_permissions:
    - "cluster_composite_ops"
    - "cluster:monitor/shards"
  index_permissions:
    - index_patterns:
        - '*'
      allowed_actions:
        - "indices_all"

However, I ran into the same issue as you when trying to do it via UI, BUG?

As a workaround, use your config files. Make sure to back up your configuration before applying any changes, as whatever is in the files will override it.

You could also report the behavior here:

Best,
mj

1 Like