Repository navigation
[WEB-10185] fix: upload workspace exports as private objects - #10314
Conversation
The export archive is only meant to be fetched through its presigned URL, so it is no longer uploaded with a public-read ACL, and its object key now carries the full export token.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
sriramveeraghanta
left a comment
There was a problem hiding this comment.
LGTM. SigV4 presigned URLs still work for private objects. Note: MinIO ignores object ACLs, so there the real gain is the unguessable key.
The export archive is only meant to be fetched through its presigned URL, so it is no longer uploaded with a public-read ACL, and its object key now carries the full export token.
Description
The workspace export task uploaded the zip with a
public-readACL on the MinIO branch, and named it with only the first six characters of the export token. Access is meant to go through the presigned URL the task generates right after.Readers checked: the expiry task deletes by the stored
ExporterHistory.key, and the views and web UI only use the storedurl. Nothing rebuilds the old key form.Type of Change
Screenshots and Media (if applicable)
Test Scenarios
plane/tests/unit/bg_tasks/test_export_task_upload.pywith boto3 mocked: the upload carries no ACL and the key contains the full token, on both storage branches. 2 passed; both fail without the fix.References
Created with Claude Code