feat: require mTLS with certificate login for RabbitMQ and split relay and worker rights

Broker accepts only TLS 1.3 with a client certificate checked against the
stand CRL; login is EXTERNAL by certificate DNS SAN, broker passwords are
gone. Relay may declare its queue and publish, worker may only consume.
Definitions and TLS material checks come from infra/rabbitmq/start.sh;
temporary stands, CI, bench and the fault hook use the same mTLS identities.
Adds make broker_mtls_check [REPORT=1] and drops the rollback broker compose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 21:34:47 +03:00
co-authored by Claude Opus 5.5
parent 2474e4cb28
commit 8236027e92
52 changed files with 3888 additions and 243 deletions
+5 -2
View File
@@ -155,8 +155,11 @@ max_changes = 100
max_objects_per_second = 2000
[broker]
# Адрес, порт, пользователь и пароль RabbitMQ приходят из .env (мосты к
# RABBITMQ_*) и из environment compose; здесь их не указывать.
# Адрес и порт RabbitMQ приходят из .env (мосты к RABBITMQ_*) и из environment
# compose; вход — только по сертификату identity процесса (change
# messaging-telemetry-mtls): пути к сертификату, ключу и CRL — secrets compose и
# цели make run_relay / run_worker. Здесь их не указывать: файл смонтирован и в
# консоль, и в контейнеры.
# секунды на установку соединения с брокером
connect_timeout_seconds = 2
# секунды на публикацию пакета заданий relay целиком: соединение, канал,