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. |
||
|---|---|---|
| .. | ||
| rbac.go | ||
| router.go | ||
| router_files_test.go | ||
| router_presigned_test.go | ||
| sync_task.go | ||
| task.go | ||
| task_inspector.go | ||