limnh / journey

Notes and learnings along the way of becoming an engineer
0 stars 1 forks source link

2019-02-20 #3

Closed limnh closed 5 years ago

limnh commented 5 years ago

Issues/Questions:

Timebox to ~1 hour, start time ~8:30amPDT

  1. List/find users in RabbitMQ

  2. Create a user in RabbitMQ

  1. How do I make positive aspects of my apprentice engineering experience reproducible?

  2. define all aspects of rabbitmqctl set_permissions -p / datadog "^aliveness-test$" "^amq\.default$" ".*"

  3. set same permissions for atlas vhost that we did for the default vhost

Solutions:

  1. Users: atlas [administrator] guest [administrator]
  1. using the list from #1, I was also able to find the add_user command, which is formatted like sudo rabbitmqctl add_user <username> <password>
  1. Started writing up the Apprentice Engineer Outline

  2. Definitions:

    • set_permissions - sets user permissions
    • -p / - chosen default vhost
    • datadog - name of the user
    • "^aliveness-test$" is the conf. A regular expression matching resource names for which the user is granted configure permissions.
    • Will configure permissions on resources that include ^aliveness-test$
    • The conf operations create or destroy resources, or alter their behaviour.
    • Aliveness-Test - Declares a test queue, then publishes and consumes a message. Intended for use by monitoring tools. If everything is working correctly, will return HTTP status 200 with body: {"status":"ok"}
    • "^amq\.default$" The regular expression ^$, i.e. matching nothing but the empty string, covers all resources and effectively stops the user from performing any operation. Standard AMQP resource names are prefixed with amq.
    • amq\.default$' gives a user access to the default exchange.
    • In the write portion of the command.
    • .* - gives write and read permissions on all resources
  3. ran the same commands for atlas vhost that we did in the previous step for the default vhost...and I think it's working??? 🤷🏻‍♀️

limnh commented 5 years ago

First thought of the day: it is an good day because I can google stuff and actually find relevant information 🎉