Azure Key Vaultのロゴ

Azure Key Vault

組織
Kilo-Org
azure-key-vault

Azure Key Vaultに関するガイダンスです。RBAC、ネットワーク分離、マネージドIDによるアクセス、論理削除/消去保護、ローテーションを用いて、シークレット、キー、証明書を安全に保存・管理する方法を扱います。標準のKey VaultとManaged HSM(FIPS 140-3 Level 3)の使い分け、アプリごとに1つのVaultを使用して影響範囲を限定する原則、App Service/FunctionsでのKey Vault参照についても説明します。使用する場面:Azure Key Vault、シークレットの保存、証明書の管理、暗号化キー、シークレットのローテーション、Key Vault RBAC、消去保護、論理削除、プライベートエンドポイントのKey Vault、マネージドIDによるシークレットへのアクセス、Managed HSM、Key Vault参照、BYOK CMK。証明機関の設計(pki-designを使用)、Entraアプリの認証情報のみ(entra-idを使用)、PaaSネットワークトポロジ(azure-network-security-designを使用)には使用しないでください。

Add to TypingMind

概要

公開者Kilo-Org
リポジトリkilo-marketplace
スキル名azure-key-vault
スター
179
フォーク
168
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    Kilo-OrgがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Azure Key Vault」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Kilo-Org/kilo-marketplace/tree/main/skills/azure-key-vault
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kilo-Org/kilo-marketplace.git /tmp/kilo-marketplace
mkdir -p .claude/skills
cp -r /tmp/kilo-marketplace/skills/azure-key-vault .claude/skills/azure-key-vault
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAzure Key Vaultを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAzure Key Vaultを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Azure Key Vaultは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Azure Key Vault

Azure Key Vault centrally and securely stores secrets, keys, and certificates, providing RBAC-based access control, network isolation, logging, and lifecycle automation - so applications never embed credentials and crypto material has a managed lifecycle.

When to use

Managing application secrets, encryption keys (including customer-managed keys / BYOK), and TLS certificates. Use this skill to pick standard vs Managed HSM, design access, and plan rotation.

Do not use this skill for CA design (pki-design), Entra app credentials only (entra-id), or PaaS networking topology (azure-network-security-design).

Pick the vault type and access model

RequirementChoiceNotes
Application secrets, TLS certs, software-protected keysStandard Key VaultDefault; FIPS 140-2 Level 2
Single-tenant HSM with FIPS 140-3 Level 3 keys (CMK, root CA)Managed HSMRegulated workloads
Per-app, per-environment isolationOne vault per app per environmentLimits blast radius
App reading secrets at runtimeManaged identity + RBAC (Key Vault Secrets User)No secrets in code
App Service / Functions secret in configKey Vault references in app settingsNo code change
Customer-managed key for Storage / SQLKey in Key Vault (or HSM) + identity grantRotate independently

Rule of thumb: one vault per app per environment (dev / test / prod). Don't share a vault across apps - a compromise of one app's identity reads all the others' secrets. Use Managed HSM only when the regulator or CMK boundary requires FIPS 140-3 Level 3.

Approach

  1. Use Azure RBAC for the data plane — Switch the vault to RBAC permission model (not legacy access policies). Assign least-privilege roles (Key Vault Secrets User, Key Vault Crypto User) to managed identities, not user accounts. Verify: vault enableRbacAuthorization = true; no users with Key Vault Administrator in prod.

  2. App access via managed identity + Key Vault references — App authenticates with a system-assigned or user-assigned managed identity, fetches secrets at runtime. For App Service / Functions, use Key Vault references in app settings - @Microsoft.KeyVault(SecretUri=...) - no SDK code change. Verify: source code contains no plaintext secrets; managed identity has only the secrets role on the target vault.

  3. Enable soft delete + purge protection — Soft delete is on by default; turn on purge protection to make accidental or malicious key deletion non-recoverable for 90 days. Required for CMK and most compliance scenarios. Verify: softDeleteRetentionInDays >= 7; enablePurgeProtection = true.

  4. Restrict network access — For sensitive vaults, disable public network access and use private endpoint in the workload VNet. Firewall the rest with service tags or selected networks. Verify: publicNetworkAccess = Disabled; private endpoint resolves; public IP test from internet = blocked.

  5. One vault per app per environment — Per-app blast radius. Cross-app reads are then a role grant, audited. Don't lump secrets into a shared vault.

  6. Automate rotation + monitor expiry — Set expiry on secrets / certs; use rotation policies for certificate auto-renewal from issuer; for secrets, use Event Grid → Logic App / Function to rotate at the source and update the secret. Verify: no secret in production has a NULL expiry; alerts fire 60 days before any cert or secret expires.

  7. Monitor + Defender — Enable diagnostic logs to Log Analytics; turn on Defender for Key Vault for anomalous access detection.

