54104

Securing azure table storage connection string

Question:

How to secure an azure table connection string? It is not safe to store it inside code or in a config file. What is the best practice? Can I use some kind of certificate based authentication?

Answer1:

You can encrypt the connection strings section of the config file. A certificate can be made using the Visual Studio Command Prompt which will be used as an encryption key. Once you have the cert, you can add it to your solution and encrypt the connection strings section. After that, upload the cert to Azure in the certificates tab. It's an ugly process, but it's not too bad. <a href="http://www.heikniemi.net/hardcoded/2013/06/encrypting-connection-strings-in-windows-azure-web-applications/" rel="nofollow">This blog post should have all the details you need</a>.

Recommend

  • Saving only some sheets in another Workbook
  • Error 1142: SELECT and LOCK TABLE commands denied
  • Encryption code in Java
  • C# RSA Encrypting text using a given PKCS#1 public key
  • Securely storing (encrypting) data in an ASP.Net application
  • cURL for Windows can't make a secure connection to the Stack API
  • SSLRead() return error -9806/15958)
  • Maven use Encrypted passwords in POM
  • Allocating a 2D contiguous array within a function
  • Spring Security bcrypt encoding login is not working
  • Refactoring advice: maps to POJOs
  • sudo easy_install for SimpleITK not that easy
  • GeoTrust SSL certificate on Android not trusted
  • several dataProvider per one Test in TestNG
  • Aptana 3 remove bundle (jquery)
  • NHibernate manually control fetching
  • How do I retrieve the user information of a user authenticated with Apache's mod_ldap?
  • How to specify input and output paths from cmd.exe for a PowerShell script?
  • Uncaught TypeError: $(…).select2 is not a function
  • Authentication in Play! and RestEasy
  • What does 'Language neutral' mean with regard to MAKELANGID?
  • Assign variable to the value in HTML
  • Abort upload large uploads after reading headers
  • Use of this Javascript
  • Yii2: Config params vs. const/define
  • C++ Partial template specialization - design simplification
  • Ajax Loaded meta Tags
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • How to recover from a Spring Social ExpiredAuthorizationException
  • SSO with signing and signature validation doesn't work
  • When should I choose bucket sort over other sorting algorithms?
  • How to get next/previous record number?
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Python: how to group similar lists together in a list of lists?
  • SQL merge duplicate rows and join values that are different
  • KeystoneJS: Relationships in Admin UI not updating
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • How do I use LINQ to get all the Items that have a particular SubItem?