Skip to content

[WEB-10185] fix: upload workspace exports as private objects - #10314

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10185-export-private-object
Nov 16, 2026
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10185-export-private-object

Conversation

@pablohashescobar

Copy link
Copy Markdown
Member

Description

The workspace export task uploaded the zip with a public-read ACL 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.

  • The upload no longer sets an ACL (the plain S3 branch never did).
  • The object key uses the full token.

Readers checked: the expiry task deletes by the stored ExporterHistory.key, and the views and web UI only use the stored url. Nothing rebuilds the old key form.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

  • New plane/tests/unit/bg_tasks/test_export_task_upload.py with 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.
  • Not verified against a real MinIO. Suggested: run a workspace export and download it from the emailed or listed link.

References

  • WEB-10185

Created with Claude Code

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.
Copilot AI balanced review requested due to automatic review settings November 15, 2026 23:13
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2c10095d-2fdf-42b6-996a-d8defd319e65
Commits

Reviewing files that changed from the base of the PR and between 290383d and 038c545.

Files selected for processing: 2

  • apps/api/plane/bgtasks/export_task.py
  • apps/api/plane/tests/unit/bg_tasks/test_export_task_upload.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@makeplane

makeplane Bot commented Nov 15, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

@pablohashescobar pablohashescobar changed the title [WEB-10185] fix(security): upload workspace exports as private objects [WEB-10185] fix: upload workspace exports as private objects Nov 16, 2026

@sriramveeraghanta sriramveeraghanta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. SigV4 presigned URLs still work for private objects. Note: MinIO ignores object ACLs, so there the real gain is the unguessable key.

@sriramveeraghanta
sriramveeraghanta merged commit da9c9de into preview Nov 16, 2026
19 of 20 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/web-10185-export-private-object branch November 16, 2026 20:24
sriramveeraghanta pushed a commit that referenced this pull request Nov 16, 2026
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.
Pawel-Kranzberg pushed a commit to klazwi/pi-plane that referenced this pull request Nov 18, 2026
…ne#10314)

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.

(cherry picked from commit 038db35)
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.

3 participants