From the course: Learning RabbitMQ

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Authorize or block application actions

Authorize or block application actions - RabbitMQ Tutorial

From the course: Learning RabbitMQ

Start my 1-month free trial

Authorize or block application actions

- After we verify who is connecting with our RabbitMQ instance, we need to determine what they are allowed to do. This is called authorization. RabbitMQ has two resources that can be manipulated, exchanges and queues. The operations that can be performed on these resources are configure, write, and read. It's important to add that RabbitMQ can cache permissions per connection or per channel so it's often necessary to reconnect. This isn't an issue in our web application because we connect on every request from the browser, but it might be in applications that keep the connection open for a longer time. In the RabbitMQ documentation, there is an overview of what permissions on what type of resources are required to be able to perform an operation. If we scroll down, we'll find a useful overview of the necessary permissions. For example, for an application to use the basic.publish operation, it must have write operations…

Contents