Skip to content

By @ikavgo: introduce a deletion protection marker for queues #13525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

michaelklishin
Copy link
Collaborator

This work was originally done by @ikavgo in Tanzu RabbitMQ.

Similarly to internal exchanges, that have restrictions on what applications can do with them,
and virtual hosts that have deletion protection in 4.x, this introduces a deletion protection concept for queues.

This relies on a map property all queues already have, so no schema migrations are necessary.

…tion) (#44)

* RMQ-1263: Check if queue protected from deleted inside rabbit_amqqueue:with_delete

Delayed exchange automatically manages associated Delayed Queue. We don't want users to delete it accidentally.

If queue is indeed protected its removal can be forced by calling  with
?INTERNAL_USER as ActingUser.

* RMQ-1263: Correct a type spec of amqqueue:internal_owner/1

* RMQ-1263: Add protected queues test

---------

Co-authored-by: Iliia Khaprov <[email protected]>
Co-authored-by: Michael Klishin <[email protected]>
(cherry picked from commit 97f44adfad6d0d98feb1c3a47de76e72694c19e0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants