-
Notifications
You must be signed in to change notification settings - Fork 281
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
Support an api to check logged on user own permissions. #566
Comments
Hi Team, is there a plan to prioritize this one yet. This seems to be a very essential functionality to be able to identify the current user's permission. Lack of a direct API from the security side, have led to plugins building adhock workarounds, which has lead to performance and availability issues in the past. Such as : opensearch-project/index-management#414 |
cc : @davidlago @peternied |
Thanks for the interest, I know this is a great feature request, but with the current architecture of the security plugin it isn't possible to do this in a complete fashion due to permissions being written on N objects (DLS/FLS). We are revisiting some of the security plugins architecture with the work on extensions and we might have better mechanisms to do this as we integrate security features inside of OpenSearch, follow along https://github.com/opensearch-project/opensearch-sdk/blob/main/SECURITY.md |
This would also be beneficial to plugins that integrated with security. This allows the frontend of those plugins know that the user does not have access to a feature of the plugin and can proactively inform the customer that they do not have access to that. This can greatly enhance the user experience for these plugins. For example: |
[Triage] Closing in favor of the Identity project which will provide these APIs. |
@scrawfor99 , We have another use case in Index Management and hit an issue due to security permissions. Any update on the prioritization or Identity project ? |
Hi @praveensameneni, I will check on the status of this for you and provide an update below. I know we have made significant progress in the overall implementation but I am not sure whether the feature you are requesting has been implemented yet. |
[Triage] @willyborankin Tagging you on this issue for insight. |
Support an api to check logged on user own permissions. Similar to x-pack GET
/_security/user/_has_privileges
Use case from alerting plugin: While creating an alerting monitor, check if user has permissions to read/search the
indices being monitored. Current workaround: Call
_search
on those indices to check for read permissions.The text was updated successfully, but these errors were encountered: