本文介绍了UserSecrets如何在云中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET Core具有出色的功能,可以安全地存储用户设置.

ASP.NET Core has a great feature to store user settings securely.

它在OSX(和Linux,Windows)上都很好用,并以JSON存储数据:

It works great on OSX (and Linux, Windows), stores data in JSON:

~/.microsoft/usersecrets/<userSecretsId>/secrets.json

它也在云(Cloud Foundry)中工作吗?如果是,那么是否存储了值?

Is it working in the cloud (Cloud Foundry) too? If yes, then were are the values stored?

推荐答案

在开发过程中,通过防止敏感数据存储在代码中/未检查到源代码管理中,秘密存储可用于安全存储.

Secrets exists for safe storage during development by helping prevent sensitive data from being storing in code / checked into source control.

在Cloud中,您可以直接使用环境变量.

In Cloud you can directly use Environment Variables for that.

这篇关于UserSecrets如何在云中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 02:37