diff --git a/src/spiffworkflow_backend/routes/process_api_blueprint.py b/src/spiffworkflow_backend/routes/process_api_blueprint.py index 67b97bb9..6cbc9be2 100644 --- a/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -1123,7 +1123,7 @@ def get_secret_value(key: str) -> Optional[str]: def secret_list( page: int = 1, per_page: int = 100, -) -> list: +) -> Response: secrets = SecretModel.query\ .order_by(SecretModel.key)\ .join(UserModel)\ diff --git a/src/spiffworkflow_backend/services/service_task_service.py b/src/spiffworkflow_backend/services/service_task_service.py index 910c740f..37c22c3d 100644 --- a/src/spiffworkflow_backend/services/service_task_service.py +++ b/src/spiffworkflow_backend/services/service_task_service.py @@ -23,7 +23,7 @@ class ServiceTaskDelegate: secret_prefix = "secret:" # noqa: S105 if value.startswith(secret_prefix): key = value.removeprefix(secret_prefix) - value = SecretService().get_secret(key) + value = SecretService().get_secret_value(key) return value @staticmethod