如何设置env var? [英] How to set env var?
本文介绍了如何设置env var?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在哪里可以像在Heroku上一样编写critical
环境变量?
我不想将我数据库的密钥存储在app.yaml文件中.
Where can I write critical
environment variables like on heroku?
I do not want to store the keys of my database in clear in app.yaml file.
推荐答案
The recommended approach to store secrets in GCP is using Cloud Key Management Service and Cloud Storage.
存储机密文档指导您完成存储机密的过程使用Cloud KMS在应用程序层加密的Cloud Storage存储桶中的数据. 使用Cloud KMS进行秘密管理中也记录了使用Cloud KMS管理机密的其他方法.页面
The Storing Secrets documentation guides you through the process of storing a secret in Cloud Storage bucket encrypted at the application layer with Cloud KMS. There's also other ways to manage secrets with Cloud KMS, it's documented in the Secret management with Cloud KMS page
这篇关于如何设置env var?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文