Where to store GAE / Google Cloud SQL database credentials? -


i'm setting php application using google app engine , cloud sql. have running, wondering should securely store database credentials php uses when connecting cloud sql.

i keep credentials in php file "require_once" whenever need connect database. file contains credentials not listed in app.yaml, don't think can accessed, i'm not sure i'm new google app engine.

thanks!

best practice suggest store them "in environment" , not in code - because vary between deployment environments (dev vs live)

for app engine can define environment variables in app.yaml, or in "included" yaml file, or on command line when deploying.

i realise lot of input.

read this: http://12factor.net/config

good luck!


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -