Repository navigation
Studio: Use file-scoped links for chat downloads - #19846
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5ad49c816d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Assert at the route that a download link is refused for another file, another session, an expired or tampered expiry, and a forged signature; that minting a missing file is a 404 and the mint route requires a session; that each account's link serves only its own sandbox file; and that a cancelled native save chooser mints no link.
|
Pushed a test-only follow-up (dc1c391) after a local security review. No production behavior changed.
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc1c3910c8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Match the gallery and library link mints: a caller admitted by keyless API access gets a 403 instead of a file link that would stay valid after keyless access is turned off.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bbed571ad6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A link redeems as the bare account, so a link minted with an API key lost the key's sandbox restrictions and could resolve a project's linked working folder the key may not read. Refuse API-key and keyless callers with a 403; they can download with their bearer header.
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Review wrap-up for 0d80c48. Codex: Didn't find any major issues on 0d80c48a72. CI (staging run on the same head in a fork, because the upstream queue was backed up): every check this PR touches passed: Studio repo tests, Studio install, Backend (Python 3.13), frontend unit tests (Windows), source lint, the Tauri Linux build, and Rust unit tests on macOS and Windows. None of the remaining failures come from this PR:
What changed during review:
Checked end to end through the real auth dependencies:
|
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. The download link is scoped to one session, file and account, expires after 5 minutes, and is minted only for UI sessions. The existing containment checks still run when it is redeemed.
Downloading a generated chat file puts the session credential in the download URL. Browsers can retain that URL in download history, so saving an individual file also leaves a copy of the sign-in credential behind.
Generate a short-lived link for the requested file and use it for the download. In the desktop app, request the link after the user chooses where to save. Both download paths continue to use Studio’s existing file access checks.