Skip to content

Don't sign GET or HEAD requests - #2523

Closed
lukehutch wants to merge 3 commits into
serverpod:mainfrom
lukehutch:no-sign-storage-reqs
Closed

lukehutch wants to merge 3 commits into
serverpod:mainfrom
lukehutch:no-sign-storage-reqs

Conversation

@lukehutch

Copy link
Copy Markdown
Contributor

Don't sign GET or HEAD requests to GCP Storage. Fixes #2517.

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

@vlidholt

vlidholt commented Jul 24, 2024 •

Copy link
Copy Markdown
Collaborator

I will check if this really is broken, as we have a client that I know for sure is currently using this function in production on GCP. I tried it out a few months ago and then everything was working correctly.

This PR removes a layer of security and will not work with the private file storage. The private file storage allows users to upload files to a bucket that is only accessible from Serverpod and not exposed publicly on the web.

@lukehutch

Copy link
Copy Markdown
Contributor Author

Right, and obviously the signing needs to work or files cannot be deleted.

It's definitely broken on my deployment. What could break in the signing process?

@vlidholt

Copy link
Copy Markdown
Collaborator

@lukehutch, are you sure you are using the right keys in your passwords file?

@lukehutch

Copy link
Copy Markdown
Contributor Author

@vlidholt Yes, as I said in #2517:

I verified my HMACAccessKeyId and HMACSecretKey are correct. I even re-generated these, replaced them in passwords.yaml, updated the GitHub secrets, re-deployed my server, and yet this didn't fix the problem.

@marcelomendoncasoares

Copy link
Copy Markdown
Collaborator

Closing now that the issue is solved with the refactor of the storage packages.

@github-actions github-actions Bot locked and limited conversation to collaborators Apr 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verifyDirectFileUpload always returns false even when upload succeeds

3 participants