Skip to content

fix(core): confine LocalFileSystem paths - #148

Open
wutongyuonce wants to merge 1 commit into
deer-flow:mainfrom
wutongyuonce:codex/local-filesystem-confinement-pr
Open

fix(core): confine LocalFileSystem paths#148
wutongyuonce wants to merge 1 commit into
deer-flow:mainfrom
wutongyuonce:codex/local-filesystem-confinement-pr

Conversation

@wutongyuonce

Copy link
Copy Markdown

Summary

  • reject absolute paths passed to workspace-scoped LocalFileSystem APIs
  • reject symlink components so workspace operations cannot escape the storage root
  • add regression tests for both cases

Validation

  • bun test packages/core/tests/server/storage/local/file-system.test.ts
  • bun x tsc --noEmit -p packages/core/tsconfig.json
  • targeted ESLint

This PR is intentionally based on main and does not include the separate Langfuse changes.

@wutongyuonce

Copy link
Copy Markdown
Author

Addresses #149. This PR contains both fixes: rejecting absolute workspace paths and rejecting symlink components that could escape the storage root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant