【问题标题】:Azure Secret Web.config Transform with Github deploy使用 Github 部署 Azure Secret Web.config 转换
【发布时间】:2015-07-03 02:05:36
【问题描述】:

我将 ElCamino's Azure Identity Storage 用于托管为 Azure Web 应用程序的网站。

对于部署,我让 Azure 监视 Github 存储库。存储库是公开的。

我的问题是我想在 Azure 中存储 Azure 存储的连接字符串/密钥,并在部署时将其插入到 Web.config 中。 ElCamino 在其自己的配置部分使用 Web.config 元素 elcaminoIdentityConfiguration。我已经在 web 应用程序的 config 下看到了连接字符串和 appSettings 选项,但我无法弄清楚在从公共 Github 存储库部署时如何安全地存储任意 web.config 转换。

【问题讨论】:

    标签: .net azure connection-string asp.net-identity


    【解决方案1】:

    很遗憾,目前无法完成。 Kudu,执行构建和部署的应用程序不应用 web.config 转换,因此不允许您拥有自定义配置部分。

    管理机密的唯一方法是使用 AppSettings - https://github.com/projectkudu/kudu/wiki/Managing-settings-and-secrets

    【讨论】:

      猜你喜欢
      • 2018-09-25
      • 2015-08-31
      • 2018-12-19
      • 1970-01-01
      • 2011-05-12
      • 2020-12-03
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      相关资源
      最近更新 更多