We have a requirement to store all the secrets on to azure key-vault. This requires us to update the configurations at Runtime.
One challenge we are facing at the moment is to store the password for SOLR basic auth on to azure key-vault.
<indexConfigurations>
<solrHttpWebRequestFactory type="HttpWebAdapters.HttpWebRequestFactory, SolrNet">
<patch:delete/>
</solrHttpWebRequestFactory>
<solrHttpWebRequestFactory type="HttpWebAdapters.BasicAuthHttpWebRequestFactory, SolrNet">
<param hint="username">username</param>
<param hint="password">password</param>
</solrHttpWebRequestFactory>
</indexConfigurations>
We managed to read and update the asp.net connection strings and web.config. However not for sitecore configs.
Question:
Is there a way (any sitecore API) which we could use to update the sitecore configurations at runtime?
Thanks.