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

feat(opensearch): restrict search view access based on user roles and permissions #5934

Open
tsdk02 opened this issue Sep 18, 2024 · 0 comments · May be fixed by #5932
Open

feat(opensearch): restrict search view access based on user roles and permissions #5934

tsdk02 opened this issue Sep 18, 2024 · 0 comments · May be fixed by #5932
Assignees
Labels
C-bug Category: Bug

Comments

@tsdk02
Copy link
Contributor

tsdk02 commented Sep 18, 2024

To fix the issue raised here: https://github.com/juspay/hyperswitch-cloud/issues/6759

  • Currently, a profile level user is able to see the other profile payments list when using global-search, irrespective of whether he has permissions or not. But the user will not be able to view the details related to the payments upon clicking the particular payment.

  • This behaviour should be fixed by restricting the profiles / merchants to be searched based on the user roles associated with the role_id and the permissions associated with the user role

  • Now, only if the use role has the necessary READ permissions to access the indexes, he would be able to search the payments related to that particular profile/merchant.

The search_params should now be constructed with only those ProfileLevel / MerchantLevel / OrgLevel entities which will be searched through the opensearch query.

@tsdk02 tsdk02 added the C-bug Category: Bug label Sep 18, 2024
@tsdk02 tsdk02 self-assigned this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant