Use secret store
This commit is contained in:
parent
1f3114eabb
commit
15cdd6eb09
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue