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
Taeyoung Park
5d83258371
Add optional Redis username authentication ( #218 )
...
* You can include username for Redis Auth
* Redis auth with username - test code update
* fix: tests
---------
Co-authored-by: Yeuoly <admin@srmxy.cn >
2025-04-25 20:42:14 +08:00
Yeuoly
3ab625d8d3
fix(persistence): correct path traversal checks in tests and implementation ( #205 )
...
* fix(persistence): implement path traversal checks
- Updated test cases to expect no errors for valid paths with double slashes and mixed traversal.
- Enhanced the `checkPathTraversal` method to clean the key using `path.Clean` to prevent path traversal vulnerabilities.
- Removed redundant checks in the `getFilePath`, `Save`, `Load`, and `Delete` methods, simplifying the code while maintaining security.
* refactor(tests): simplify persistence tests using testify assertions
- Replaced manual error handling with testify's assert functions for cleaner test code.
- Improved readability and maintainability of test cases by using assertions for error checks and value comparisons.
- Ensured that all tests continue to validate the expected behavior of the persistence layer.
2025-04-15 14:27:14 +08:00
非法操作
e9cd678fad
add exist for self.session.storage ( #195 )
2025-04-11 17:49:30 +08:00
非法操作
25e013618a
fix self.session.delete alway success ( #12 )
...
* fix self.session.delete alway success
* fix save data always failed
* redis delete response deleted item num
* add deleted num to invocate response
2025-04-11 13:32:52 +08: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
6e32f5c505
optimize: tests
2025-03-27 14:55:37 +08:00
He Wang
19c1009fb4
test plugin server with mysql
2025-03-27 11:54:27 +08:00
Yeuoly
177e2c5c2e
Fix/change default db ( #78 )
...
* fix: use default database configuration parameter in database initialization
* fix: test
2025-03-09 10:19:46 +08:00
Masashi Tomooka
c6c882e86a
support REDIS_USE_SSL config parameter ( #21 )
...
* support REDIS_USE_SSL config parameter
* fix tests
* add tests
2025-01-30 00:32:38 +08:00
Yeuoly
7b145b750a
optimize: error messages
2024-11-29 21:55:57 +08:00
Yeuoly
97530f2301
fix: persistence tests
2024-11-19 15:22:53 +08:00
Yeuoly
c65a68c15e
fix: increase persistence key to 256
2024-11-19 15:18:48 +08:00
Yeuoly
26fd94ebcd
refactor: convert snakecase to camelcase
2024-11-12 21:24:41 +08:00
Yeuoly
a861ef7b7d
fix: tests for persistence storage
2024-11-08 19:42:06 +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
c3ec7d010a
feat: support limitations of persistence storage
2024-11-05 19:05:49 +08:00
Yeuoly
dc402cd948
refactor: plugin id/identity and plugin installation
2024-09-03 22:38:19 +08:00
Yeuoly
a2c7667fa2
fix: delete cache when update storage
2024-08-29 01:27:35 +08:00
Yeuoly
046875513e
refactor: env
2024-08-28 23:41:37 +08:00
Yeuoly
e139f38c1f
feat: service support persistence
2024-08-28 23:37:55 +08:00
Yeuoly
4ea1f0b6a2
feat: persistence
2024-08-28 23:06:28 +08:00
Yeuoly
873549528e
feat: implement persistence
2024-08-28 17:55:51 +08:00
Yeuoly
b5cc7b7080
add panic
2024-08-28 13:48:50 +08:00
Yeuoly
b338eb77ea
feat: support persistence
2024-08-28 13:45:58 +08:00