From 2923c1cd674dfb4e1c5bc6549a77b8b9faac1146 Mon Sep 17 00:00:00 2001 From: Trevor Oler <18trevor3695@gmail.com> Date: Wed, 22 Jul 2026 21:07:36 -0400 Subject: [PATCH] Potential fix for code scanning alert no. 1: Information exposure through an exception Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/aethermesh_core/runtime_service.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/aethermesh_core/runtime_service.py b/src/aethermesh_core/runtime_service.py index ce9a11f..49fe237 100644 --- a/src/aethermesh_core/runtime_service.py +++ b/src/aethermesh_core/runtime_service.py @@ -10,6 +10,7 @@ import hashlib import json +import logging import os import platform import re @@ -51,6 +52,8 @@ validate_validator_software_metadata, ) +logger = logging.getLogger(__name__) + CONFIG_SCHEMA_VERSION = 1 DEFAULT_API_HOST = "127.0.0.1" DEFAULT_API_PORT = 7280 @@ -863,10 +866,11 @@ def submit_local_job_status(self, request: dict[str, Any]) -> dict[str, Any]: try: accepted = self.submit_local_job(request) - except RuntimeServiceError as exc: + except RuntimeServiceError: + logger.exception("Local job submission rejected due to runtime validation.") return self._submission_status( status="rejected", - message=str(exc), + message="Local submission request is invalid.", validation_state="rejected", request=request, )