You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
All Google Cloud Storage upload descriptions create publicly accessible files/uploads #4588
area: storageIssues related to file storage.bugSomething isn't workingin triageIssues under investigation before priority assignment. Can be closed if pending info for too long.
The createDirectFileUploadDescription implementation for Google Cloud Storage does not pass the public/private cloud storage configuration flag to GCPS3Uploader when generating upload descriptions, resulting in all upload descriptions being generated as public. Files subsequently uploaded with this description are uploaded with the Cloud Stoarge acl set to public-read.
This behaviour is not expected and represents a security risk if access to the files is not further restricted by other Google Cloud permissions/ACLs.
This is resolved by including public when calling GCPS3Uploader.getDirectUploadDescription(...). PR submitted.
To reproduce
Create a Serverpod Project
Add a GoogleCloudStorageCloudStorage provider to the server with public set to false
Generate an upload description by calling session.storage.createDirectFileUploadDescription(...) using the storage set up prior
Note the acl key is set to public-read
Upload a file from the client utilising this upload description
Note the file being publicly accessible
Expected behavior
Upload description acl set to private
Files uploaded with the description are not publicly accessible
Library version
Serverpod 3.2.1 however present since initial commit in March 2023
Platform information
N/A
Additional context
No response
How experienced are you with this library?
Intermediate - Familiar with the basics or have used it in a few projects
area: storageIssues related to file storage.bugSomething isn't workingin triageIssues under investigation before priority assignment. Can be closed if pending info for too long.
Activity
nielsenko commentedon Feb 4, 2026
Will be addressed with #4675