Repository navigation
feat: read-only remote mounts (SharePoint / Google Drive), port of #17 to v1.11.0 - #21
Merged
Merged
Conversation
…supplied folders (port of #17 to v1.11.0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The release train ships code-interpreter from
aproorg/v1.11.0. #17 (read-only remote mounts) is only onapro-deploy, so a train run would remove the Drive/SharePoint folders from vitinn's sandbox. This ports #17 onto v1.11.0.What was ported
origin/aproorg/v1.11.0(d7871b5), cherry-picked from 369337f.api/src/api/v2.tsandapi/src/index.tsauto-merged), with no hand edits. Nothing from feat: read-only remote mounts (SharePoint / Google Drive) for caller-supplied folders #17 is missing.Tests
tsc --noEmit -p servicereports 8 errors both with feat: read-only remote mounts (SharePoint / Google Drive) for caller-supplied folders #17 and on the v1.11.0 baseline. The lists are identical except that the egress-grant.ts TS2352 moved from line 443 to 448. The api package has no typecheck script.api/src/remote-mounts.test.ts:848("the walk cap is one budget across all trees") creates 24,000 directories under bun's default 5s timeout. It failed once underniceand passed on reruns. It is a test-speed timeout, not a code defect.Security review: PASS (high confidence)
getJob, the bridge backend (refused bygateRemoteMounts) and the LibreOffice shim..skip,.todo,.onlyor commented-out expects. Nothing Fatal or Significant found.Callers that never send remote_mounts (LibreChat) see no change.
🤖 Generated with Claude Code
Jail policy check
remote_mountsadds read-write bind mounts for the mount trees (and a read-only hook dir) throughrenderJobConfigOverlay(extraBindsinapi/src/nsjail.ts). Only the per-job bind overlay changed; no seccomp, syscall, clone or rlimit lines, andapi/config/sandbox.cfgis untouched.scripts/apro-policy-unchanged.sh c7bf37d69 c62becbrun locally with bun 1.4.4: "seccomp policy identical to c7bf37d". The rendered policy still matches upstream.Per
docs/apro-libreoffice-in-jail.md("When it breaks"), the second ref in.github/workflows/apro-soffice.ymlmoves fromc4ba504cctoc62becb(the remote-mounts commit) in this PR.