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

Clients that are not allowed to create queues, are not able to "addQueue" to create a subscribers #183

Open
zlintz opened this issue Dec 5, 2018 · 2 comments

Comments

@zlintz
Copy link

zlintz commented Dec 5, 2018

In a running rabbit instance add a user with restricted permissions

rabbitmqctl add_user johnDoe “superSecretPassword”
rabbitmqctl set_user_tags johnDoe monitoring
rabbitmqctl set_permissions -p / johnDoe "^$" ".*" ".*"

After creating a connection with the newly added user.

Attempt to call the "Broker.prototype.addQueue" results in an error like...

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Failed to create queue 'queue.that.should.exist.already' on connection 'default' with 'Error: Operation failed: QueueDeclare; 403 (ACCESS-REFUSED)
zlintz added a commit to Foo-Foo-MQ/foo-foo-mq that referenced this issue Dec 5, 2018
allows for checkQueue instead of assertQueue when clients have restricted permissions

fixes issue arobson#183
zlintz added a commit to Foo-Foo-MQ/foo-foo-mq that referenced this issue Dec 5, 2018
allows for checkQueue instead of assertQueue when clients have restricted permissions

fixes issue arobson#183
zlintz added a commit to Foo-Foo-MQ/foo-foo-mq that referenced this issue Dec 5, 2018
allows for checkQueue instead of assertQueue when clients have restricted permissions

fixes issue arobson#183
@codepushr
Copy link

codepushr commented Jun 28, 2019

@arobson Bump - there's even a pull request...

@zlintz
Copy link
Author

zlintz commented Jun 15, 2020

@codepushr I have this fixed over at https://github.com/Foo-Foo-MQ/foo-foo-mq if you are interested, hence the now closed pull request I had opened

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

No branches or pull requests

2 participants