RabbitMQ & AMQP (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
End-to-End Security: TLS 1.3 Encryption, SASL EXTERNAL, and Mutual TLS (mTLS).
senior LevelSecurity & AuthSystem Design
In Simple Words: In high-compliance enterprise environments:
- Enforce TLS 1.3 on AMQP port
5671. - mTLS with SASL EXTERNAL:
- Instead of passing plaintext passwords in connection URLs (
amqp://user:pass@host), clients present a cryptographically signed X.509 client certificate. - RabbitMQ extracts the Common Name (CN) or Subject Alternative Name (SAN) from the certificate and maps it directly to a RabbitMQ internal user without exchanging passwords over the wire.
- Instead of passing plaintext passwords in connection URLs (