Commit Graph

53 Commits

Author SHA1 Message Date
Yeuoly b85253f773 feat(plugin): implement unauthorized Langgenius plugin blocking (#458)
* 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.
2025-09-24 11:28:41 +08:00
Yeuoly dfc9622e91 feat(db): enhance database configuration with charset and extras support (#347)
- Updated .env.example to include DB_EXTRAS and DB_CHARSET variables.
- Refactored InitPluginDB functions for PostgreSQL and MySQL to accept a configuration struct, allowing for more flexible database connection settings.
- Adjusted connection pool settings to utilize new configuration options for charset and extras.

This change improves the configurability of database connections and prepares the codebase for future enhancements.
2025-06-18 12:08:56 +08:00
Byron.wang 18e91bbb37 fix s3 client path style not used (#344)
* bump cloud-kit version to fix #343

* change env name USE_AWS_S3 to S3_USE_AWS

* update s3_use_aws default value to true

* update readme about the upgrade notice
2025-06-13 15:10:21 +08:00
Byron.wang debb3744c0 add USE_AWS_S3 args avoid ambiguity. (#340) 2025-06-11 14:32:53 +08:00
Byron.wang 1c9e28bc75 Feat: Replace the internal/oss module with dify-cloud-kit (#317)
* replace internal oss with dify-cloud-kit

* remove validate

* fix tests

* fix tests
2025-05-30 16:44:59 +08:00
Zhi 6b112bc8b5 feat(redis): Add support for Redis Sentinel mode (#276)
* feat(redis): Add support for Redis Sentinel mode

Added support for Redis Sentinel mode to the Redis client, enabling automatic discovery and connection to the primary node through Sentinel. Updated relevant configuration files and initialization logic to support Sentinel mode configuration and connection.

* add lost RedisUser.
2025-05-20 14:23:01 +08:00
bravomark 7492a3d8cd feat: Support Alibaba Cloud OSS (#261)
* feat: support aliyun OSS

* feat: support aliyun OSS
2025-05-07 16:46:18 +08:00
Good Wood 977665e73b feat: add read & write timeout config (#259)
* feat: add read & write timeout config

* refactor: update Dify invocation configuration to use structured payload

- Changed the Dify invocation daemon to accept a structured payload for initialization, improving clarity and maintainability.
- Updated related configuration variables in the .env.example file to reflect the new naming convention for backwards invocation timeouts.
- Adjusted tests and plugin manager to accommodate the new payload structure.

---------

Co-authored-by: Yeuoly <admin@srmxy.cn>
2025-05-06 13:08:02 +08:00
quicksand 2858ac210c optimize (db): add db pool config (#251) 2025-04-30 15:36:35 +08:00
Yeuoly 61bd7d9c8a feat: add configurable stdio buffer sizes for plugins (#256)
- Introduced new configuration options for plugin stdio buffer sizes in the .env.example file.
- Updated the PluginManager and LocalPluginRuntime to utilize these new buffer size settings.
- Enhanced the stdioHolder to accept buffer size configurations, improving plugin output handling.
- Modified related tests to accommodate the new stdioHolder configuration structure.
2025-04-30 15:28:34 +08:00
非法操作 618609af3a add uv path config (#187)
* add uv path config

* write uv_path to env during docker build process

* Revert "write uv_path to env during docker build process"

This reverts commit c9501411aa.

* add UVPATH
2025-04-10 15:16:22 +08:00
Yeuoly 0a556dfd54 Merge pull request #172 from te-chan/feat/azure-blob-storage
feat(storage): add azure blob storage support
2025-04-08 14:41:48 +09:00
Yeuoly 5160e0848d Merge pull request #122 from ke-feng/ssl
Specifies the SSL mode for the database connection
2025-04-08 14:32:56 +09:00
te-chan 05e03e5de3 fix: incorrect environment variable name 2025-04-07 18:14:11 +09:00
te-chan 2f84673539 feat: Add Azure blob storage connectivity 2025-04-03 21:17:47 +09:00
kurokobo 6f75bcca43 feat: verify plugin with public keys specified in environment variable in addition to official one 2025-04-02 13:48:04 +00:00
Yeuoly b5fefd1a99 Merge pull request #152 from quicksandznzn/add-redis-db-config
optimize: add redis db config
2025-03-30 21:10:27 +09:00
quicksandzn b50a0c4403 optimize: add redis db config 2025-03-27 14:48:59 +08:00
akisaya a6e73807f1 remove S3_BUCKET_NAME in env.example & fix some logs 2025-03-22 18:42:33 +08:00
akisaya 038f152769 make pathStyle param configurable when using s3 compatible storage 2025-03-22 16:59:15 +08:00
Yeuoly ef41d22df4 Merge pull request #97 from quicksandznzn/main
feat: oss support tencent cos
2025-03-20 15:56:48 +08:00
kefeng-ai 597f40a778 Specifies the SSL mode for the database connection 2025-03-19 20:37:26 +08:00
yuhang2.zhang 261886167b update: Add Support for Custom S3 Endpoints to Enhance Compatibility with S3-Compatible Services. 2025-03-18 17:20:47 +08:00
quicksandzn d3db63ea68 feat: oss support tencent cos 2025-03-12 11:25:38 +08:00
Yeuoly 1d3342e730 fix: enhance env.example (#65) 2025-03-06 16:36:55 +08:00
非法操作 07a53a4fd7 change variable name 2025-01-14 09:16:18 +08:00
非法操作 d44eb84e5a Merge remote-tracking branch 'myfork/p3' into p2 2025-01-14 09:11:34 +08:00
非法操作 468c0743db use environment variable config python init time 2025-01-13 17:29:56 +08:00
非法操作 7b47d8b79a add proxy for runtime 2025-01-13 16:10:13 +08:00
Yeuoly afa910ed78 add PPROF_ENABLED and FORCE_VERIFYING_SIGNATURE to .env.example 2025-01-08 17:12:07 +08:00
Yeuoly 06ab89550a feat: support detailed logs 2024-11-26 23:42:35 +08:00
Yeuoly 28f4e82eb2 chore: remove unnecessary variables in .env.example 2024-11-13 00:44:24 +08:00
Yeuoly 89714978e8 fix: switch persistence layer to aws s3 2024-11-12 23:42:24 +08:00
Yeuoly aec7ef024a fix: incorrect persistence storage path 2024-11-08 19:31:32 +08:00
Yeuoly 84703ef1b4 refactor: uni storage 2024-11-08 19:17:19 +08:00
Yeuoly 3a5e1c1d66 fix: rename redis env 2024-10-23 18:23:32 +08:00
Yeuoly a55f6f507f refactor: install plugin from local 2024-10-18 20:29:02 +08:00
Yeuoly 140602667c fix: missing file extension 2024-09-20 14:28:46 +08:00
Yeuoly 755f3f1bb5 feat: support inner key 2024-09-20 13:32:46 +08:00
Yeuoly 1c2d5e6bca feat: support plugin assets 2024-09-04 20:35:56 +08:00
Yeuoly b338eb77ea feat: support persistence 2024-08-28 13:45:58 +08:00
Yeuoly 9715b2fffe chore: remove aws config 2024-08-28 12:56:40 +08:00
Yeuoly 60b8f52dc7 fix: add envs 2024-08-28 12:51:28 +08:00
Yeuoly c714d99250 refactor: load plugins 2024-08-15 19:02:07 +08:00
Yeuoly 86733a5837 chore: remove lambda 2024-08-12 16:16:08 +08:00
Yeuoly ef091e4fed feat: redirects webhooks 2024-08-05 18:34:50 +08:00
Yeuoly f6d83da22f feat: call dify 2024-07-08 22:35:37 +08:00
Yeuoly a47e36c310 refactor: invoke dify 2024-07-08 18:24:07 +08:00
Yeuoly e426996478 feat: http requests 2024-07-06 00:11:56 +08:00
Yeuoly 1af5a2ec11 feat: lifetime manager 2024-07-05 22:55:24 +08:00