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
The current cloud storage integration works, but it's not well documented and non-trivial to set up with Google Cloud. Let's patch it up and make play well with GCP and other cloud storage providers other than GCP and AWS.
We currently have integrations for GCP and AWS which lives in the serverpod_cloud_storage_gcp and serverpod_cloud_storage_aws packages. They are virtually the same, as the GCP integration uses the AWS compatibility layer provided by Google Cloud.
New GCP integration
Build a new integration specifically for GCP, which is using Google Cloud's native APIs. There is working code used by Serverpod Cloud, which can be used as a starting point. We can most likely use the very same APIs, but check for another set of keys for accessing the Google APIs. This would keep the implementation completely backwards compatible.
Harmonize the AWS-compatible code
Almost all the code (except configuration) is exactly the same between the old GCP and AWS. We should move the similar code out into its own package (e.g., serverpod_cloud_storage_s3compat). This base package can be used with any S3 compatible service. However, we keep the AWS and GCP packages for backwards compatibility.
Good docs
This is the largest part that is missing. Good documentation for how to set up GCP buckets to be correctly configured with Serverpod (and in the extension, Serverpod Cloud).
Future goals are outlined in the more comprehensive RFC: #3128
Activity
feat: Add S3EndpointConfig abstraction for cloud storage
feat: Add S3UploadStrategy abstraction for cloud storage
feat: Add S3Client for signed API requests
feat: Add S3CompatCloudStorage base class
feat: Add S3EndpointConfig abstraction for cloud storage
feat: Add S3UploadStrategy abstraction for cloud storage
feat: Add S3Client for signed API requests
feat: Add S3CompatCloudStorage base class
17 remaining items
feat: Add S3EndpointConfig abstraction for cloud storage
feat: Add S3UploadStrategy abstraction for cloud storage
feat: Add S3Client for signed API requests
feat: Add S3CompatCloudStorage base class
feat: Add S3EndpointConfig abstraction for cloud storage
feat: Add S3UploadStrategy abstraction for cloud storage
feat: Add S3Client for signed API requests
feat: Add S3CompatCloudStorage base class
feat: Add S3CompatCloudStorage base class
feat: Add S3EndpointConfig abstraction for cloud storage
feat: Add S3UploadStrategy abstraction for cloud storage
feat: Add S3Client for signed API requests
feat: Add S3CompatCloudStorage base class