Re:You should not be using AWS. Probably.
by 0xEFF on Friday October 14, 2022 @02:19PM
(#33207008)
Where do you store your secrets? Persistent data? How do you handle authentication and authorization when using cloud run only?
[ Parent
| on HN ]
Re:You should not be using AWS. Probably.
by CharlieDigital on Friday October 14, 2022 @04:14PM
(#33208323)
Authentication and authorization: I hand it off to Firebase identity management. But you can also just issue your own JWTs. You can run full applications in GCR like KeyCloak or IdentityServer. But the Firebase identity solution is really good.
Example here: https://github.com/CharlieDigital/dn6-firebase
Persistent data: Firestore (or Supabase, Planetscale, or CockroachDB if you want relational). On other platforms, I've used Azure CosmosDB which has a pay-as-you-go model which is practically free for hobby/POC use cases.
Secrets: depends on how secret it is; actual keys go into secrets manager in GCP which integrates with Cloud Run. Otherwise, you can configure it as an environment variable.