Title: RabbitMQ service: TLS between the nodes of a cluster as the declaration owner's choice · Issue #550 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: RabbitMQ service: TLS between the nodes of a cluster as the declaration owner's choice · Issue #550 · cloudfall-dev/cloudfall
X Title: RabbitMQ service: TLS between the nodes of a cluster as the declaration owner's choice · Issue #550 · cloudfall-dev/cloudfall
Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-19) Roman's request, as he gave it: TLS between the nodes can be optional, the choice of the tenant; the risk is theirs too. Spec: docs/specs/023-rabbitmq-service.md, S...
Open Graph Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-19) Roman's request, as he gave it: TLS between the nodes can be optional, the choice of the tenant; the risk is theirs too. Spe...
X Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-19) Roman's request, as he gave it: TLS between the nodes can be optional, the choice of the tenant; the risk is theirs too....
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/550
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RabbitMQ service: TLS between the nodes of a cluster as the declaration owner's choice","articleBody":"Requested by: `@romamo` (filed by an agent on his instruction, 2026-11-19)\n\nRoman's request, as he gave it: TLS between the nodes can be optional, the choice of the tenant; the risk is theirs too.\n\nSpec: `docs/specs/023-rabbitmq-service.md`, S-023-9 and the paragraph \"Between nodes every connection is encrypted and verified against the project CA in both directions\". Related: #508 and its PR #541 (the cluster of three, which builds the TLS), #539 (profiles, the same kind of choice by the owner of the declaration).\n\n## Problem\n\nS-023 gives every cluster of three TLS between its nodes, with no way to decline it. RabbitMQ itself does not require it: its stock cluster runs on the Erlang cookie and the firewall. The owner of a declaration whose nodes meet on a network they trust pays for encryption they did not ask for:\n\n- **One link carries less.** Erlang runs TLS for its distribution in its own processes, so the link between two nodes has a lower ceiling than plain TCP\n- **Every byte between nodes costs CPU.** A quorum queue sends each message to the other two nodes, so the cost follows the publish rate\n\nMeasured on 2026-11-19 between two nodes on Debian 13's Erlang (OTP 27, ssl 11.2.12.1), in one container over loopback on an Apple M4, raw Erlang distribution with one sending process, two runs. It is a bound for the link, not a forecast for a RabbitMQ cluster on real servers:\n\n| Load | Plain | TLS |\n|---|---|---|\n| 1 KB messages | 570 to 640 thousand a second | 170 to 210 thousand a second |\n| 64 KB and 1 MB messages | 8 to 10 GB/s (a memory copy on loopback) | 110 to 230 MB/s |\n| CPU for 300 MB of 1 KB messages, both nodes | about 0.5 s | about 1.2 s |\n| CPU for 500 MB of large messages, both nodes | about 0.14 s | 1.2 to 1.6 s |\n| First connection between two nodes | about 22 ms | 110 to 130 ms |\n\nSo one TLS link carried about 1 to 2 Gbit/s there, at roughly 2 to 3 ms of CPU for each MB sent. On a 1 Gbit network that is close to what the network carries anyway; on a faster one TLS becomes the limit.\n\n## Proposal\n\nThe agent's reading of the request; the spec amendment settles the details.\n\n1. **TLS stays the default:** a declaration that says nothing gets what S-023 gives today\n2. **The owner of the declaration can turn it off** with one field on the service. Its name and values are for the amendment\n3. **The risk is the owner's, and the tool says so:** `config validate` warns with a stable code, as `MARIADB_REPLICATION_UNENCRYPTED` does for a replication link with no CA. The text names what is left (the port rules and the Erlang cookie) and says that between servers with no private `network` the traffic crosses the internet in plain text\n4. **Without TLS the node runs RabbitMQ's stock distribution:** no `-proto_dist inet_tls`, no `inter_node_tls.config`, and a node certificate only when `clientAccess` asks for one. Ports 4369 and 25672 stay open to the other two nodes only, and the cookie stays as it is\n5. **`inspect` and `audit` report the mode,** and a node that runs the other mode than the declared one is drift\n6. **The mode is chosen when the cluster is created.** A plain node and a TLS node do not connect, in either direction (checked on the same Erlang, 2026-11-19), so the mode can't change one node at a time: every node would stop together, which no converge does today\n\nFor the amendment to put to Roman:\n\n- The field's name and values\n- Nodes on public addresses with TLS off: a warning only, as the request reads, or a refusal\n- A change of the mode on a running cluster: refused, or a documented stop of the whole cluster\n\n## What it touches\n\n- S-023-9: \"encrypted and verified against the project CA\" and \"a certificate from another CA does not join\" hold with TLS on; the port rules and \"a node started with another cookie does not join\" hold in both modes\n- The requirements table: the certificate row's \"with three nodes or `clientAccess`\" follows the mode\n- #541 builds the TLS mode and is not changed by this; the option comes after it lands. The question open on #541, whether the hostname in a node's certificate is checked, is about the TLS mode and stays\n- The audit findings in #512\n- The usage guide: when turning it off is reasonable, and what it leaves unprotected\n\n## Out of scope\n\nTLS for clients (`clientAccess`, S-023-19), encryption between servers by other means (WireGuard, IPsec), and kernel TLS (`ktls`) as a way to lower the cost of the TLS mode.\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-19T10:46:25Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/550"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bcb8818a-69f9-6cca-f4e1-1325bd141519 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A354:D410B:25F5FD8:3188CEE:6B054EDA |
| html-safe-nonce | 70a54c0fff5044d68e29ba8070d6ab756563d690f81751dbf65d70f3b053ae1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzU0OkQ0MTBCOjI1RjVGRDg6MzE4OENFRTo2QjA1NEVEQSIsInZpc2l0b3JfaWQiOiIxNTk1NDA4NDg5MTQzMTYwNTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d646635dd0552a27889b00172bc39981796e1dbbce6e007b432952b93cd2cfa8 |
| hovercard-subject-tag | issue:6487820199 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/550/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a48171d8d4cc288ea2e5d088c90d6389b72ee8ff663277b3cf487c07fbd88174/cloudfall-dev/cloudfall/issues/550 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a48171d8d4cc288ea2e5d088c90d6389b72ee8ff663277b3cf487c07fbd88174/cloudfall-dev/cloudfall/issues/550 |
| og:image:alt | Requested by: @romamo (filed by an agent on his instruction, 2026-11-19) Roman's request, as he gave it: TLS between the nodes can be optional, the choice of the tenant; the risk is theirs too. Spe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width