lab7: TLS ко всем зависимостям и телеметрии; раздельные роли PostgreSQL (GRANT по коду), ACL Valkey, AMQPS, HTTPS S3, mTLS Collector/Prometheus/Loki/Tempo/Grafana

This commit is contained in:
Alexey Bodanyuk
2026-11-27 16:29:09 +03:00
parent f36da97951
commit 93f4ed1013
28 changed files with 621 additions and 201 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ class Worker:
# ---------------------------------------------------------------- broker
async def connect(self) -> None:
self.connection = await aio_pika.connect(
self.settings.broker_url, timeout=5,
self.settings.broker_url, timeout=5, ssl_context=broker.ssl_context(self.settings),
client_properties={"connection_name": "worker@" + self.name})
self.lost = service.watch_connection(self.connection)
self.channel = await self.connection.channel()