Guardrails

  • One vault per app per environment limits blast radius and simplifies access control. Shared vaults are an over-permission anti-pattern.
  • Purge protection is irreversible once on - required for CMK and many compliance scenarios. Turn it on knowingly.
  • Never store secrets in source / config; use managed identity + Key Vault references. Code-stored secrets leak via repo, logs, env-var dumps.
  • Disable public network access for sensitive vaults. Open-to-internet Key Vault is a brute-force / credential-spray target.
  • RBAC, not access policies. RBAC is the modern model with proper inheritance and PIM-eligible roles.
  • Don't grant Key Vault Administrator to apps. Apps need read on secrets / keys, not admin.

Common anti-patterns

  • "Shared 'enterprise' Key Vault for all apps" - Compromise of one app reads everyone's secrets. Per-app per-environment.
  • "Access policies because we've always used them" - Legacy; harder to audit. Use RBAC.
  • "No purge protection - we might need to delete" - First malicious / accidental purge = data loss. Turn it on; deal with the irrevocability.
  • "Public network access on for convenience" - Internet exposure. Private endpoint
    • firewall.
  • "Secrets in App Service application settings as plaintext" - Visible to anyone with config read. Use Key Vault references.
  • "No expiry / no rotation" - Long-lived secrets are a perpetual liability. Expiry + rotation policy.
  • "Same vault for app + CA root key" - Mix of blast radii. CA / HSM keys in Managed HSM, separate from app secret vault.

Example prompts

  • Set up Azure Key Vault with RBAC, purge protection, and a private endpoint.
  • Configure an App Service to read secrets via managed identity and Key Vault references.
  • When should I use Managed HSM instead of standard Key Vault?
  • Plan one-vault-per-app-per-environment for our microservices estate.
  • Automate certificate rotation in Key Vault with a 60-day expiry alert.
  • Review my Key Vault access model for least privilege.

Microsoft Learn

よくある質問

AIスキル「Azure Key Vault」では何ができますか?

Azure Key Vaultに関するガイダンスです。RBAC、ネットワーク分離、マネージドIDによるアクセス、論理削除/消去保護、ローテーションを用いて、シークレット、キー、証明書を安全に保存・管理する方法を扱います。標準のKey VaultとManaged HSM(FIPS 140-3 Level 3)の使い分け、アプリごとに1つのVaultを使用して影響範囲を限定する原則、App Service/FunctionsでのKey Vault参照についても説明します。使用する場面:Azure Key Vault、シークレットの保存、証明書の管理、暗号化キー、シークレットのローテーション、Key Vault RBAC、消去保護、論理削除、プライベートエンドポイントのKey Vault、マネージドIDによるシークレットへのアクセス、Managed HSM、Key Vault参照、BYOK CMK。証明機関の設計(pki-designを使用)、Entraアプリの認証情報のみ(entra-idを使用)、PaaSネットワークトポロジ(azure-network-security-designを使用)には使用しないでください。

TypingMindでAzure Key Vaultを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Azure Key Vaultはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAzure Key Vaultをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Kilo-Org/kilo-marketplace/tree/main/skills/azure-key-vaultを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Azure Key Vaultを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Azure Key Vaultで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAzure Key Vaultを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Azure Key Vault」は無料ですか?

はい。Kilo-OrgがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