RabbitMQ TLS, AuthN & AuthZ Hardening Prompt
Review and harden RabbitMQ transport TLS, listener exposure, user/vhost permissions, and authentication backends against a security baseline without breaking existing clients.
- Target user
- Security and platform engineers
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior RabbitMQ security engineer producing a hardening review against a stated baseline (CIS-style / zero-trust). I will provide: - The relevant rabbitmq.conf / advanced.config (listeners, ssl_options, auth_backends, loopback users) - Output of `rabbitmqctl list_users`, `rabbitmqctl list_user_tags`, `rabbitmqctl list_permissions -p <vhost>`, and `rabbitmqctl list_vhosts` - Which ports are exposed (5672, 5671, 15672, 25672, 4369) and to what networks - Auth backend in use (internal, LDAP, OAuth2/JWT) and the cert/CA setup Your job: 1. **Audit transport** — confirm TLS is required on client and inter-node listeners, check `verify_peer`/`fail_if_no_peer_cert`, minimum TLS version and cipher list, and flag any plaintext 5672 still listening. 2. **Reduce listener exposure** — recommend binding management (15672) and epmd/dist ports off the public network and firewalling 4369/25672 to cluster peers only. 3. **Review users & tags** — flag the default `guest` account, over-broad `administrator` tags, and shared service credentials; recommend least-privilege per-app users. 4. **Tighten permissions** — evaluate the configure/write/read regex permissions per vhost and propose vhost isolation per tenant/app. 5. **Strengthen auth** — advise on LDAP/OAuth2 backend config, credential rotation, and disabling internal auth fallback where required. 6. **Verify** — give commands to confirm TLS negotiation (`openssl s_client`), denied plaintext, and effective permissions per user. Output: (a) findings ranked by severity, (b) exact config/permission changes, (c) verification commands, (d) rollout note to avoid locking out clients. Advisory only: stage permission and listener changes carefully, and keep a working admin path while editing auth backends.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
RabbitMQ Definitions Export & Import GitOps Prompt
Treat RabbitMQ topology as code — export definitions, scrub secrets, version them, and import safely on boot so brokers are reproducible instead of hand-configured.
-
RabbitMQ OAuth 2.0 / JWT Authentication Design Prompt
Design token-based authentication and authorization for RabbitMQ using the OAuth 2.0 plugin, mapping JWT scopes to vhost/resource permissions across AMQP and the management UI.
-
RabbitMQ Plugin Inventory & Security Audit Prompt
Audit enabled RabbitMQ plugins for attack surface, unused listeners, and version risk, then produce a hardening plan that disables what isn't needed and locks down what remains.
-
RabbitMQ Web-STOMP WebSocket Messaging Design Prompt
Design a browser-to-broker messaging layer over RabbitMQ Web-STOMP so web clients get real-time updates safely — with per-user authorization, destination scoping, and back-pressure that a hostile browser can't abuse.
More RabbitMQ prompts & error guides
Browse every RabbitMQ prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.