File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
cloud-sql/mysql/sqlalchemy Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ secure solution such as [Cloud KMS](https://cloud.google.com/kms/) to help keep
30
30
31
31
## Running locally
32
32
33
- To run this application locally, download and install the cloud_sql_proxy by
33
+ To run this application locally, download and install the ` cloud_sql_proxy ` by
34
34
following the instructions [ here] ( https://cloud.google.com/sql/docs/mysql/sql-proxy#install ) .
35
35
36
36
Once the proxy is ready, use the following command to start the proxy in the
@@ -58,7 +58,7 @@ Navigate towards `http://127.0.0.1:8080` to verify your application is running c
58
58
59
59
## Google App Engine Standard
60
60
61
- To run on GAE-Standard, create an AppEngine project by following the setup for these
61
+ To run on GAE-Standard, create an App Engine project by following the setup for these
62
62
[ instructions] ( https://cloud.google.com/appengine/docs/standard/python3/quickstart#before-you-begin ) .
63
63
64
64
First, update ` app.yaml ` with the correct values to pass the environment
Original file line number Diff line number Diff line change 14
14
15
15
runtime : python37
16
16
17
+ # Remember - storing secrets in plaintext is potentially unsafe. Consider using
18
+ # something like https://cloud.google.com/kms/ to help keep secrets secret.
17
19
env_variables :
18
20
CLOUD_SQL_INSTANCE_NAME : <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
19
21
DB_USER : my-db-user
Original file line number Diff line number Diff line change 20
20
import sqlalchemy
21
21
22
22
23
- # Saving credentials in environment variables is convent, but not secure
24
- # - consider a more secure solution such as https://cloud.google.com/kms/ to
25
- # help keep secrets safe.
23
+ # Remember - storing secrets in plaintext is potentially unsafe. Consider using
24
+ # something like https://cloud.google.com/kms/ to help keep secrets secret.
26
25
db_user = os .environ .get ("DB_USER" )
27
26
db_pass = os .environ .get ("DB_PASS" )
28
27
db_name = os .environ .get ("DB_NAME" )
You can’t perform that action at this time.
0 commit comments