How should I format it: escape special characters, remove newlines? It seems like the hash of secrets is different if I do SOME_SECRET=abcd or SOME_SECRET="abcd".
Should I set this with fly secrets set GCP_AUTH=... or fly secrets import?
Thanks!
Edit: I’ve tried to escape it with single quotes and got a (Jason.DecodeError) unexpected byte at position 33: 0x3D ("=")... error:
Hey @fdeage, I typically run the GCP credentials json file through base64 before setting it as a secret and in my application, I’ll decode it as base64 before using it.
I think the CLI also has a flag for setting a secret from a file.
Not sure what Google Docs you’re looking at, but most of what I’ve seen is when running stuff on Google Cloud. When running on Fly (or any other provider) you’re basically on your own.
When running on GC their SDKs look for an en var to automatically add the credentials. Took me a while to figure out you can manually pass a JSON string.
I mean I like your solution just wondering. I found the Google Docs somewhat overwhelming with the amount of differnent ways to authenticate, so I didn’t really understand best practice when not on GCP.