This utility provides a command-line interface to interact with Azure Key Vault secrets. It allows you to list, show, get, and compare secrets stored in different Azure Key Vaults.
- List Secrets: List all secrets in a specified Key Vault.
- Show Secrets: Display all secrets and their values in a specified Key Vault.
- Get Secret: Retrieve the value of a specific secret from a Key Vault.
- Diff Secrets: Compare secrets between two Key Vaults and display the differences.
- Azure CLI installed and configured.
- Valid Azure subscription with access to the Key Vaults.
-
Clone the repository:
git clone https://github.com/cmdctl/kvsecrets.git cd kvsecrets
-
Build the project:
go build -o secrets
List all secrets in a specified Key Vault.
./secrets list <vault-name>
Display all secrets and their values in a specified Key Vault.
./secrets show <vault-name>
Retrieve the value of a specific secret from a Key Vault.
./secrets get <vault-name> <key-name>
Compare secrets between two Key Vaults and display the differences.
./secrets diff <vault-name1> <vault-name2>
./secrets list my-vault
./secrets show my-vault
./secrets get my-vault my-secret
./secrets diff my-vault1 my-vault2
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License. See the LICENSE file for details.