Skip to content
Back to skills

Rabbitmq Knowledge Patch

ASecurity

RabbitMQ

  • 25 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 5, 2026
developmentjavasqlnodekubernetesapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill rabbitmq-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rabbitmq Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rabbitmq Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-rabbitmq-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-rabbitmq-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rabbitmq-knowledge-patch
description: RabbitMQ
version: "4.4.1"
license: MIT
metadata:
  author: Nevaberry
---


# RabbitMQ knowledge patch

Load this skill when upgrading RabbitMQ, changing queue or protocol behavior,
or working on clustering, authentication, management APIs, or extensions.
Use the topic references for complete settings, examples, and release-specific details.

## Reference index

| Reference | Topics |
| --- | --- |
| [Migrations and deprecations](references/migrations-and-deprecations.md) | Upgrade paths, feature flags, removed settings, runtime compatibility, tooling, support lifecycle |
| [Clustering, configuration, and operations](references/clustering-configuration-and-operations.md) | Metadata stores, node replacement, peer discovery, listeners, resource limits |
| [Queues, streams, and exchanges](references/queues-streams-and-exchanges.md) | Declarations, storage, retries, priorities, timeouts, replication, filtering, routing |
| [Protocols and clients](references/protocols-and-clients.md) | AMQP, Direct Reply-To, conversion, Stream, MQTT, STOMP, Erlang clients |
| [Management API and observability](references/management-api-and-observability.md) | Health checks, definitions, API validation, UI, diagnostics, metrics, logs |
| [Security and authentication](references/security-and-authentication.md) | OAuth 2, LDAP, TLS, users, permissions, sessions, HTTP security |
| [Federation, Shovels, and extensions](references/federation-shovels-and-extensions.md) | Message transfer, plugin APIs, interceptors, commercial queues and connectors |

## Breaking changes and upgrade preparation

### Metadata migration and feature flags

Upgrade directly to 4.3.x from 4.2.x; Khepri is the sole metadata store in 4.3.
On a 4.2 cluster still using Mnesia, enable `khepri_db` before upgrading to avoid
performing the automatic migration during startup. Enable the required feature
flags from 4.2.0 and earlier before upgrading; the migration reference names them.
If the cluster used `rabbitmq_amqp1_0` in 3.13.x and still serves AMQP 1.0 clients,
perform at least one rolling update after enabling `rabbitmq_4.0.0` and before
upgrading to 4.3.0. Complete a mixed 4.2.x/4.3.0 rollout within a few hours.

RabbitMQ 4.3 removes `pause_minority`, `pause_if_all_down`, and `autoheal`.
Remove `cluster_partition_handling`,
`cluster_partition_handling.pause_if_all_down.recover`, and
`cluster_partition_handling.pause_if_all_down.nodes.$name`; the broker ignores them.
Metadata writes require a majority of cluster nodes; quorum queues and streams
use their own replica majorities.

### Queue declarations and storage

RabbitMQ 4.3 rejects non-durable, non-exclusive classic queues by default.
Use a durable queue with queue TTL for a shared temporary queue, or a non-durable
exclusive queue for connection-local use. The temporary legacy opt-in is
`deprecated_features.permit.transient_nonexcl_queues = true`; configure it on every
cluster node and restart those nodes before upgrading.

Remove `x-queue-mode` and any `x-queue-version` set to `1` before upgrading to 4.3.
`amqp_address_v1`, `amqp_filter_set_bug`, `global_qos`, and `queue_master_locator`
are denied by default in 4.3, and `ram_node_type` is removed.

RabbitMQ 4.4.0 writes new classic queue shared message store files in v2 `.sqs`
format. A node with any `.sqs` files cannot downgrade to 4.3.x or earlier.

### Runtime, configuration, and tools

RabbitMQ 4.2.9 and 4.3.x require Erlang/OTP 27.0 or later and fail to start on older
versions. RabbitMQ 4.4.0 fully supports Erlang/OTP 28 and 29 on new clusters and
during rolling upgrades.

