[PR #458] [MERGED] feat(plugin): implement unauthorized Langgenius plugin blocking #516

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/458
Author: @Yeuoly
Created: 9/23/2025
Status: Merged
Merged: 9/23/2025
Merged by: @Mairuis

Base: mainHead: fix/blocking-anthorized-langgenius


📝 Commits (3)

  • dfe50bf feat(plugin): implement unauthorized Langgenius plugin blocking
  • 0508f6b fix: typo
  • 1bd881f refactor(plugin): update Langgenius plugin signature enforcement

📊 Changes

7 files changed (+268 additions, -1 deletions)

View changed files

📝 .env.example (+5 -0)
internal/service/exec.go (+10 -0)
📝 internal/service/install_plugin.go (+7 -1)
📝 internal/service/plugin_decoder.go (+17 -0)
internal/service/unauthorized_langgenius.go (+23 -0)
internal/service/unauthorized_langgenius_test.go (+203 -0)
📝 internal/types/app/config.go (+3 -0)

📄 Description

  • Added configuration option to disable installation of plugins falsely claiming Langgenius authorship.
  • Introduced new error handling for unauthorized Langgenius claims during plugin installation.
  • Implemented tests to validate unauthorized Langgenius detection logic.
  • Updated environment configuration and service files to support the new feature.

Description

Please provide a brief description of the changes made in this pull request.
Please also include the issue number if this is related to an issue using the format Fixes #123 or Closes #123.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 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/458 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 9/23/2025 **Status:** ✅ Merged **Merged:** 9/23/2025 **Merged by:** [@Mairuis](https://github.com/Mairuis) **Base:** `main` ← **Head:** `fix/blocking-anthorized-langgenius` --- ### 📝 Commits (3) - [`dfe50bf`](https://github.com/langgenius/dify-plugin-daemon/commit/dfe50bf2beae1844686731b3d4c8c9a8432a77fb) feat(plugin): implement unauthorized Langgenius plugin blocking - [`0508f6b`](https://github.com/langgenius/dify-plugin-daemon/commit/0508f6b6692c1f77f4844a81e2075929e2063c81) fix: typo - [`1bd881f`](https://github.com/langgenius/dify-plugin-daemon/commit/1bd881fc3d9d362a8fd70a161ee7a022d5966d64) refactor(plugin): update Langgenius plugin signature enforcement ### 📊 Changes **7 files changed** (+268 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+5 -0) ➕ `internal/service/exec.go` (+10 -0) 📝 `internal/service/install_plugin.go` (+7 -1) 📝 `internal/service/plugin_decoder.go` (+17 -0) ➕ `internal/service/unauthorized_langgenius.go` (+23 -0) ➕ `internal/service/unauthorized_langgenius_test.go` (+203 -0) 📝 `internal/types/app/config.go` (+3 -0) </details> ### 📄 Description - Added configuration option to disable installation of plugins falsely claiming Langgenius authorship. - Introduced new error handling for unauthorized Langgenius claims during plugin installation. - Implemented tests to validate unauthorized Langgenius detection logic. - Updated environment configuration and service files to support the new feature. ## Description Please provide a brief description of the changes made in this pull request. Please also include the issue number if this is related to an issue using the format `Fixes #123` or `Closes #123`. ## Type of Change - [x] Bug fix - [x] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [x] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [ ] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <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:16:12 -05:00
yindo closed this issue 2026-02-16 01:16:12 -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#516