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

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

Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top