Files
mtusi2026lab7-safronov/infra/rabbitmq/advanced.config
T
ricoromaandClaude Opus 5.5 c40fbef36a feat: rotate and revoke credentials on the running stand
Add operator commands for leaf and secret rotation, identity revocation
and CRL renewal without rebuilding images, and a drill under load.
A rejected PostgreSQL role password is now 503 instead of 500.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 06:46:55 +03:00

30 lines
1.8 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). OTP читает CRL из
%% каталога при каждом рукопожатии: новый CRL и новая пара — на работающем узле
%% (start.sh --install-crl / --install-leaf, 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"}]}}}
]}
]}
].