keyvault-secret-reader
БесплатноЗапускает вложенные скриптыНе проверенRead a named secret from Azure Key Vault using the caller's (agent's) managed identity, without ever placing the secret value in a prompt or tool argument…
от microsoft-foundry★ 21 звезда на GitHubОб этом скилле
Key Vault Secret Reader
Overview
Fetch a secret from Azure Key Vault via the caller's identity. The bundled
scripts/read_secret.py is stdlib-only (no pip installs) so it runs on a bare Python
image such as a harness sandbox. In a managed harness the agent's managed identity is
used automatically via DefaultAzureCredential.
Secret hygiene: the secret value stays inside the script process. By default the CLI
masks the value; only pass --show when a downstream step must consume the raw value,
and pipe it directly rather than printing it into the conversation.
Prerequisites
KEYVAULT_URL—https://<vault>.vault.azure.net(or--vault).- A token — resolved automatically:
--token/KEYVAULT_TOKENenv, thenDefaultAzureCredential(managed identity / sandbox identity /az login), thenaz account get-access-token. Scope ishttps://vault.azure.net/.default. - RBAC: the identity must have Key Vault Secrets User on the vault
(role id
4633458b-17de-408a-b874-0445c86b69e6). A 401/403 means the role is missing.
Usage
export KEYVAULT_URL="https://<vault>.vault.azure.net"
# Inspect a secret without revealing it (masked value + length):
python scripts/read_secret.py get financial-profile-sig
# Emit the raw value for a downstream step (avoid printing to the user):
SIG="$(python scripts/read_secret.py get financial-profile-sig --show)"
Key rules
- Never echo the raw value to the user. Use the masked form to confirm retrieval; use
--showonly to hand the value to another program. - 401/403 = missing role, not a transient error — report it plainly and stop; do not retry.
- Pass
--versionto pin a specific secret version; latest is used by default.
Установить keyvault-secret-reader в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл keyvault-secret-reader?
Read a named secret from Azure Key Vault using the caller's (agent's) managed identity, without ever placing the secret value in a prompt or tool argument. Use when an agent needs a credential, API key, connection string, or `sig` held in Key Vault — including from inside a managed harness or sandbox where DefaultAzureCredential resolves to the agent identity. Requires the identity to hold the 'Key Vault Secrets User' role on the vault.
Как установить скилл keyvault-secret-reader?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл keyvault-secret-reader запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic