[英]How to secure a configuration file in IBM Cloud
I have a Flask python app running on IBM cloud. 我在IBM云上运行了一个Flask python应用程序。 The app needs some configuration parameter which it gets from a configuration file.
该应用程序需要一些从配置文件中获取的配置参数。 I need to encrypt the configuration file using a symmetric key.
我需要使用对称密钥加密配置文件。 How can I do that and where I can store my decrypt key?
我怎么能这样做以及我可以存储我的解密密钥? Ideally I don't want to hard code it into my code.
理想情况下,我不想将其硬编码到我的代码中。
12 Factor question. 12因素问题。 Embed it in the app's deployment environment variables and read the value at runtime.
将其嵌入应用程序的部署环境变量中,并在运行时读取该值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.