`rabbitmqctl force_reset` is deprecated and incompatible with Khepri.
Before upgrading to 4.2, remove `*.cacerts` entries from `rabbitmq.conf`; use the
applicable `cacertfile` setting to configure a CA certificate file.
Before upgrading to 4.1, remove `cluster_formation.etcd.ssl_options.fail_if_no_peer_cert`,
`cluster_formation.etcd.ssl_options.dh`, and `cluster_formation.etcd.ssl_options.dhfile`.

Install `rabbitmqadmin` v2 as a standalone binary and convert v1 INI configuration
to TOML. The management plugin no longer serves the v1 script in 4.3; migrate to
v2 or point scripts that still need v1 at the copy on the `v4.2.x` branch.

### Protocol and HTTP compatibility

From 4.2, an AMQP 1.0 message with an omitted header is non-durable; set its header's
`durable` field to `true` when durability is required. AMQP 0-9-1 clients overriding
`frame_max` must request at least 8192 bytes in 4.1; the server default is 131072.
For `amqplib`, use 0.10.7 or later or explicitly set a compatible `frame_max`.

Send `Content-Type: application/json` to management HTTP API endpoints accepting
JSON request bodies; this is required in 4.3.8 and 4.4.1.
Replace `GET /api/auth/hash_password/{password}` with `POST /api/auth/hash_password`
and a JSON body such as `{"password":"example"}`.
The deprecated `GET /api/auth` endpoint is removed in 4.3.

In 4.3.0, passive AMQP 0-9-1 declarations require `configure`. From 4.3.1, passive
`queue.declare` or `exchange.declare` can pass with `configure`, `write`, or `read`
permission in the target virtual host. Several runtime parameter endpoints that
previously accepted `policymaker` now require `administrator`; the 4.4.1 notes also
report this requirement for other previously privileged endpoints.

## Quorum queue delivery and scheduling

Quorum queues honor 32 strict message priorities in 4.3, delivering higher-priority
ready messages first. `acquired-count` increments on every requeue; only failed
deliveries increment `delivery-count`, which drives `delivery-limit` (default 20).
AMQP 0-9-1 `basic.nack` with requeue is a return; `basic.reject` with requeue is a
failure. The queue reference covers AMQP 1.0 outcomes, crashes, and partitions.

Use `delayed-retry-type` values `failed`, `returned`, or `all`; the default is
`disabled`. Set `delayed-retry-min` and `delayed-retry-max` in milliseconds, or
prefix these three keys with `x-` for queue arguments. Failed deliveries use
`min(delayed-retry-min * delivery-count, delayed-retry-max)`; the maximum defaults
to the minimum. Example policy definition:

```json
{"delayed-retry-type":"failed","delayed-retry-min":30000,"delayed-retry-max":120000}
```

Change an existing quorum queue's delivery limit through its policy without
redeclaring it. `{"delivery-limit":-1}` disables the limit; removing the policy
restores the default of 20. Purging a quorum queue also removes messages still
pending at-least-once dead-letter delivery.

In 4.3, quorum queues and commercial JMS queues enforce consumer acknowledgement
timeouts; classic queues and streams stop enforcing them. Highest-to-lowest
precedence is consumer `x-consumer-timeout`, queue `x-consumer-timeout`, policy
`consumer-timeout`, then `consumer_timeout` in `rabbitmq.conf`. Values are in
milliseconds; the global default is `1800000`. An invalid global value falls back
to 24 hours in 4.3.3.

For scheduled delivery in 4.4.0, set `x-opt-delivery-time` to a future Unix timestamp
in milliseconds in an AMQP 1.0 annotation or an AMQP 0-9-1 header of type `long`.
The broker routes and enqueues immediately; each target quorum queue holds delivery
until that time. The commercial Delayed Queue plugin schedules routing through the
target exchange when due, using `x-opt-delivery-time` or `x-opt-delivery-delay`.

## Streams, routing, and AMQP links

