Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
179 views
in Technique[技术] by (71.8m points)

c# - Is there a way to store secrets which are more than 25KB in Azure Key Vault?

I currently have a json object which i am converting into a string and trying to store in Azure Key Vault. But the size is around 60kb. Is there a way to store this on Key Vault because i read that the size limit is 25lkb.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You may want to look at Azure Blob Client Side Encryption. Essentially it encrypts content before storing it in Blob Storage and then it protects the key using Key Vault. Most of the Blob Storage client libraries have built -in support, making it transparent to you.

In a nutshell, you can store your large secret encrypted in Blob Storage, automatically protected by Key Vault.

In practice, this is what happens inside the blob storage client;

  1. A random symmetric encryption key is created.

  2. Your data is encrypted on your machine using that key.

  3. The encryption key is encrypted using a Public Key provided by KeyVault.

  4. The encrypted key is stored in blob storage along with your data data.

When you want to retrieve the data, the storage library will ask Key Vault to decrypt the key and will decrypt the data for you.

This all happens transparently to you. You do need to switch this on, of course. How you do that depends on which storage client you use, so just search for Blob Client Side Encryption and your chosen programming language.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...