WeKnora/internal/application/service
wizardchen 5241dbc39e feat(security): implement path and filename validation utilities
- Added `SafePathUnderBase` to prevent path traversal by ensuring file paths remain within a specified base directory.
- Introduced `SafeFileName` to validate and sanitize file names, disallowing path traversal and empty names.
- Implemented `SafeObjectKey` to validate object keys for storage, ensuring they do not contain path traversal sequences.
- Updated file handling methods in `cos.go`, `local.go`, and `minio.go` to utilize these new validation utilities, enhancing security against invalid file paths and names.

This update improves the robustness of file operations by enforcing strict validation rules, thereby mitigating potential security risks.
2026-03-02 21:21:49 +08:00
..
chat_pipline feat: implement preview of user level memory graph 2026-02-25 14:29:54 +08:00
file feat(security): implement path and filename validation utilities 2026-03-02 21:21:49 +08:00
llmcontext feat: 新增智能体功能模块,支持自定义智能体创建、配置和选择 2025-12-24 10:34:41 +08:00
memory feat: implement preview of user level memory graph 2026-02-25 14:29:54 +08:00
metric refactor: Update function signatures across multiple files to improve readability by adding context parameters and enhancing code structure 2025-11-28 16:17:52 +08:00
retriever perf: 为批量索引添加并发保存优化 2026-01-14 17:21:42 +08:00
web_search feat: add bing search provider 2026-02-02 20:53:22 +08:00
agent_service.go fix(data-analysis): load knowledge files via presigned URLs 2026-02-10 11:44:25 +08:00
agent_share.go feat(api): integrate per-organization resource counts into organization listing 2026-02-09 11:40:25 +08:00
chunk.go feat: add organization management features 2026-02-09 11:40:25 +08:00
custom_agent.go feat(agent): enhance agent sharing and selection features 2026-02-09 11:40:25 +08:00
dataset.go init commit 2025-08-05 15:08:07 +08:00
evaluation.go feat: 使用增强的任务ID生成器替换UUID 2026-01-14 17:09:19 +08:00
extract.go fix(data-analysis): load knowledge files via presigned URLs 2026-02-10 11:44:25 +08:00
graph.go refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability 2025-11-28 16:10:37 +08:00
kbshare.go feat(api): integrate per-organization resource counts into organization listing 2026-02-09 11:40:25 +08:00
knowledge.go refactor: Unify /url route and file URL handling 2026-02-26 19:46:08 +08:00
knowledgebase.go feat(agent): enhance agent sharing and selection features 2026-02-09 11:40:25 +08:00
mcp_service.go fix: 禁用 stdio 传输以防止命令注入风险 2026-01-15 14:49:19 +08:00
message.go feat(input-field): enhance knowledge base selection and UI components 2026-02-09 11:40:25 +08:00
metric_hook.go refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability 2025-11-28 16:10:37 +08:00
model.go feat: add organization management features 2026-02-09 11:40:25 +08:00
organization.go feat(i18n): update localization for knowledge bases and organization features 2026-02-09 11:40:25 +08:00
session.go feat: implement preview of user level memory graph 2026-02-25 14:29:54 +08:00
skill_service.go feat: adapt preloaded skills to smart-reasoning agent 2026-02-04 20:08:49 +08:00
tag.go feat: add organization management features 2026-02-09 11:40:25 +08:00
tenant.go feat: Implement cross-tenant access functionality 2025-12-02 12:17:39 +08:00
user.go feat: add organization management features 2026-02-09 11:40:25 +08:00
web_search.go refactor: web search provider registry pattern 2026-01-20 18:19:44 +08:00
web_search_state.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00