Key Vault Secrets Viewer
Open-source VS Code extension for read-only browsing of Azure Key Vault secrets and their versions.
Overview
This extension helps you inspect Azure Key Vault data directly from VS Code:
- Azure subscriptions
- Key Vault instances
- Secrets
- Secret versions
Version values can be opened in an editor tab (without copying to clipboard), and metadata can be viewed quickly.
Features
- Read-only workflow (no create/update/delete operations)
- Tree view in Explorer:
Subscriptions -> KeyVaults -> Secrets -> Versions
- Open secret value in editor tab
- Copy secret value for selected version
- Open secret metadata in editor tab
- Select tenant (directory) manually when subscriptions are in a different catalog
Authentication
The extension uses VS Code Microsoft authentication provider.
Recommended setup:
- Install and sign in with Azure Resources extension
- Open
Key Vault Secrets view
- Refresh tree and, if needed, select tenant directory
Commands
Key Vault: Refresh Secrets Tree
Key Vault: Select Tenant (Directory)
Key Vault: Open Secret Value in Editor
Key Vault: Copy Secret Value
Key Vault: Open Secret Metadata
Installation
From VSIX
- Open VS Code
- Run
Extensions: Install from VSIX...
- Select the generated
.vsix package
From Marketplace
Install from VS Code Marketplace after publishing.
Development
Requirements
- Node.js 20+
- VS Code 1.90+
Local run
- Install dependencies:
- Build:
- Run tests:
- Start debug host:
Packaging
Build VSIX package:
Security notes
- The extension is read-only for Key Vault resources.
- Secret values are retrieved on demand for selected versions.
- Use
Open Secret Value in Editor if you prefer not to copy secrets into clipboard.
Contributing
Contributions are welcome. Please open an issue or a pull request with clear reproduction steps and expected behavior.
License
MIT. See LICENSE.
| |