Delete Azure Vault secrets async (#3716)

This commit is contained in:
Stanislav Novosad
2025-10-14 20:25:22 -06:00
committed by GitHub
parent ef3167cb07
commit d6bb3de2c5
5 changed files with 48 additions and 20 deletions

View File

@@ -205,6 +205,7 @@ async def create_credential(
include_in_schema=False,
)
async def delete_credential(
background_tasks: BackgroundTasks,
credential_id: str = Path(
...,
description="The unique identifier of the credential to delete",
@@ -226,6 +227,9 @@ async def delete_credential(
await credential_service.delete_credential(credential)
# Schedule background cleanup if the service implements it
background_tasks.add_task(credential_service.post_delete_credential_item, credential.item_id)
return None