WeKnora/internal
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
..
agent fix(data-analysis): load knowledge files via presigned URLs 2026-02-10 11:44:25 +08:00
application feat(security): implement path and filename validation utilities 2026-03-02 21:21:49 +08:00
common feat: add organization management features 2026-02-09 11:40:25 +08:00
config feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
container feat: support milvus vectordb for knowledge retrieve 2026-02-27 09:51:17 +08:00
database feat: 支持数据库迁移脏状态自动恢复和Neo4j连接重试机制 2025-12-08 19:38:16 +08:00
errors feat: Add agent configuration and cleanup scripts for database migrations 2025-11-05 23:18:44 +08:00
event feat: Implement parallel search functionality combining chunk and entity searches, enhancing retrieval efficiency and result accuracy 2025-12-03 17:45:21 +08:00
handler fix(swagger): resolve interface documentation generation error and regenerate docs 2026-02-27 09:52:07 +08:00
logger feat: add organization management features 2026-02-09 11:40:25 +08:00
mcp fix: MCP Client connection state not marked as closed after connection loss in SSE transport type 2026-02-02 10:42:19 +08:00
middleware feat: add organization management features 2026-02-09 11:40:25 +08:00
models fix: handle thinking content in Ollama chat responses 2026-02-25 11:11:24 +08:00
router refactor: Unify /url route and file URL handling 2026-02-26 19:46:08 +08:00
runtime init commit 2025-08-05 15:08:07 +08:00
sandbox feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
searchutil Optimize Jaccard function for set comparisons 2026-02-05 20:05:55 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing init commit 2025-08-05 15:08:07 +08:00
types fix(swagger): resolve interface documentation generation error and regenerate docs 2026-02-27 09:52:07 +08:00
utils feat(security): implement path and filename validation utilities 2026-03-02 21:21:49 +08:00