From 24739ea2ab8ee495f1b8ad3d9a890b0f0e49d40f Mon Sep 17 00:00:00 2001 From: orestedimaggio-create Date: Thu, 14 Aug 2025 18:00:21 +0200 Subject: [PATCH] Update utils.py secret_name variable was null and it was not correctly read from the Environment variable CHRONICLE_SERVICE_ACCOUNT. This fixes the problem --- common/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/utils.py b/common/utils.py index f02225f..50e0cc3 100644 --- a/common/utils.py +++ b/common/utils.py @@ -101,7 +101,8 @@ def get_value_from_secret_manager(resource_path: str) -> str: client = secretmanager.SecretManagerServiceClient() # Access the secret version. - response = client.access_secret_version(name=resource_path) + secret_name = os.environ['CHRONICLE_SERVICE_ACCOUNT'] + response = client.access_secret_version(request={"name": secret_name}) return response.payload.data.decode("UTF-8")