Skip to content

All Google Cloud Storage upload descriptions create publicly accessible files/uploads #4588

Closed

Description

@natdab

Describe the bug

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 GoogleCloudStorage CloudStorage 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

Are you interested in working on a PR for this?

  • I want to work on this

Activity

  1. added
    bug
    on Jan 13, 2026
  2. added
    in triage
    area: storage
    on Jan 15, 2026
  3. nielsenko commented on Feb 4, 2026

    @nielsenko
    Collaborator

    Will be addressed with #4675

  4. moved this from Inbox 📫 to In Progress 🔥 in Serverpod Frameworkson Feb 4, 2026
  5. moved this from In Progress 🔥 to Done 🚀 in Serverpod Frameworkson Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: storagebugin triage

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions