UserSecrets如何在云中工作? [英] How do UserSecrets work in the Cloud?

查看:77
本文介绍了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.

Secret Manager工具不会对存储的机密进行加密,因此不应将其视为受信任的存储.它仅用于开发目的.键和值存储在用户配置文件目录中的JSON配置文件中.

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中,您可以直接使用环境变量.

In Cloud you can directly use Environment Variables for that.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