Skip to content

Allow reads from the OS temp directory#259

Merged
plusplusoneplusplus merged 3 commits into
mainfrom
pr/allow-read-temp-dir
Jun 1, 2026
Merged

Allow reads from the OS temp directory#259
plusplusoneplusplus merged 3 commits into
mainfrom
pr/allow-read-temp-dir

Conversation

@plusplusoneplusplus
Copy link
Copy Markdown
Owner

No description provided.

Add os.tmpdir() to the trusted read-only directories so the dashboard
can read transient tool-output files (e.g. copilot-tool-output-*.txt)
without hitting a 403. Update /api/fs/blob tests to use a home-folder
subdir for the untrusted cases and add a temp-dir acceptance test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@plusplusoneplusplus plusplusoneplusplus enabled auto-merge (squash) June 1, 2026 17:19
plusplusoneplusplus and others added 2 commits June 1, 2026 11:38
…ew test

os.tmpdir() is now a trusted read-only directory, so using it as the
'evil' untrusted path in the preview test caused a 200 instead of 403.
Switch to a temp dir under os.homedir() (outside ~/.copilot) which is
genuinely outside all trusted roots.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…-preview test

os.tmpdir() is now a trusted read-only directory, so using it as the
'outside' untrusted path in the image-preview security test caused
a 200 instead of 403. Switch to os.homedir() prefix (outside ~/.copilot)
which is genuinely outside all trusted roots.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@plusplusoneplusplus plusplusoneplusplus merged commit 4e4bf47 into main Jun 1, 2026
64 of 68 checks passed
@plusplusoneplusplus plusplusoneplusplus deleted the pr/allow-read-temp-dir branch June 1, 2026 19:13
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