WeKnora/internal/router
wizardchen bb202a203a feat: implement tenant validation for file access and enhance related tests
This commit introduces a new validation mechanism to ensure that file access paths include the correct tenant segment, preventing cross-tenant access. The `ValidateStoragePathTenant` function has been added to enforce this rule, and the `serveFiles` function has been updated to return a forbidden status for invalid paths. Additionally, new tests have been added to verify the behavior of the file service under various tenant scenarios, ensuring robust handling of file access permissions.
2026-05-29 13:47:32 +08:00
..
rbac.go feat(system-admin): implement bootstrap for system admin promotion and enhance system settings management 2026-05-26 21:13:56 +08:00
router.go feat: implement tenant validation for file access and enhance related tests 2026-05-29 13:47:32 +08:00
router_files_test.go feat: implement tenant validation for file access and enhance related tests 2026-05-29 13:47:32 +08:00
router_presigned_test.go fix(im): make presigned URL flow diagnosable end-to-end 2026-05-28 08:03:57 +08:00
sync_task.go fix(wiki): Lite ingest lock, failed-op requeue, sync task retry parity 2026-04-28 18:27:00 +08:00
task.go fix(knowledge): close root span on terminal state, enrich stage metadata 2026-05-28 15:14:45 +08:00
task_inspector.go feat: add knowledge parse cancellation with finalizing post-process state 2026-05-28 20:16:02 +08:00