UserSecrets 如何在云中工作?
How do UserSecrets work in the Cloud?
ASP.NET Core 有一个很棒的功能可以存储用户设置 securely。
它在 OSX(和 Linux、Windows)上运行良好,将数据存储在 JSON:
~/.microsoft/usersecrets/<userSecretsId>/secrets.json
它也在云端(Cloud Foundry)工作吗?如果是,那么是否存储了这些值?
通过帮助防止敏感数据存储在代码中/签入源代码管理,在开发过程中存在用于安全存储的秘密。
The Secret Manager tool does not encrypt the stored secrets and should not be treated as a trusted store. It is for development purposes only. The keys and values are stored in a JSON configuration file in the user profile directory.
在 Cloud 中,您可以直接使用环境变量。
ASP.NET Core 有一个很棒的功能可以存储用户设置 securely。
它在 OSX(和 Linux、Windows)上运行良好,将数据存储在 JSON:
~/.microsoft/usersecrets/<userSecretsId>/secrets.json
它也在云端(Cloud Foundry)工作吗?如果是,那么是否存储了这些值?
通过帮助防止敏感数据存储在代码中/签入源代码管理,在开发过程中存在用于安全存储的秘密。
The Secret Manager tool does not encrypt the stored secrets and should not be treated as a trusted store. It is for development purposes only. The keys and values are stored in a JSON configuration file in the user profile directory.
在 Cloud 中,您可以直接使用环境变量。