AMQP 1.0 stream consumers support `properties` and `application-properties` filters,
string prefix/suffix matching, and at most 16 properties per filter.
SQL predicates are evaluated by the broker before matching stream messages are
delivered. Use `.filter().sql(...)` in the Java AMQP 1.0 client; the queue reference
contains the complete example and chunk-filtering configuration.

Use an `x-modulus-hash` exchange with the entity ID as routing key and single active
consumer on each destination queue for concurrent processing across keys.
Set a delivery limit on quorum queues to return requeued messages to the front.
Routing remains stable across restarts while the binding set stays the same.

Set `dynamic` to `true` on an AMQP 1.0 source or target to create an exclusive queue
for the link. Use the `x-cc` annotation for additional routing keys as an AMQP list
of strings. AMQP 1.0 supports Direct Reply-To across AMQP versions; remove binding
calls for its pseudo-queue because the broker rejects them.

## Cluster operations and diagnostics

Before stopping a node, run `rabbitmq-diagnostics check_if_node_is_quorum_critical`.
For automated shutdowns, `rabbitmq-upgrade await_online_quorum_plus_one` waits until
enough nodes are online to preserve quorum; the Kubernetes Cluster Operator already
runs it in its `preStop` hook.

`rabbitmq-upgrade drain` excludes a node from new primary replica placement across
queue types. It returns to service automatically on restart; use
`rabbitmq-upgrade revive` if the restart is canceled.
Reserve grow-then-shrink for replacing a single node when versions can coexist:
add it, place a replica of every quorum queue and stream on it, wait for replica
synchronization, then remove the old node with `rabbitmqctl forget_cluster_node`.

Use focused health checks: the original all-in-one management HTTP health check is
a no-op in 4.0.6. `GET /api/health/checks/ready-to-serve-clients` returns HTTP 200 when
the node has booted, is within its connection limit, and is out of maintenance mode.
Use `rabbitmq-diagnostics check_if_metadata_store_is_initialized` for initialization,
or `rabbitmq-diagnostics check_if_metadata_store_is_initialized_with_data` to also
require data. The management reference includes the HTTP equivalents and quorum
queue leader checks.

Run `rabbitmq-diagnostics message_size_stats` to estimate message size distribution.
Ra metric names and aggregate/per-object series changed in 4.2; use the complete
mapping in the management reference when updating Prometheus scrapes and dashboards.

## Authentication and message transfer

Renew an AMQP 1.0 JWT before expiry, when RabbitMQ closes the connection.
A failed Stream JWT renewal closes the connection immediately; replacement tokens
must still grant access to the connection's virtual host. Cached authentication
passes through token expiry, and STOMP and Web STOMP enforce credential expiry.

RabbitMQ 4.4.0 validates the OpenID Connect issuer against the discovery URL and
requires HTTPS endpoints in the discovery response. Before upgrading an incompatible
provider, set `auth_oauth2.discovery.verify_issuer = false` for an issuer mismatch
or `auth_oauth2.discovery.verify_https_endpoints = false` for HTTP endpoints.
Use `http_dispatch.auth_backends` for management HTTP API access and `auth_backends`
for messaging protocol connections.

Use the `local` Shovel protocol for consumption and publishing within one cluster.
In 4.3.7 and 4.4.0, a Shovel returns destination-rejected messages to the source as
failed deliveries: a quorum source dead-letters after exceeding its delivery limit,
while a classic source redelivers until acceptance. In 4.4.1, a Shovel drops a message
when the destination refuses it for exceeding its maximum message size.
Non-administrators must supply a password or token in a Shovel direct URI, including
when using their own username; administrators may omit the password.

Files in this skill

  • SKILL.md9.5 KB
  • coverage.json1023 B
  • references/clustering-configuration-and-operations.md5 KB
  • references/federation-shovels-and-extensions.md4.3 KB
  • references/management-api-and-observability.md4.9 KB
  • references/migrations-and-deprecations.md5.1 KB
  • references/protocols-and-clients.md5.5 KB
  • references/queues-streams-and-exchanges.md6.7 KB
  • references/security-and-authentication.md4.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.