From 15cdd6eb092557938b48ea9ca506a4dd33806a37 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Mon, 26 Sep 2022 10:36:54 -0400 Subject: [PATCH] Use secret store --- src/spiffworkflow_backend/services/service_task_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spiffworkflow_backend/services/service_task_service.py b/src/spiffworkflow_backend/services/service_task_service.py index e2ee5385..86a6a80c 100644 --- a/src/spiffworkflow_backend/services/service_task_service.py +++ b/src/spiffworkflow_backend/services/service_task_service.py @@ -5,6 +5,7 @@ from typing import Dict import requests from flask import current_app +from spiffworkflow_backend.services.secret_service import SecretService def connector_proxy_url() -> Any: @@ -21,8 +22,7 @@ class ServiceTaskDelegate: secret_prefix = "secret:" # noqa: S105 if value.startswith(secret_prefix): key = value.removeprefix(secret_prefix) - # TODO replace with call to secret store - value = key + value = SecretService().get_secret(key) return value @staticmethod