kvs-cache is a command line tool for browsing Azure Key Vault secrets as quickly and as easily as possible.
Information about secrets, once cached locally, can be instantly browsed.
Pressing Enter on a given secret calls Azure to get the secret value and copy it to the clipboard.
Note that:
- secret values are not cached locally nor displayed on the screen
- you can get the clipboard contents and paste it wherever you need
kvs-cache is written using .NET 8 and C# 11.
- Clone the repo
- Execute a command line / shell window
- Check if you have .NET 8:
dotnet --version, if not, install .NET 8 SDK first - Go to the repo folder in the command line / shell window
- Login to Azure
az login - Go down one more folder
cd kvs-cache - Restore packages using
dotnet restore - Run kvs-cache using
dotnet run
- Works as a console application
- Information browsing / searching
- At start it finds all Azure subscriptions you can access
- Allows to browse and drill down/up through subscriptions, key vaults, and secrets
- Allows for instant filtering by entering word or words to be searched for
- Caching
- Caches places you visit for immediate access next time
- Displays age of cache
- Allows to refresh current level (Ctrl-R)
- Get secret values
- Get value of a selected secret and copy it to clipboard