Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] cluster:monitor/tasks/lists not available when adding cluster permissions #1223

Closed
violetaria opened this issue Nov 22, 2022 · 3 comments
Labels
bug Something isn't working triaged

Comments

@violetaria
Copy link

Describe the bug

When creating a new security role, I'm unable to add cluster:monitor/tasks/lists to the permissions as it's not recognized. However, that role is required to list tasks

To Reproduce
Steps to reproduce the behavior:

  1. Go to security - roles - create a new role
  2. Click on cluster permissions drop down and type in cluster:monitor/tasks/list
  3. Note that cluster:monitor/tasks/list is visible but cluster:monitor/tasks/lists is not

image

When I attempt to list tasks against opensearch via the API I get an error about the permissions

2022-11-22 11:43:15 -0500: GET https://<OPENSEARCH_URL>/_tasks/ [status:403, request:0.468s, query:N/A]
2022-11-22 11:43:15 -0500: < {"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for [cluster:monitor/tasks/lists] and User [name=USERNAME, backend_roles=[], requestedTenant=null]"}],"type":"security_exception","reason":"no permissions for [cluster:monitor/tasks/lists] and User [name=USERNAME, backend_roles=[], requestedTenant=null]"},"status":403}

Expected behavior

When attempting to get a list of tasks using the API, the role should be able to be configured with the required permissions

OpenSearch Version

2.3

Dashboards Version
Please list the version of OpenSearch Dashboards being used.

v2.3.0

Plugins

default install through AWS

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

@violetaria violetaria added bug Something isn't working untriaged labels Nov 22, 2022
@joshuarrrr
Copy link
Member

@opensearch-project/transfer-request please transfer to https://github.com/opensearch-project/security-dashboards-plugin

@kavilla kavilla transferred this issue from opensearch-project/OpenSearch-Dashboards Nov 23, 2022
@DarshitChanpura
Copy link
Member

[Triage] @violetaria Thank you for filing this. We would be happy to accept a PR for this bug.

@cwperks
Copy link
Member

cwperks commented Mar 13, 2023

Closing this as completed. PR where this was completed: #1333

@cwperks cwperks closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

4 participants