Confused on what is the correct procedure on storing passwords in Web.config for Azure deployment

谁说胖子不能爱 提交于 2019-12-05 04:55:52

I find the following technique to be the easiest way to do this.

Instead of putting the deployment values of these settings into the web.config, I keep the test values in there instead. I then put the deployment values into the Application Settings section of the Azure Website via the Azure Portal:

When the website runs, these settings will take precedence over what is in the web.config. This helps me avoid externalized files, allows me to keep sane development configuration that the team can share, and makes deployment very easy.

The best way is to set your secrets in the Connection Strings section of the portal. Any values set there will override values you specify in your web.config file.

This way they are only exposed to people who have admin access over the site itself. Having full access to the source won't even be enough to get the secret values.

More details here

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