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

Use when having restricted rights #723

Open
paritoshnagar2016 opened this issue May 19, 2023 · 5 comments
Open

Use when having restricted rights #723

paritoshnagar2016 opened this issue May 19, 2023 · 5 comments
Labels

Comments

@paritoshnagar2016
Copy link

Hi Team,

We are looking forward to use service bus explorer but need to make sure that developers should be able to move messages from DLQ to Active Queue but not able to add/delete/manage queues or topics. When I can trying to use SAS token explorer only allows when I am selecting manage policy and this would open up for developers to add/delete queues, is there way to restrict the same.

Thank You

@SeanFeldman
Copy link
Collaborator

Potentially related to #607

@ErikMogensen ErikMogensen changed the title Service Bus Explorer use case Use when having restricted permissions May 22, 2023
@ErikMogensen ErikMogensen changed the title Use when having restricted permissions Use when having restricted rights May 22, 2023
@ErikMogensen
Copy link
Collaborator

@paritoshnagar2016, as far as I know SBE works properly when the connection string used has Listen and Send rights. You have to test that though since there are often changes and this use case is not tested.

According to https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-sas#shared-access-authorization-policies you need the Manage right to be able to delete and create queues.

Please reply to this thread whether it works or not after you have tested it.

@Kunter-Bunt
Copy link

@ErikMogensen
I have retested this and do receive 401 errors upon connecting:
image
image

@ErikMogensen
Copy link
Collaborator

I tried it and had the same error. It is the namespaceManager.GetQueuesAsync() method that fails. There is no mention about rights requirements at the method documentation. I can not think of a way of solving this, unless the tool gets support for RBAC authentication, as Sean posted.

I believe this was working in the past, in that case there has been a change in the service.

@TomasMalecek
Copy link

This looks like a duplicate of #615.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants