Is it possible to have an local instance of Azure Key Vault?

Viewed 1196

I'm currently working on a solution in C# which will integrate the Azure Key Vault.

If the internet goes down -- I work in Berlin, so not entirely unlikely -- or if I want to rule out network connectivity problems when debugging a solution, is there a way I can set up a local instance?

3 Answers

I had/have a similar issue, needing a local stub of Azure Key Vault. Just like you, I have found none, so decided to roll my own. It is work in progress, but Key and Secret support is already at MVP state.

As long as spinning up a Docker container is not an issue for you, it might be worth a try.

Please check it out and save it for later if you find it useful: https://github.com/nagyesta/lowkey-vault

No, the reason is in the name: Azure Key Vault.

But you can setup your code to acquire credentials via a fallback mechanism when running in development mode, e.g. via user secrets.

As others have said, there's no local standalone software Key Vault, but if you're really interested in making this happen, you have options:

  1. Azure Key Vault is a part of the on-prem Azure Stack Hub which you could host on-prem.

  2. Roll your-own encrypted database with a front-end REST web service.

I don't recommend either of these.

Related