fix: uploadfs gcs application default credentials#5504
Conversation
boutell
left a comment
There was a problem hiding this comment.
This looks good. Are you working on an ApostropheCMS project that is hosted on GCS?
|
Thanks. Yeah I'm using ApostropheCMS and Astro hosted on Google Cloud Run (Astro as main container, Apos as sidecar, so proxying requests to Apos via Astro); GCS for blob storage and Firestore with MongoDB compatibility for the database, and Google auth via passport-bridge. There was one other possible issue with apostrophecms/apostrophe-astro using the astro redirect which drops all the headers except location, so the auth callback is unable to set cookies. I'm patching it locally currently, but was going to raise an issue to get feedback in case I'm missing something. |
|
Interesting! Would be glad to talk more about that, making sure the Astro journey is smooth is a priority. hit us up on our Discord ( https://chat.apostrophecms.com/ ) or drop me an email ( tom@apostrophecms.com ) if you're not into that option. Meanwhile, we will get this PR considered soon. Not for today's release but it should make it into the next maintenance release in 4 weeks. |
|
Sounds good, I'd be happy to talk. I'll reach out by email at some point. |
Please indicate which branch this PR should merge into:
Check one
Summary
Allow all supported Google Cloud application default credentials by removing the hard-coded check.
Let the Google Cloud Storage client handle failure itself.
https: true,to sample options)What are the specific steps to test this change?
Use uploadfs with a GCS bucket as normal, but authentication now supports credentials from:
gcloud auth application-default loginWhat kind of change does this PR introduce?
(Check at least one)
Make sure the PR fulfills these requirements: