Skip to content

Commit

Permalink
feat: add workspace secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Apr 10, 2024
1 parent 2fb2249 commit b0d74d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/vault/azure_vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,13 @@ func (a *AzureVaultSecretHandler) SetSecret(ctx context.Context, secretName stri

return res.ID.Name(), nil
}

func (a *AzureVaultSecretHandler) DeleteSecret(ctx context.Context, secretId string) error {
_, err := a.client.DeleteSecret(ctx, secretId, nil)
if err != nil {
a.logger.Error("failed to delete secret", zap.Error(err))
return err
}

return nil
}

0 comments on commit b0d74d8

Please sign in to comment.