如何设置env var?

时间:2019-02-08 01:15:27

标签: google-app-engine environment-variables

我可以在哪里写critical环境变量,例如在heroku上? 我不想将我数据库的密钥存储在app.yaml文件中。 enter image description here

1 个答案:

答案 0 :(得分:2)

建议在GCP中存储机密的方法是使用Cloud Key Management Service和Cloud Storage。

Storing Secrets documentation指导您完成将秘密存储在Cloud Storage存储桶中的过程,该存储桶使用Cloud KMS在应用程序层加密。 Secret management with Cloud KMS page

中介绍了使用Cloud KMS管理机密的其他方法。
相关问题