mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-22 01:35:24 -04:00
b85253f773
* feat(plugin): implement unauthorized Langgenius plugin blocking - 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. * fix: typo * refactor(plugin): update Langgenius plugin signature enforcement - Renamed configuration option from DISABLE_UNAUTHORIZED_LANGGENIUS_PACKAGE to ENFORCE_LANGGENIUS_PLUGIN_SIGNATURES for clarity. - Updated error messages and logic in the plugin installation process to reflect the new configuration. - Enhanced tests to validate the behavior of unauthorized Langgenius plugin detection with the new enforcement setting.
11 lines
294 B
Go
11 lines
294 B
Go
package service
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrUnauthorizedLanggenius = errors.New(`
|
|
plugin installation blocked: this plugin claims to be from Langgenius but lacks official signature verification.
|
|
Set ENFORCE_LANGGENIUS_PLUGIN_SIGNATURES=false to allow installation (not recommended)`,
|
|
)
|
|
)
|