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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user