forked from mtusi2026/mtusi2026lab7
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:
@@ -155,7 +155,15 @@ failed» с traceback. Модуль `worker`: «Started worker» со всеми
|
||||
«Stopped worker» с `exit_code`, «Invalid worker settings» мимо structlog, «Stopped
|
||||
worker before startup». Модуль `broker`: `warning` «Broker is unavailable»,
|
||||
`info` «Broker is available again», `debug` на публикацию; API: «Uploaded attachment»
|
||||
— ещё `job_id`, `content_type` значением. Пароля брокера и тел сообщений в записях нет.
|
||||
— ещё `job_id`, `content_type` значением. Пароля брокера и тел сообщений в записях нет. С
|
||||
change `messaging-telemetry-mtls` «Broker is unavailable» пишется и на отказ рукопожатия,
|
||||
проверки сертификата и входа (`error_type`: на стенде отказ рукопожатия — `AMQPConnectionError`
|
||||
(aiormq оборачивает `ssl.SSLError`; отозванный `worker` — 9 таких записей за 12 с после рестарта
|
||||
брокера), отказ входа — `ProbableAuthenticationError`, нет очереди у worker —
|
||||
`ChannelNotFoundEntity`), без путей и
|
||||
содержимого ключа и сертификатов; отказ файлов identity при старте — «Invalid client TLS settings»
|
||||
с `fields` (`broker.cert_file`, `broker.key_file`, `broker.crl_file`, `broker.host`). Брокер пишет
|
||||
каждое отвергнутое рукопожатие записью `error` `{tls_alert, …}` в свой журнал.
|
||||
|
||||
С change `pipeline-reliability` (решение 18): «Started job attempt» — ещё `queue_wait_ms`
|
||||
(от подтверждения брокером до взятия), `message_attempt`, `redelivered`; «Attachment
|
||||
|
||||
Reference in New Issue
Block a user