Files
mtusi2026lab7-safronov/infra/rabbitmq/advanced.config
T
ricoromaandClaude Opus 5.5 8236027e92 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>
2026-11-19 21:34:47 +03:00

28 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%% TLS брокера стенда (change messaging-telemetry-mtls, design, решение 3; спек
%% transport-security, «mTLS к брокеру»; правило .claude/rules/tls.md).
%%
%% Все ssl_options — здесь: значение advanced.config заменяет ключ ssl_options
%% целиком, поэтому в rabbitmq.conf их нет. Только TLS 1.3, сертификат клиента
%% обязателен (verify_peer, fail_if_no_peer_cert) и проверяется по CA стенда и
%% CRL; назначение clientAuth у клиента проверяет OTP (серверный leaf клиентом
%% не входит). Пути — копии в tmpfs, которые готовит infra/rabbitmq/start.sh
%% после проверки материалов (CRL — каталог по хэшу издателя <хэш>.r0: у leaf
%% нет точки распространения CRL, OTP ищет CRL по издателю; источник
%% ssl_options.crl_sources из rabbitmq.conf (ssl_crl_cache) действующему
%% клиенту отвечал no_relevant_crls — проба propose). CRL читается при старте:
%% новый CRL — рестартом брокера (перечитывание — change rotation-revocation).
[
{rabbit, [
{ssl_options, [
{cacertfile, "/run/rabbitmq/tls/ca.crt"},
{certfile, "/run/rabbitmq/tls/rabbitmq.crt"},
{keyfile, "/run/rabbitmq/tls/rabbitmq.key"},
{versions, ['tlsv1.3']},
{verify, verify_peer},
{fail_if_no_peer_cert, true},
{crl_check, peer},
{crl_cache, {ssl_crl_hash_dir, {internal, [{dir, "/run/rabbitmq/crl"}]}}}
]}
]}
].