lab7: TLS ко всем зависимостям и телеметрии; раздельные роли PostgreSQL (GRANT по коду), ACL Valkey, AMQPS, HTTPS S3, mTLS Collector/Prometheus/Loki/Tempo/Grafana
This commit is contained in:
@@ -58,7 +58,7 @@ class Relay:
|
||||
|
||||
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": "relay@" + self.settings.instance_id})
|
||||
self.lost = service.watch_connection(self.connection)
|
||||
# Confirm mode: every publish() waits for basic.ack of the broker (message in the quorum log).
|
||||
|
||||
Reference in New Issue
Block a user