From 08a76a9293617b889ae10295ad97d8a32e2e74dd Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 23 Jul 2026 16:10:51 -0300 Subject: [PATCH 1/2] SAM0123-231: Remove version pin for asyncua in requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ed65ae3..4db22cf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -asyncua==1.1.5 +asyncua redis sientia_do==1.12.1 prometheus_client From a239a1a706ed701c08ab5dfbdd09851884af21a0 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 23 Jul 2026 16:18:28 -0300 Subject: [PATCH 2/2] SAM0123-231: Enhance OPC UA client setup by asserting certificate and private key presence and assigning pod ID to client description. --- ingestor/managers/opc_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ingestor/managers/opc_manager.py b/ingestor/managers/opc_manager.py index 7b446c9..3505757 100644 --- a/ingestor/managers/opc_manager.py +++ b/ingestor/managers/opc_manager.py @@ -162,6 +162,7 @@ class OpcManager(SientiaMonitoring): cert = str(Path(self.cert_path)) if self.cert_path else None private_key = str(Path(self.private_key_path)) if self.private_key_path else None server_cert = str(Path(self.server_cert_path)) if self.server_cert_path else None + assert cert is not None and private_key is not None if self.client: self.client.application_uri = self.server_uri @@ -209,7 +210,7 @@ class OpcManager(SientiaMonitoring): assert self.client is not None # Informa ao mypy que client não é None self.client.name = self.pod_id - self.client.application_name = self.pod_id + self.client.description = self.pod_id pod_uri = self.pod_id.replace('-', ':') self.client.application_uri = pod_uri self.client.product_uri = pod_uri