fix(trigger): clear subscription_id in trigger plugin processing

- Updated the `AppDslService` to clear the `subscription_id` when processing nodes of type `TRIGGER_PLUGIN`. This change ensures that sensitive subscription data is not retained unnecessarily, enhancing data security during workflow execution.
This commit is contained in:
Harry 2025-10-13 18:42:54 +08:00
parent 902737b262
commit e0f1b03cf0
1 changed files with 3 additions and 0 deletions

View File

@ -607,6 +607,9 @@ class AppDslService:
# clear the webhook_url
node_data["webhook_url"] = ""
node_data["webhook_debug_url"] = ""
if data_type == NodeType.TRIGGER_PLUGIN.value:
# clear the subscription_id
node_data["subscription_id"] = ""
export_data["workflow"] = workflow_dict
dependencies = cls._extract_dependencies_from_workflow(workflow)