• <legend id='nms9P'><style id='nms9P'><dir id='nms9P'><q id='nms9P'></q></dir></style></legend>

    1. <small id='nms9P'></small><noframes id='nms9P'>

    2. <tfoot id='nms9P'></tfoot>
          <bdo id='nms9P'></bdo><ul id='nms9P'></ul>

      1. <i id='nms9P'><tr id='nms9P'><dt id='nms9P'><q id='nms9P'><span id='nms9P'><b id='nms9P'><form id='nms9P'><ins id='nms9P'></ins><ul id='nms9P'></ul><sub id='nms9P'></sub></form><legend id='nms9P'></legend><bdo id='nms9P'><pre id='nms9P'><center id='nms9P'></center></pre></bdo></b><th id='nms9P'></th></span></q></dt></tr></i><div id='nms9P'><tfoot id='nms9P'></tfoot><dl id='nms9P'><fieldset id='nms9P'></fieldset></dl></div>

        如何将 ASP.NET Core UserSecrets 部署到生产环境

        How to deploy ASP.NET Core UserSecrets to production(如何将 ASP.NET Core UserSecrets 部署到生产环境)

            <small id='MLGba'></small><noframes id='MLGba'>

            <i id='MLGba'><tr id='MLGba'><dt id='MLGba'><q id='MLGba'><span id='MLGba'><b id='MLGba'><form id='MLGba'><ins id='MLGba'></ins><ul id='MLGba'></ul><sub id='MLGba'></sub></form><legend id='MLGba'></legend><bdo id='MLGba'><pre id='MLGba'><center id='MLGba'></center></pre></bdo></b><th id='MLGba'></th></span></q></dt></tr></i><div id='MLGba'><tfoot id='MLGba'></tfoot><dl id='MLGba'><fieldset id='MLGba'></fieldset></dl></div>
              <tbody id='MLGba'></tbody>
            • <tfoot id='MLGba'></tfoot>
              <legend id='MLGba'><style id='MLGba'><dir id='MLGba'><q id='MLGba'></q></dir></style></legend>
                  <bdo id='MLGba'></bdo><ul id='MLGba'></ul>

                • 本文介绍了如何将 ASP.NET Core UserSecrets 部署到生产环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我遵循在开发过程中安全存储应用机密在开发期间指导 asp.net 文档,但它没有描述在发布到另一台机器进行 QA、生产等时如何使用它.我认为它会在发布期间将它们插入 appsettings.json 但确实如此不是.我最终不得不将我的 SendGrid 密钥和其他敏感信息直接放入 appsettings.json 中,这确实违背了应用机密的目的.

                  使用应用程序机密是最好的方法,还是有其他方法可以在我的配置中存储 API 密钥和 SQL 用户/密码?

                  解决方案

                  不要在生产环境中使用应用机密.曾经.正如文章所说,在开发过程中.

                  如何在生产环境中发布机密取决于您的生产环境.Linux、Windows 和 Azure 都支持环境变量——这就是你的秘密应该去的地方,使用你的托管服务提供商给你的任何 UI.

                  应用程序设置文档对此进行了更详细的说明p>

                  I followed the Safe storage of app secrets during development guide over on the asp.net docs during development but it does not describe how to use it when publishing to another machine for QA, Production, etc. What I figured it would do was insert them into the appsettings.json during publish but it does not. I ended up having to place my SendGrid keys and other sensitive information directly into the appsettings.json which really defeats the purpose of the app secrets.

                  Is using app secrets the best way or is there another way to store API keys and SQL user/passwords in my configs?

                  解决方案

                  Don't use app secrets in production. Ever. As the article says DURING DEVELOPMENT.

                  How you publish secrets in production is up to your production environment. Linux, Windows and Azure all support environment variables - that's where your secrets should go, using whatever UI your hosting provider gives you.

                  The app settings documentation goes into this in greater detail

                  这篇关于如何将 ASP.NET Core UserSecrets 部署到生产环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  C# Attributes and their uses(C# 属性及其用途)
                  C# - Getting all enums value by attribute(C# - 按属性获取所有枚举值)

                  <small id='Z5Swd'></small><noframes id='Z5Swd'>

                  • <bdo id='Z5Swd'></bdo><ul id='Z5Swd'></ul>
                        <tbody id='Z5Swd'></tbody>
                      <i id='Z5Swd'><tr id='Z5Swd'><dt id='Z5Swd'><q id='Z5Swd'><span id='Z5Swd'><b id='Z5Swd'><form id='Z5Swd'><ins id='Z5Swd'></ins><ul id='Z5Swd'></ul><sub id='Z5Swd'></sub></form><legend id='Z5Swd'></legend><bdo id='Z5Swd'><pre id='Z5Swd'><center id='Z5Swd'></center></pre></bdo></b><th id='Z5Swd'></th></span></q></dt></tr></i><div id='Z5Swd'><tfoot id='Z5Swd'></tfoot><dl id='Z5Swd'><fieldset id='Z5Swd'></fieldset></dl></div>

                        <tfoot id='Z5Swd'></tfoot>
                        <legend id='Z5Swd'><style id='Z5Swd'><dir id='Z5Swd'><q id='Z5Swd'></q></dir></style></legend>