craftcms / google-cloud

Google Cloud Storage volume type for Craft CMS.
https://plugins.craftcms.com/google-cloud
MIT License
11 stars 10 forks source link

Can we make the auth file fetchable by an environment variable as well? #12

Closed lenvanessen closed 4 years ago

lenvanessen commented 4 years ago

Hi,

Is it possible to also allow the contents of the auth file to be loaded from and environment variable? .env allows this json content like this: GOOGLE_AUTH='{}

Since we're running on heroku, and we don't want the auth credentials to be in the repo, we don't want to use the regular way of setting GOOGLE_APPLICATION_CREDENTIALS or saving the information to the database/project config.

andris-sevcenko commented 4 years ago

I just pushed this for the next release due next week.

andris-sevcenko commented 4 years ago

1.4.0 is out with now with this feature. Keep in mind you'll have to properly escape newline characters in the RSA key.