且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Google App Engine 中设置环境变量/应用程序机密

更新时间:2021-10-18 09:25:46

如果您想存储应用程序在运行时可用的机密,将它们保存在数据存储区中并不是一个坏主意.我知道很多应用都可以做到这一点.

If you want to store secrets that are available to the app at runtime, keeping them in the datastore isn't a bad idea. I know of many apps that do that.

这是一个可汗学院使用的应用,这是在数据存储中存储秘密凭证的一个很好的例子.它是在 Python 中编写的,但您可以大致了解一下.请注意,在首次管理员登录时,它会提示您输入机密存储.

Here's an app used by the Khan Academy that's a good example of storing secret credentials in the datastore. It's in Python, but you can get the general idea. Note that on first admin login, it prompts for secrets to store.