简体   繁体   中英

Azure Secret Web.config Transform with Github deploy

I'm using ElCamino's Azure Identity Storage for my site hosted as a Azure Web App.

For deployment I've got Azure watching the Github repository. The repository is public.

My issue is that I would like to store the connection string/key for Azure Storage in Azure and have it inserted into the Web.config at deployment. ElCamino uses the Web.config element elcaminoIdentityConfiguration in its own config section. I've seen the connection string and appSettings options under config for the web app, but I haven't been able to figure out how to securely store an arbitrary web.config transform when deploying from a public Github repo.

Unfortunately it cannot be done at the moment. Kudu , the app that does the build & and deploy doesn't apply web.config transforms, therefore not allowing you to have custom configuration sections.

The only way to manage secrets is with the AppSettings - https://github.com/projectkudu/kudu/wiki/Managing-settings-and-secrets

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM