How to store database credentials in Google App Engine Standard?

by pupeno   Last Updated October 14, 2018 12:03 PM

I'm experimenting with hosting a Django application on Google App Engine Standard and to do that I followed the tutorial Running Django on App Engine Standard Environment. That tutorial completely ignores the problem of safely handling credentials (and it sorts of points to just storing them in your code repo... sigh).

When searching for how to store credentials there's a lot of articles about Google Cloud Key Management Service, but I don't really need that. I'm ok with the credentials being stored at GCP unencrypted (it's for the GCP database anyway). What I need is a way for my application to pick up that configuration automatically.

My app can either get environment variables or a .env file that contains this information. How do I get the credentials and other configs to be present like that in my Google App Engine Standard instance?



Related Questions


Hola.org VPN and google-services

Updated March 29, 2015 15:01 PM

Is the Google Cloud Datastore really free?

Updated March 28, 2015 06:01 AM


What's google app engine as of 2017?

Updated November 20, 2017 03:03 AM