0
0
RabbitMQdevops~30 mins

User and permission management in RabbitMQ - Mini Project: Build & Apply

Choose your learning style9 modes available
User and Permission Management in RabbitMQ
📖 Scenario: You are managing a RabbitMQ server for a small team. You need to create a user, set a password, and assign permissions so the user can access specific resources safely.
🎯 Goal: Learn how to create a RabbitMQ user, set a password, and assign permissions using RabbitMQ command line tools.
📋 What You'll Learn
Create a RabbitMQ user with a specific username and password
Set permissions for the user on a specific virtual host
Verify the permissions assigned to the user
💡 Why This Matters
🌍 Real World
Managing users and permissions in RabbitMQ is essential for securing message queues in real applications.
💼 Career
DevOps engineers and system administrators often manage RabbitMQ users and permissions to control access and maintain security.
Progress0 / 4 steps
1
Create a RabbitMQ user
Use the command rabbitmqctl add_user testuser testpass to create a user named testuser with password testpass.
RabbitMQ
Need a hint?

Use rabbitmqctl add_user followed by the username and password.

2
Set permissions for the user
Use the command rabbitmqctl set_permissions -p / testuser ".*" ".*" ".*" to give testuser full permissions on the default virtual host /.
RabbitMQ
Need a hint?

Use rabbitmqctl set_permissions with -p / for the default virtual host, username, and regex patterns ".*" for configure, write, and read permissions.

3
Verify user permissions
Use the command rabbitmqctl list_user_permissions testuser to check the permissions assigned to testuser.
RabbitMQ
Need a hint?

Use rabbitmqctl list_user_permissions followed by the username to see permissions.

4
Display the permissions output
Run the command rabbitmqctl list_user_permissions testuser and display the output showing the virtual host and permissions for testuser.
RabbitMQ
Need a hint?

The output should show the username, virtual host, and permission patterns.