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
+3 -1
View File
@@ -29,7 +29,9 @@ if __name__ == "__main__":
sys.exit(2)
# TLS к хранилищам (change storage-tls, design, решение 5): CA стенда и
# имена PostgreSQL и S3 — до первого подключения; поля без значений
# имена PostgreSQL и S3 — до первого подключения; поля без значений. С
# change messaging-telemetry-mtls (решение 8) — и брокер: адрес-имя, пара
# identity worker и CRL
from src.config import settings
from src.infra.tls import WORKER_STORAGES, client_tls_problems