We have an site made up of several hundred ASP.NET 4 web apps. Currently our production config is specified in config transforms and resides along with the source code for each application. We deploy to staging and production environments using WebDeploy packages.
What are the options for securing the configuration?
I can think of the following:
- encrypt the config files and build tool/s that use certs to decrypt in prod
- store and deploy the configuration transform files separately
- extend the system.configuration to read config from env. vars (easy for appSettings, more involved for custom config sections).
Is there a standard approach for this and perhaps some tools I am unaware of?