[PR #285] [MERGED] feat: add plugin reinstallation functionality and admin API support #424

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

📋 Pull Request Information

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

Base: mainHead: feat/reinstall-serverless-runtime


📝 Commits (2)

  • df49729 feat: add plugin reinstallation functionality and admin API support
  • 9494bcb refactor: update plugin reinstallation endpoint and improve unauthorized response

📊 Changes

9 files changed (+231 additions, -28 deletions)

View changed files

📝 internal/core/plugin_manager/install_to_serverless.go (+119 -1)
📝 internal/core/plugin_manager/serverless.go (+7 -0)
📝 internal/core/plugin_manager/serverless_connector/launch.go (+24 -21)
📝 internal/server/constants/constants.go (+3 -2)
📝 internal/server/controllers/plugins.go (+14 -4)
📝 internal/server/http_server.go (+15 -0)
📝 internal/server/middleware.go (+11 -0)
📝 internal/service/install_plugin.go (+33 -0)
📝 internal/types/app/config.go (+5 -0)

📄 Description

  • Implemented ReinstallToAWSFromPkg method to allow reinstallation of plugins on AWS Lambda, updating function URL and name.
  • Added clearServerlessRuntimeCache method to manage serverless runtime cache.
  • Enhanced LaunchPlugin to support an ignoreIdempotent flag for forced reinstallation.
  • Introduced admin API endpoints for plugin reinstallation, secured with an API key validation middleware.
  • Updated configuration to include AdminApiEnabled and AdminApiKey settings.

🔄 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/285 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/15/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/reinstall-serverless-runtime` --- ### 📝 Commits (2) - [`df49729`](https://github.com/langgenius/dify-plugin-daemon/commit/df49729666b552b24a7cb022bd6685e448b6befe) feat: add plugin reinstallation functionality and admin API support - [`9494bcb`](https://github.com/langgenius/dify-plugin-daemon/commit/9494bcba4f117cf2b23f32907a68e5933698c05f) refactor: update plugin reinstallation endpoint and improve unauthorized response ### 📊 Changes **9 files changed** (+231 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/install_to_serverless.go` (+119 -1) 📝 `internal/core/plugin_manager/serverless.go` (+7 -0) 📝 `internal/core/plugin_manager/serverless_connector/launch.go` (+24 -21) 📝 `internal/server/constants/constants.go` (+3 -2) 📝 `internal/server/controllers/plugins.go` (+14 -4) 📝 `internal/server/http_server.go` (+15 -0) 📝 `internal/server/middleware.go` (+11 -0) 📝 `internal/service/install_plugin.go` (+33 -0) 📝 `internal/types/app/config.go` (+5 -0) </details> ### 📄 Description - Implemented ReinstallToAWSFromPkg method to allow reinstallation of plugins on AWS Lambda, updating function URL and name. - Added clearServerlessRuntimeCache method to manage serverless runtime cache. - Enhanced LaunchPlugin to support an ignoreIdempotent flag for forced reinstallation. - Introduced admin API endpoints for plugin reinstallation, secured with an API key validation middleware. - Updated configuration to include AdminApiEnabled and AdminApiKey settings. --- <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:55 -05:00
yindo closed this issue 2026-02-16 01:15:55 -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#424