Use secret store

This commit is contained in:
mike cullerton 2022-09-26 10:36:54 -04:00
parent 1f3114eabb
commit 15cdd6eb09
1 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,7 @@ from typing import Dict
import requests import requests
from flask import current_app from flask import current_app
from spiffworkflow_backend.services.secret_service import SecretService
def connector_proxy_url() -> Any: def connector_proxy_url() -> Any:
@ -21,8 +22,7 @@ class ServiceTaskDelegate:
secret_prefix = "secret:" # noqa: S105 secret_prefix = "secret:" # noqa: S105
if value.startswith(secret_prefix): if value.startswith(secret_prefix):
key = value.removeprefix(secret_prefix) key = value.removeprefix(secret_prefix)
# TODO replace with call to secret store value = SecretService().get_secret(key)
value = key
return value return value
@staticmethod @staticmethod