This commit is contained in:
mike cullerton 2022-09-28 14:48:53 -04:00
parent c0512062b5
commit 9ffc6a5737
2 changed files with 2 additions and 2 deletions

View File

@ -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)\

View File

@ -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