[PR #311] [MERGED] fix(signature): signature dose not work as expected, if upload new pkg to old dify #438

Closed
opened 2026-02-16 01:15:58 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/311
Author: @Yeuoly
Created: 5/26/2025
Status: Merged
Merged: 5/26/2025
Merged by: @Yeuoly

Base: mainHead: fix/signature


📝 Commits (1)

  • ee0fa02 fix: signature dose not work as expected, if upload new pkg to old dify

📊 Changes

9 files changed (+94 additions, -37 deletions)

View changed files

📝 cmd/commandline/signature/signature_test.go (+24 -1)
📝 internal/service/plugin_decoder.go (+2 -4)
pkg/plugin_packager/consts/verification.go (+5 -0)
📝 pkg/plugin_packager/decoder/decoder.go (+1 -1)
📝 pkg/plugin_packager/decoder/entities.go (+6 -0)
📝 pkg/plugin_packager/decoder/fs.go (+1 -1)
📝 pkg/plugin_packager/decoder/verifier.go (+0 -14)
📝 pkg/plugin_packager/decoder/zip.go (+27 -7)
📝 pkg/plugin_packager/signer/withkey/sign_with_key.go (+28 -9)

📄 Description

  • Updated the method in the interface to remove the parameter, simplifying its usage.
  • Introduced a new function to provide a default verification structure.
  • Added a file to store verification data, improving the plugin signing process.
  • Enhanced tests in to validate the verification process, ensuring proper handling of success and failure scenarios.
  • Refactored related code to accommodate the new verification structure and improve overall maintainability.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/311 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/26/2025 **Status:** ✅ Merged **Merged:** 5/26/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/signature` --- ### 📝 Commits (1) - [`ee0fa02`](https://github.com/langgenius/dify-plugin-daemon/commit/ee0fa023e5c7c46d912261b381d27e1f909a5c72) fix: signature dose not work as expected, if upload new pkg to old dify ### 📊 Changes **9 files changed** (+94 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `cmd/commandline/signature/signature_test.go` (+24 -1) 📝 `internal/service/plugin_decoder.go` (+2 -4) ➕ `pkg/plugin_packager/consts/verification.go` (+5 -0) 📝 `pkg/plugin_packager/decoder/decoder.go` (+1 -1) 📝 `pkg/plugin_packager/decoder/entities.go` (+6 -0) 📝 `pkg/plugin_packager/decoder/fs.go` (+1 -1) 📝 `pkg/plugin_packager/decoder/verifier.go` (+0 -14) 📝 `pkg/plugin_packager/decoder/zip.go` (+27 -7) 📝 `pkg/plugin_packager/signer/withkey/sign_with_key.go` (+28 -9) </details> ### 📄 Description - Updated the method in the interface to remove the parameter, simplifying its usage. - Introduced a new function to provide a default verification structure. - Added a file to store verification data, improving the plugin signing process. - Enhanced tests in to validate the verification process, ensuring proper handling of success and failure scenarios. - Refactored related code to accommodate the new verification structure and improve overall maintainability. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:58 -05:00
yindo closed this issue 2026-02-16 01:15:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#438