Can I encrypt the ConfigStoreConnectionString when using In-role Window Azure Cache (dedicated role)?

StackOverflow https://stackoverflow.com/questions/22235804

Is there a way to encrypt the ConfigStoreConnectionString when using In-role Window Azure Cache (dedicated role)?

Right now the ConfigStoreConnectionString is stored in the ServiceConfiguration file and it's in the clear. I've been asked to encrypt the connection string using aspnet_regiis for security reasons but when I use an encrypted string the caching doesn't know how to decrypt it. Here's the section of the service config file:

  <Role name="ConnectCacheWorker">
    <Instances count="2" />
    <ConfigurationSettings>
      <Setting name="Microsoft.WindowsAzure.Plugins.Caching.NamedCaches" value="xxxxxx" />
      <Setting name="Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel" value="1" />
      <Setting name="Microsoft.WindowsAzure.Plugins.Caching.ConfigStoreConnectionString" value="xxxxxx" />

What's the best practice for encrypting Connection strings in the service config file?

有帮助吗?

解决方案

I dont think this is possible. The cache plugin has to natively support this.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top