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:
@@ -185,7 +185,11 @@ daemon-потоках, процесс их не ждёт. Без Collector и п
|
||||
`os._exit`. Сигнал на старте — «Stopped worker before startup». Неверные настройки —
|
||||
код 2. Отказ брокера, S3, PostgreSQL процесс не роняет. Консоль — `make run_dev`
|
||||
(поднимает и брокер) плюс `make run_worker` и `make run_relay` в других терминалах:
|
||||
тот же `.env`, ключи worker в окружении процесса. Без relay консольный API принимает
|
||||
тот же `.env`, ключи worker в окружении процесса. С change `messaging-telemetry-mtls` цели
|
||||
передают ещё файлы identity у брокера (`BROKER_TLS_ENV`: `$(PKI_STAND_DIR)/worker.crt` /
|
||||
`.key` или `relay.*` и `crl.pem`), брокер — `localhost:${RABBITMQ_OUT_PORT}` по mTLS (SAN
|
||||
`localhost` identity `rabbitmq`); `.env` с `BROKER__HOST=127.0.0.1` — код 2 и `broker.host`;
|
||||
`start_broker` зависит от `pki_stand`. Без relay консольный API принимает
|
||||
файлы, а задания ждут в PostgreSQL. Лимит памяти процесса обработки на macOS не
|
||||
действует (`worker.md`).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user