How do UserSecrets work in the Cloud?

我只是一个虾纸丫 提交于 2019-12-08 05:11:47

问题


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

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

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

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


回答1:


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

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.

In Cloud you can directly use Environment Variables for that.



来源:https://stackoverflow.com/questions/39743972/how-do-usersecrets-work-in-the-cloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!