mirror of https://github.com/langgenius/dify.git
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:
parent
902737b262
commit
e0f1b03cf0
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue