การรักษาความปลอดภัย RabbitMQ เกี่ยวข้องกับ authentication, authorization (permission, vhost), encryption (TLS) และ network security — ปกป้อง broker และ message ที่มันจัดการ การเข้าใจความปลอดภัยของ RabbitMQ มีความสำคัญต่อการ deploy บน production
authentication และ authorization
✓ AUTHENTICATION → require credentials (users/passwords); don't use the default guest
account in production (it's restricted to localhost by default — and should be removed/changed)
✓ AUTHORIZATION → grant users PERMISSIONS (configure/write/read) per VHOST → least privilege
(users access only what they need)
✓ VHOSTS → isolate applications/tenants; scope permissions per vhost
✓ Consider external auth (LDAP, OAuth) for enterprise
