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

[FEATURE] get a list of indices and aliases for which my user has been granted permission #3806

Closed
chet5619 opened this issue Dec 7, 2023 · 2 comments
Labels
enhancement New feature or request triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.

Comments

@chet5619
Copy link

chet5619 commented Dec 7, 2023

Is your feature request related to a problem?
We are developing an application where user will be able to connect to their OpenSearch instance and expand their connection to see a list of the indices & aliases that they may have permissions. We have been investigating several options as described in this forum thread but so far there hasnt been any good solution. We are noticing that there doesnt seem to be a singe REST API call that would just return the indices, aliases and user permissions.

What solution would you like?
Working with elasticsearch we found that we can call _security/user/_privileges without any specific permissions set for the user and that will return information about what permissions the user has and which indices/aliases the user can see. This would be a great enhancement to th Opensearch platform.

What alternatives have you considered?
As described in the forum thread above, we have tried various options, but can never seem to get the simple answer of what indices and aliases can my user see.

@chet5619 chet5619 added enhancement New feature or request untriaged Require the attention of the repository maintainers and may need to be prioritized labels Dec 7, 2023
@chet5619 chet5619 changed the title [FEATURE] [FEATURE] get a list of indices and aliases for which my user has been granted permission Dec 7, 2023
@stephen-crawford
Copy link
Contributor

[Triage] Hi @chet5619, thanks for filing this issue. There are some complexities with resolving the roles into the indices, permissions, etc. Basically, any time you do that, you had to resolve all roles which is computationally expensive. If you are interested, you could create an API to take the roles mappings and then return the resolved roles (with index patterns not concrete indices) from these mappings. If you would think this would be of help, you are more than welcome to contribute an API for review :)

@stephen-crawford stephen-crawford added triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable. and removed untriaged Require the attention of the repository maintainers and may need to be prioritized labels Dec 11, 2023
@peternied
Copy link
Member

@peternied peternied closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Projects
None yet
Development

No branches or pull requests

3 participants